WeatherAPI · JSON Structure

Weatherapi Bulk Request Structure

BulkRequest schema from WeatherAPI.com

Type: object Properties: 1 Required: 1
WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

BulkRequest is a JSON Structure definition published by WeatherAPI, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

locations

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-bulk-request-structure.json",
  "name": "BulkRequest",
  "description": "BulkRequest schema from WeatherAPI.com",
  "type": "object",
  "properties": {
    "locations": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "object",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "type": "string",
            "description": "Location query (same formats as q parameter)",
            "example": "sample value"
          },
          "custom_id": {
            "type": "string",
            "description": "Optional identifier echoed back in response",
            "example": "sample value"
          }
        }
      }
    }
  },
  "required": [
    "locations"
  ]
}