Zum Inhalt springen
GET /v1/materials

Full material bill + concrete

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Full bill of materials. Concrete assumes a cylindrical hole minus the post; 80 lb pre-mix bag ≈ 0.6 ft³. Add waste, gates and corner posts.",
        "input": {
            "gap_in": 0.5,
            "length_ft": 100,
            "picket_width_in": 5.5,
            "post_spacing_ft": 8,
            "rails_per_section": 2
        },
        "posts": 14,
        "rails": 26,
        "pickets": 200,
        "concrete": {
            "bags": 13,
            "total_m3": 0.2093,
            "total_ft3": 7.392,
            "per_post_ft3": 0.528
        },
        "sections": 13,
        "rail_total_length_ft": 208
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:17.765Z",
        "request_id": "fdbcb722-2521-40c1-89f1-3859a882835b"
    },
    "status": "ok",
    "message": "Full material bill",
    "success": true
}