/v1/burntime
Time to sunburn
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}