Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/earthwork-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}