/v1/materials
Full material bill + concrete
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}