Aller au contenu
GET /v1/burntime

Time to sunburn

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/sunscreen-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/sunscreen-api/v1/burntime" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sunscreen-api/v1/burntime", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sunscreen-api/v1/burntime");
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/sunscreen-api/v1/burntime",
    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": "Roughly: protected burn time = unprotected × SPF, where unprotected ≈ a skin-type base (type II ~15 min) scaled by 6 ÷ UV index. But sunscreen breaks down — reapply every 2 hours regardless of SPF, and sooner with sweat or water. Educational, not a substitute for caution or a doctor.",
        "inputs": {
            "spf": 30,
            "uv_index": 8,
            "skin_type": 2
        },
        "uv_risk": "very high",
        "protected_minutes_to_burn": 338,
        "unprotected_minutes_to_burn": 11
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:48.760Z",
        "request_id": "a6b703c9-d929-4bd8-84b3-c73e4db337fe"
    },
    "status": "ok",
    "message": "Burn time",
    "success": true
}