/v1/pitch
Pitch / angle / slope
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode 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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}