Zum Inhalt springen
GET /v1/room

Paintable wall area of a room

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "coats": 2,
        "doors": 1,
        "formula": "paintable = perimeter · height − doors − windows (+ ceiling); paint = paintable · coats / coverage.",
        "width_m": 3,
        "windows": 2,
        "height_m": 2.5,
        "length_m": 4,
        "perimeter_m": 14,
        "paint_litres": 5.5273,
        "ceiling_area_m2": 0,
        "include_ceiling": false,
        "openings_area_m2": 4.6,
        "paint_us_gallons": 1.4602,
        "paintable_area_m2": 30.4,
        "gross_wall_area_m2": 35,
        "coverage_m2_per_litre": 11
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:51.868Z",
        "request_id": "d7834b9c-9b4c-4680-a8ef-99f7037b839c"
    },
    "status": "ok",
    "message": "Paintable wall area of a room",
    "success": true
}