OpenUV · JSON Structure

Openuv Uv Index Structure

Structured representation of the current UV index response.

Type: object Properties: 8
WeatherUV IndexSunSolarGeolocationForecastPublic APIs

UVIndex is a JSON Structure definition published by OpenUV, describing 8 properties. It conforms to the https://json-structure.org/meta/draft-00/schema meta-schema.

Properties

uv uv_time uv_max uv_max_time ozone ozone_time safe_exposure_time sun_info

Meta-schema: https://json-structure.org/meta/draft-00/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/draft-00/schema",
  "title": "OpenUV UV Index Structure",
  "description": "Structured representation of the current UV index response.",
  "type": "object",
  "name": "UVIndex",
  "properties": {
    "uv": { "type": "number", "unit": "uv-index" },
    "uv_time": { "type": "string", "format": "date-time" },
    "uv_max": { "type": "number", "unit": "uv-index" },
    "uv_max_time": { "type": "string", "format": "date-time" },
    "ozone": { "type": "number", "unit": "DU" },
    "ozone_time": { "type": "string", "format": "date-time" },
    "safe_exposure_time": {
      "type": "object",
      "name": "SafeExposureTime",
      "properties": {
        "st1": { "type": "integer", "unit": "minutes", "description": "Fitzpatrick Skin Type 1" },
        "st2": { "type": "integer", "unit": "minutes", "description": "Fitzpatrick Skin Type 2" },
        "st3": { "type": "integer", "unit": "minutes", "description": "Fitzpatrick Skin Type 3" },
        "st4": { "type": "integer", "unit": "minutes", "description": "Fitzpatrick Skin Type 4" },
        "st5": { "type": "integer", "unit": "minutes", "description": "Fitzpatrick Skin Type 5" },
        "st6": { "type": "integer", "unit": "minutes", "description": "Fitzpatrick Skin Type 6" }
      }
    },
    "sun_info": {
      "type": "object",
      "name": "SunInfo",
      "properties": {
        "sun_times": { "type": "object" },
        "sun_position": {
          "type": "object",
          "properties": {
            "azimuth": { "type": "number", "unit": "radians" },
            "altitude": { "type": "number", "unit": "radians" }
          }
        }
      }
    }
  }
}