WeatherAPI · Schema

Condition

Condition schema from WeatherAPI.com

WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

Properties

Name Type Description
text string Weather condition description
icon string URL to condition icon
code integer Condition code (see conditions.json)
View JSON Schema on GitHub

JSON Schema

weatherapi-condition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/json-schema/weatherapi-condition-schema.json",
  "title": "Condition",
  "description": "Condition schema from WeatherAPI.com",
  "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": "integer",
      "description": "Condition code (see conditions.json)",
      "example": 1003
    }
  }
}