WeatherAPI · JSON Structure

Weatherapi Forecast Day Structure

ForecastDay schema from WeatherAPI.com

Type: object Properties: 21
WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

ForecastDay is a JSON Structure definition published by WeatherAPI, describing 21 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

maxtemp_c maxtemp_f mintemp_c mintemp_f avgtemp_c avgtemp_f maxwind_mph maxwind_kph totalprecip_mm totalprecip_in totalsnow_cm avgvis_km avgvis_miles avghumidity daily_will_it_rain daily_chance_of_rain daily_will_it_snow daily_chance_of_snow condition uv air_quality

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/json-structure/weatherapi-forecast-day-structure.json",
  "name": "ForecastDay",
  "description": "ForecastDay schema from WeatherAPI.com",
  "type": "object",
  "properties": {
    "maxtemp_c": {
      "type": "double",
      "example": 18.5
    },
    "maxtemp_f": {
      "type": "double",
      "example": 65.3
    },
    "mintemp_c": {
      "type": "double",
      "example": 18.5
    },
    "mintemp_f": {
      "type": "double",
      "example": 65.3
    },
    "avgtemp_c": {
      "type": "double",
      "example": 18.5
    },
    "avgtemp_f": {
      "type": "double",
      "example": 65.3
    },
    "maxwind_mph": {
      "type": "double",
      "example": 12.4
    },
    "maxwind_kph": {
      "type": "double",
      "example": 12.4
    },
    "totalprecip_mm": {
      "type": "double",
      "example": 0.5
    },
    "totalprecip_in": {
      "type": "double",
      "example": 0.5
    },
    "totalsnow_cm": {
      "type": "double",
      "example": 1.0
    },
    "avgvis_km": {
      "type": "double",
      "example": 10.0
    },
    "avgvis_miles": {
      "type": "double",
      "example": 10.0
    },
    "avghumidity": {
      "type": "int32",
      "example": 65
    },
    "daily_will_it_rain": {
      "type": "int32",
      "example": 1
    },
    "daily_chance_of_rain": {
      "type": "int32",
      "example": 1
    },
    "daily_will_it_snow": {
      "type": "int32",
      "example": 1
    },
    "daily_chance_of_snow": {
      "type": "int32",
      "example": 1
    },
    "condition": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Weather condition description",
          "example": "Partly Cloudy"
        },
        "icon": {
          "type": "string",
          "description": "URL to condition icon",
          "example": "//cdn.weatherapi.com/weather/64x64/day/116.png"
        },
        "code": {
          "type": "int32",
          "description": "Condition code (see conditions.json)",
          "example": 1003
        }
      }
    },
    "uv": {
      "type": "double",
      "example": 4.0
    },
    "air_quality": {
      "type": "object",
      "description": "Air quality data. Returned when aqi=yes.",
      "properties": {
        "co": {
          "type": "double",
          "description": "Carbon monoxide µg/m³",
          "example": 1.0
        },
        "o3": {
          "type": "double",
          "description": "Ozone µg/m³",
          "example": 1.0
        },
        "no2": {
          "type": "double",
          "description": "Nitrogen dioxide µg/m³",
          "example": 1.0
        },
        "so2": {
          "type": "double",
          "description": "Sulphur dioxide µg/m³",
          "example": 1.0
        },
        "pm2_5": {
          "type": "double",
          "description": "PM2.5 µg/m³",
          "example": 1.0
        },
        "pm10": {
          "type": "double",
          "description": "PM10 µg/m³",
          "example": 1.0
        },
        "us-epa-index": {
          "type": "int32",
          "description": "US EPA index 1–6 (1=Good, 6=Hazardous)",
          "example": 1
        },
        "gb-defra-index": {
          "type": "int32",
          "description": "UK DEFRA index 1–10",
          "example": 1
        }
      }
    }
  }
}