Xweather · Example Payload

Xweather Get Lightning Example

Example response from GET /lightning/{location} for a lat/long coordinate in Texas

Air QualityCompanyDataForecastLightningMaritimeObservationsSevere WeatherWeather

Xweather Get Lightning Example is an example object payload from Xweather, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionrequestresponse

Example Payload

Raw ↑
{
  "description": "Example response from GET /lightning/{location} for a lat/long coordinate in Texas",
  "request": {
    "method": "GET",
    "url": "https://data.api.xweather.com/lightning/32.7767,-96.7970",
    "queryParameters": {
      "client_id": "YOUR_CLIENT_ID",
      "client_secret": "YOUR_CLIENT_SECRET",
      "radius": "25mi",
      "limit": "5"
    }
  },
  "response": {
    "success": true,
    "response": [
      {
        "id": "ltng-001",
        "loc": {
          "lat": 32.8821,
          "lon": -96.8702
        },
        "ob": {
          "id": "ltng-001",
          "lat": 32.8821,
          "lon": -96.8702,
          "timestamp": 1746268500,
          "dateTimeISO": "2026-05-03T09:55:00-05:00",
          "type": "CG",
          "polarity": "-",
          "peakAmpKA": -42.3,
          "ic": false
        },
        "relativeTo": {
          "bearing": 310,
          "bearingENG": "NW",
          "distanceKM": 14.6,
          "distanceMI": 9.1
        }
      },
      {
        "id": "ltng-002",
        "loc": {
          "lat": 32.7012,
          "lon": -96.6534
        },
        "ob": {
          "id": "ltng-002",
          "lat": 32.7012,
          "lon": -96.6534,
          "timestamp": 1746268560,
          "dateTimeISO": "2026-05-03T09:56:00-05:00",
          "type": "IC",
          "polarity": "+",
          "peakAmpKA": 18.7,
          "ic": true
        },
        "relativeTo": {
          "bearing": 135,
          "bearingENG": "SE",
          "distanceKM": 17.2,
          "distanceMI": 10.7
        }
      }
    ]
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/xweather-get-lightning-example"
All examples
curl "https://apis.io/api/v1/examples?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.