Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/earthwork-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/earthwork-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/earthwork-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/earthwork-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/earthwork-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "notes": "US units (ft², ft, cy). AEA volume = (A₁+A₂)/2·L; prismoidal = L/6·(A₁+4A_mid+A₂); loose = bank·(1+swell), compacted = bank·(1−shrinkage); ÷27 for cubic yards. For tank/storage volumes use a tank API; for concrete mix a concrete API.",
        "service": "earthwork-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/prismoidal": "Volume by the prismoidal (Simpson) method.",
            "GET /v1/soil-state": "Bank ↔ loose ↔ compacted volume conversions.",
            "GET /v1/average-end-area": "Volume between two cross-sections (average-end-area)."
        },
        "description": "Earthwork volume maths: average-end-area and prismoidal cut/fill volumes, and bank/loose/compacted soil-state conversions."
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:02.718Z",
        "request_id": "370fcd98-a81b-436d-a4a6-2be47e1eb78a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}