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.
{
"$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
}
}
}
}
}