Vai al contenuto
GET /v1/pitch

Pitch / angle / slope

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/roofpitch-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}