Aller au contenu
GET /v1/coverage

Paint needed for an area

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/paint-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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