APIHub
Back to Explore

OpenUV

Provides UV index data for a given location, offering real‑time UV index values, hourly UV index forecasts, and daily protection‑time calculations, with optional altitude, ozone level, and datetime parameters.

Weather
apiKey
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

313ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/protection

Get daily protection time by location, UV Index from and UV Index to with 10 minutes accuracy. Optional altitide and ozone level could be provided.

  • lat (query, required) — latitude, from -90.00 to 90.00
  • lng (query, required) — longitude, from -180.00 to 180.00
  • from (query, required) — UV Index from value for protection datetime lookup. From 0 to 40.
  • to (query, required) — UV Index to value for protection datetime lookup. From 0 to 40.
  • alt (query) — Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV Index value.
  • ozone (query) — Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default.
  • x-access-token (header, required) — This header is used to send data that contains your OpenUV API key
GET

/forecast

Get hourly UV Index Forecast by location and date. Optional altitude, ozone level and datetime could be provided.

  • lat (query, required) — latitude, from -90.00 to 90.00
  • lng (query, required) — longitude, from -180.00 to 180.00
  • alt (query) — Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV Index value.
  • ozone (query) — Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default.
  • dt (query) — UTC datetime in ISO-8601 format, now by default. Use that parameter to get UV Index Forecast for any point in time.
  • x-access-token (header, required) — This header is used to send data that contains your OpenUV API key
GET

/uv

Get real-time UV Index by location. Optional altitude, ozone level and datetime could be provided.

  • lat (query, required) — latitude, from -90.00 to 90.00
  • lng (query, required) — longitude, from -180.00 to 180.00
  • alt (query) — Altitude in meters, from 0 to 10000m, 0m by default. If provided the altitude correction factor will be applied to clear sky sea level UV Index value.
  • ozone (query) — Ozone in du (Dobson Units), from 100 to 550du, the latest forecast from OMI dataset is used by default.
  • dt (query) — UTC datetime in ISO-8601 format, now by default. Use that parameter to get UV Index Forecast for any point in time.
  • x-access-token (header, required) — This header is used to send data that contains your OpenUV API key

3 endpoints auto-detected

Authentication

This API requires authentication: apiKey.

curl -X GET \
  "https://www.openuv.io/protection"

www.openuv.io · HTTPS only