Naar de inhoud
GET /v1/room

Paintable wall area of a room

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/paint-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}