Aller au contenu
GET /v1/burn

Burn-time estimate

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/candle-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/candle-api/v1/burn" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/candle-api/v1/burn", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/candle-api/v1/burn");
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/candle-api/v1/burn",
    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": "Burn time ≈ wax grams ÷ burn rate. A typical container candle burns ~7–9 g of wax per hour; bigger wicks burn faster. Measure your own rate for accuracy.",
        "inputs": {
            "burn_rate": 8,
            "wax_grams": 180
        },
        "burn_time_hours": 22.5,
        "burn_time_formatted": "22h 30m"
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:11.965Z",
        "request_id": "30089111-a333-484d-942a-bb018009bcf9"
    },
    "status": "ok",
    "message": "Burn time",
    "success": true
}