Μετάβαση στο περιεχόμενο
GET /v1/meta

Spec

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/earthpressure-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

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