Ir al contenido
GET /v1/paint

Paint litres & cans

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/buildcalc-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}