Aller au contenu
GET /v1/meta

Spec

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/roofing-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/roofing-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/roofing-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/roofing-api/v1/meta");
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/roofing-api/v1/meta",
    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": "Lengths are unit-agnostic (use consistent units); square/bundle figures assume US roofing squares (100 ft²) — pass footprint in ft².",
        "service": "roofing",
        "endpoints": {
            "/v1/area": "Sloped roof area from the footprint and pitch, with waste, roofing squares and shingle bundles.",
            "/v1/pitch": "Convert roof pitch between rise:run, angle (degrees), percent slope and slope multiplier.",
            "/v1/rafter": "Rafter length from the horizontal run and the pitch, with optional overhang."
        },
        "description": "Roofing maths: pitch conversions, rafter length, and roof area with shingle squares and bundles."
    },
    "meta": {
        "timestamp": "2026-06-03T17:41:55.776Z",
        "request_id": "d9212c11-70a2-4113-980b-7ffd6370f1c3"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}