WeatherAPI · JSON Structure

Weatherapi Condition Structure

Condition schema from WeatherAPI.com

Type: object Properties: 3
WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

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

Properties

text icon code

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-condition-structure.json",
  "name": "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": "int32",
      "description": "Condition code (see conditions.json)",
      "example": 1003
    }
  }
}