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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

temperature
weather conditions
humidity
wind speed
forecast data
Use case: Integrate real-time uv index forecast data into web and mobile applications

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.openuv.io/api/v1/uv?lat=43.4643&lng=-80.5204";
// 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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

403 Forbidden Invalid or missing x-access-token header
Pass your API key in the x-access-token request header, not as a query parameter
429 Too Many Requests Exceeded the free tier limit of 500 requests per day
Cache UV data and refresh only once per hour since UV index changes slowly
Empty response or null uv field Night-time query where UV index is 0 or location is in polar darkness
Check the uv_time field to confirm the measurement time and handle 0 values explicitly in your app

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Weather
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →