Vai al contenuto
GET /v1/burntime

Time to sunburn

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/sunscreen-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

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