Zum Inhalt springen
GET /v1/material

Material density reference

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/landscape-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "1 yd³ = 27 ft³. yd3_covers_sqft shows the area one cubic yard covers at each depth.",
        "material": "gravel",
        "tonnes_per_m3": 1.602,
        "density_lb_ft3": 100,
        "us_tons_per_yd3": 1.35,
        "yd3_covers_sqft": {
            "1in": 324,
            "2in": 162,
            "3in": 108,
            "4in": 81
        }
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:57.123Z",
        "request_id": "3dc7c803-6901-465d-9138-98a4b5d158ef"
    },
    "status": "ok",
    "message": "Material reference",
    "success": true
}