/v1/burntime
Time to sunburn
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}