Μετάβαση στο περιεχόμενο
GET /v1/area

Sloped roof area

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/roofpitch-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/roofpitch-api/v1/area" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/roofpitch-api/v1/area", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/roofpitch-api/v1/area");
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/area",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "note": "Sloped roof area = footprint / cos(angle). The footprint is the flat plan area covered by the roof; multiply by the pitch multiplier to get the true surface area for materials.",
        "inputs": {
            "angle_deg": 26.565051,
            "footprint_area": 100
        },
        "roof_area": 111.803399,
        "pitch_multiplier": 1.11803399
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:23.277Z",
        "request_id": "9891adef-94b4-4bda-a30b-1d26f78e7ac6"
    },
    "status": "ok",
    "message": "Roof area",
    "success": true
}