/v1/paint
Paint litres & cans
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}