Climate
UV index from irradiance API
Computes the WHO UV Index from erythemally-weighted surface irradiance with exposure category and a Fitzpatrick skin-type burn-time estimate. Answers 'What UV index is 0.2 W/m2 erythemal?', 'How long until I burn at this UV?'.
Price$0.04per request
MethodPOST
Route/v1/climate/uv-index-irradiance
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
uv-indexuviirradiancewhosunburnfitzpatrickerythemalburn-time
API URL
Integration docshttps://x402.hexl.dev/v1/climate/uv-index-irradianceExample request
{
"uvIrradianceWm2": 0.2,
"skinType": 2
}Example response
{
"uvIndex": 8,
"category": "Very High",
"skinType": 2,
"burnTimeMinutes": 20.8,
"uvIrradianceWm2": 0.2,
"interpretation": "UV Index 8 (Very High); unprotected burn in ~21 min for skin type 2.",
"formula": "UVI = erythemal irradiance(W/m²)×40 (WHO); burn time = MED / erythemal irradiance"
}Input schema
{
"type": "object",
"required": [
"uvIrradianceWm2"
],
"properties": {
"uvIrradianceWm2": {
"type": "number",
"description": "Erythemal UV irradiance (W/m2)",
"examples": [
0.2
]
},
"skinType": {
"type": "number",
"description": "Fitzpatrick skin type 1-6 (default 2)",
"examples": [
2
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}