Aller au contenu
GET /v1/materials

Full material bill + concrete

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

Exemple de réponse

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

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