Zum Inhalt springen
GET /v1/pitch

Pitch / angle / slope

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}