Aller au contenu
GET /v1/coverage

Material volume, weight & bags

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/landscape-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/landscape-api/v1/coverage" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/landscape-api/v1/coverage", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/landscape-api/v1/coverage");
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/landscape-api/v1/coverage",
    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": "Volume = area × depth. Weight uses a typical bulk density; bulk material varies with moisture and compaction.",
        "input": {
            "area_ft2": 100,
            "depth_ft": 0.25
        },
        "volume": {
            "litres": 707.9,
            "cubic_feet": 25,
            "cubic_yards": 0.926,
            "cubic_metres": 0.708
        },
        "weight": {
            "kg": 1134,
            "lb": 2500,
            "tonnes": 1.134,
            "us_tons": 1.25
        },
        "material": "gravel",
        "density_lb_ft3": 100
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:56.902Z",
        "request_id": "ed0f9c7c-5e30-451f-a8a4-5ccc0caf549b"
    },
    "status": "ok",
    "message": "Material coverage",
    "success": true
}