Skip to content
GET /v1/meta

Spec

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/earthpressure-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "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
}