Aller au contenu
GET /v1/volume

Material volume for a bed

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/mulch-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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