/v1/coverage
Paint needed for an area
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/paint-api/v1/coverage" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/paint-api/v1/coverage", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/paint-api/v1/coverage");
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/coverage",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"coats": 2,
"area_m2": 50,
"formula": "paint = area · coats / coverage_rate.",
"cans_needed": 2,
"paint_litres": 9.0909,
"can_size_litres": 5,
"paint_us_gallons": 2.4016,
"coverage_m2_per_litre": 11
},
"meta": {
"timestamp": "2026-06-04T10:18:51.623Z",
"request_id": "a38276a1-1e53-4507-9c83-08e4f8b654df"
},
"status": "ok",
"message": "Paint needed for an area",
"success": true
}