/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/earthpressure-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/earthpressure-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/earthpressure-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/earthpressure-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"notes": "Friction angle φ in degrees, unit weight γ in kN/m³, height H in m, surcharge q in kPa, cohesion c in kPa. Thrust is per metre run of wall. Horizontal backfill, vertical wall, no wall friction.",
"service": "earthpressure-api",
"formulae": {
"active": "Ka = (1−sinφ)/(1+sinφ), P = ½Ka·γ·H² + Ka·q·H − 2c·H·√Ka",
"at_rest": "K0 = 1−sinφ, P = ½K0·γ·H²",
"passive": "Kp = (1+sinφ)/(1−sinφ), P = ½Kp·γ·H² + Kp·q·H + 2c·H·√Kp"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/active": "Active earth pressure Ka, base pressure, soil/surcharge/cohesion thrust and tension-crack depth.",
"GET /v1/atrest": "At-rest earth pressure K0 (Jaky) for unyielding walls.",
"GET /v1/passive": "Passive earth pressure Kp, base pressure and total resisting thrust."
},
"description": "Lateral earth-pressure calculator (Rankine theory): active, passive and at-rest coefficients, base pressures and total thrust on retaining walls."
},
"meta": {
"timestamp": "2026-06-04T18:38:27.359Z",
"request_id": "dd967bdb-79e3-4ba7-b870-71efdceab99c"
},
"status": "ok",
"message": "Meta",
"success": true
}