/v1/pitch
Pitch / angle / slope
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/roofpitch-api/v1/pitch" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/roofpitch-api/v1/pitch", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/roofpitch-api/v1/pitch");
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/roofpitch-api/v1/pitch",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Roof pitch as the rise per 12 of run (X:12), the angle and the slope %. angle = atan(pitch/12). The pitch multiplier √(1+tan²) scales plan length to along-slope length.",
"inputs": {
"pitch": 6
},
"angle_deg": 26.565051,
"pitch_label": "6:12",
"pitch_x_in_12": 6,
"slope_percent": 50,
"pitch_multiplier": 1.11803399
},
"meta": {
"timestamp": "2026-06-05T19:50:23.388Z",
"request_id": "347fd5c1-7d80-4413-8a83-42ed1133199c"
},
"status": "ok",
"message": "Roof pitch conversion",
"success": true
}