OpenUV API
Overview
OpenUV provides real-time UV Index forecasts for any location on Earth, helping you understand sun exposure risks. It delivers hourly UV index data including safe exposure times and ozone levels. Beginners can use it to build sun safety apps or integrate UV alerts into weather dashboards.
Beginner Tip
Register at openuv.io to get a free API key with 500 requests/day. Use latitude and longitude coordinates to query any location worldwide.
Available Data
Example Response
{
"location": "Tokyo",
"temperature": {
"current": 22,
"feels_like": 24,
"min": 18,
"max": 26
},
"condition": "Partly Cloudy",
"humidity": 65,
"wind": {
"speed": 12,
"direction": "NE"
},
"forecast": [
{
"date": "2025-01-16",
"high": 25,
"low": 17,
"condition": "Sunny"
}
]
} Field Reference
uv Current UV index value at the requested location (0 = no UV, 11+ = extreme) uv_time ISO 8601 timestamp when the UV reading was recorded uv_max Predicted maximum UV index for the day uv_max_time Time of day when the maximum UV index is expected ozone Current ozone level in Dobson Units, which affects UV radiation reaching the surface safe_exposure_time Estimated safe sun exposure times (in minutes) for different skin types (st1 through st6) Implementation Example
const url = "https://www.openuv.io/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →AccuWeather
AccuWeather's API provides highly detailed weather forecasts, current conditions, and severe weather alerts for locations around the world.
Aemet
Aemet OpenData is Spain's official meteorological agency API providing weather forecasts, observations, and climate data for Spanish territory including the Canary Islands and Balearics.
APIXU
APIXU (now rebranded as Weatherstack) is a weather data API that provides current conditions, forecasts, and historical weather for locations around the world.
AQICN
⭐ Beginner's PickAQICN (Air Quality Index CN) provides real-time air quality data for over 1,000 cities worldwide, including PM2.5, PM10, ozone, and other pollutant readings.
ColorfulClouds
ColorfulClouds (Caiyun Weather) is a Chinese weather API that delivers real-time and forecast weather data with minute-level precipitation predictions.