Naar de inhoud
GET /v1/volume

Material volume for a bed

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Material volume = area × depth. A 10 m × 5 m bed at 7.5 cm (3 in) deep needs 3.75 m³ (≈4.9 cubic yards).",
        "inputs": {
            "area_m2": 50,
            "depth_m": 0.075
        },
        "liters": 3750,
        "cubic_feet": 132.43,
        "cubic_yards": 4.90481,
        "cubic_meters": 3.75
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:21.440Z",
        "request_id": "130f6d83-9683-449d-ba8d-8458fde01fd1"
    },
    "status": "ok",
    "message": "Material volume",
    "success": true
}