smarterweather-com · Schema

WeatherBatchRequest

Multi-location request body. `locations[]` is required and capped at 25 entries. The remaining fields are shared parameters applied to every location.

CompanyWeatherDataForecastingAPIClimate

Properties

Name Type Description
locations array Locations to fetch in this batch. Order is preserved on the corresponding `results[]` array.
include string Same semantics as the `include` query parameter on `GET /v1/weather`. Applied to every location.
units string Same semantics as the `units` query parameter on `GET /v1/weather`.
days integer Same semantics as the `days` query parameter on `GET /v1/weather`.
hourly_hours integer Same semantics as the `hourly_hours` query parameter on `GET /v1/weather`.
view string Same semantics as the `view` query parameter on `GET /v1/weather`. Applied to every row.
fields string Same semantics as the `fields` query parameter on `GET /v1/weather`, as one comma-separated string. Validated once against the batch `include`; an invalid path fails the whole request with `400`.
hourly_step integer Same semantics as the `hourly_step` query parameter on `GET /v1/weather`.
hourly_step_from integer Same semantics as the `hourly_step_from` query parameter on `GET /v1/weather`.
View JSON Schema on GitHub

JSON Schema

smarterweather-com-weather-batch-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smarterweather-com/json-schema/smarterweather-com-weather-batch-request-schema.json",
  "title": "WeatherBatchRequest",
  "description": "Multi-location request body. `locations[]` is required and capped\nat 25 entries. The remaining fields are shared parameters applied\nto every location.\n",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smarterweather-com-openapi.yaml#/components/schemas/WeatherBatchRequest",
  "type": "object",
  "required": [
    "locations"
  ],
  "properties": {
    "locations": {
      "type": "array",
      "minItems": 1,
      "maxItems": 25,
      "description": "Locations to fetch in this batch. Order is preserved on the\ncorresponding `results[]` array.\n",
      "items": {
        "$ref": "#/$defs/WeatherBatchLocation"
      }
    },
    "include": {
      "type": "string",
      "description": "Same semantics as the `include` query parameter on\n`GET /v1/weather`. Applied to every location.\n"
    },
    "units": {
      "type": "string",
      "enum": [
        "imperial",
        "metric"
      ],
      "default": "imperial",
      "description": "Same semantics as the `units` query parameter on `GET /v1/weather`."
    },
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 14,
      "default": 10,
      "description": "Same semantics as the `days` query parameter on `GET /v1/weather`."
    },
    "hourly_hours": {
      "type": "integer",
      "minimum": 1,
      "maximum": 168,
      "default": 48,
      "description": "Same semantics as the `hourly_hours` query parameter on `GET /v1/weather`."
    },
    "view": {
      "type": "string",
      "enum": [
        "concise",
        "detailed"
      ],
      "default": "detailed",
      "description": "Same semantics as the `view` query parameter on `GET /v1/weather`. Applied to every row."
    },
    "fields": {
      "type": "string",
      "description": "Same semantics as the `fields` query parameter on\n`GET /v1/weather`, as one comma-separated string. Validated once\nagainst the batch `include`; an invalid path fails the whole\nrequest with `400`.\n"
    },
    "hourly_step": {
      "type": "integer",
      "minimum": 1,
      "maximum": 24,
      "default": 1,
      "description": "Same semantics as the `hourly_step` query parameter on `GET /v1/weather`."
    },
    "hourly_step_from": {
      "type": "integer",
      "minimum": 0,
      "maximum": 168,
      "default": 0,
      "description": "Same semantics as the `hourly_step_from` query parameter on `GET /v1/weather`."
    }
  },
  "$defs": {
    "WeatherBatchLocation": {
      "type": "object",
      "description": "A single location selector. Exactly one of (`lat` + `lon`),\n`zip`, or `location` must be provided. Mixing selectors in one\nentry, or omitting all of them, fails that row only.\n",
      "properties": {
        "lat": {
          "type": "number",
          "format": "double",
          "minimum": -90,
          "maximum": 90,
          "description": "Latitude. Required together with `lon`."
        },
        "lon": {
          "type": "number",
          "format": "double",
          "minimum": -180,
          "maximum": 180,
          "description": "Longitude. Required together with `lat`."
        },
        "zip": {
          "type": "string",
          "pattern": "^\\d{5}$",
          "description": "5-digit US ZIP code."
        },
        "location": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Free-text location name."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/smarterweather-com-weather-batch-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.