Real-time UV Index Forecast
OpenUV provides a global real-time UV Index API for developers and smart home enthusiasts.
import requests
url = "https://api.openuv.io/api/v1/uv"
params = {
"lat": 34.0522,
"lng": -118.2437
}
headers = {
"x-access-token": "YOUR_API_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())Last 50 checks (10 min intervals)