Xweather · JSON Structure

Xweather Weather Api Structure

Structural reference describing the canonical envelope shared by Xweather Weather API responses. Every endpoint returns a top-level success flag, an optional error object, and a response payload that is either a single record or an array of records depending on the endpoint.

Type: object Properties: 3 Required: 1
Air QualityCompanyDataForecastLightningMaritimeObservationsSevere WeatherWeather

Xweather Weather Api Structure is a JSON Structure definition published by Xweather, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/draft-01/json-structure-core.json meta-schema.

Properties

success error response

Meta-schema: https://json-structure.org/draft-01/json-structure-core.json

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft-01/json-structure-core.json",
  "$id": "https://raw.githubusercontent.com/api-evangelist/xweather/refs/heads/main/json-structure/xweather-weather-api-structure.json",
  "title": "Xweather Weather API Structure",
  "description": "Structural reference describing the canonical envelope shared by Xweather Weather API responses. Every endpoint returns a top-level success flag, an optional error object, and a response payload that is either a single record or an array of records depending on the endpoint.",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Whether the request was processed successfully."
    },
    "error": {
      "type": "object",
      "description": "Error envelope returned when success is false.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Xweather error code (e.g. invalid_client, no_data)."
        },
        "description": {
          "type": "string",
          "description": "Human-readable explanation of the error."
        }
      }
    },
    "response": {
      "description": "Endpoint payload. Single-record endpoints return an object; list endpoints return an array of objects.",
      "oneOf": [
        { "type": "object" },
        {
          "type": "array",
          "items": { "type": "object" }
        }
      ]
    }
  },
  "required": ["success"],
  "x-resources": {
    "Conditions": "Current and historical surface weather observations and derived conditions.",
    "Forecasts": "Hourly and daily forecast records for a location.",
    "Alerts": "Active and historical severe-weather alerts and warnings.",
    "Lightning": "Cloud-to-ground and in-cloud lightning strike events and threat nowcasts.",
    "AirQuality": "Air-quality index values, primary pollutants, and category descriptors.",
    "Observations": "Reports from individual weather stations.",
    "Fires": "Active wildfire incident records.",
    "Tropical": "Tropical cyclone tracks, intensity, and forecast cones.",
    "Maritime": "Marine and ocean weather records (waves, swell, sea state, sea-surface temperature)."
  },
  "x-locationSelectors": {
    "description": "All Xweather endpoints accept a {location} path parameter that selects records by ZIP code, city/state, country, lat/long pair, place name, station ID, or special tokens such as :auto and closest queries."
  }
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/xweather-weather-api-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

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

Get an API key

Free tier, no email required.

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