Zum Inhalt springen
GET /v1/paint

Paint litres & cans

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Doors deducted at 1.8 m² and windows at 1.5 m² each. Coverage is per coat; check the tin's stated spread rate.",
        "inputs": {
            "area": 40,
            "coats": 2,
            "doors": 0,
            "windows": 0,
            "can_size_litres": 2.5,
            "coverage_m2_per_litre": 11
        },
        "cans_needed": 3,
        "litres_needed": 7.27,
        "litres_rounded": 7.300000000000001,
        "paintable_area_m2": 40
    },
    "meta": {
        "timestamp": "2026-06-03T17:42:00.892Z",
        "request_id": "1f5ccfc1-ef04-45be-b6f9-7e54967b14df"
    },
    "status": "ok",
    "message": "Paint estimator",
    "success": true
}