Skip to content
Console

Lightning

These endpoints serve lightning detected by the Central Weather Administration (CWA). Each flash has a type (cloud-to-cloud or cloud-to-ground), a time, and coordinates. The server checks the source every 30 seconds and adds a snapshot when the source updates. Snapshots are kept for 3 days. Use them to draw lightning on a map or to warn for thunderstorms. The shared format is in the Weather API.

Upstream terms
  • Central Weather Administration (CWA): CWA's own data terms (such as the Open Government Data License) also apply; CWA's official releases take precedence.

Where to show it, examples and commercial-use requests: Data licensing and attribution.

No API Token is required.

The latest lightning snapshot. Lightning has no stations. In the columnar format, the same index in each array is one flash.

GEThttps://api.core-tnn1.exptech.dev/api/v5/meteor/lightning
ServerTNN-1
Request
curl "https://api.core-tnn1.exptech.dev/api/v5/meteor/lightning"
Response

Success

{
"time": 1794636300,
"type": [
0,
0,
1
],
"t": [
1794635880,
1794635940,
1794636120
],
"lat": [
24.802,
24.804,
24.818
],
"lon": [
121.008,
121.023,
120.978
]
}

Not modified (If-None-Match matched). No bodyNo response body

Try it

The token is sent from your browser directly to the API.

FieldTypeDescription
timenumberEnd of the interval this batch covers, in Unix seconds
typenumber[]Flash type: 0 cloud-to-cloud, 1 cloud-to-ground
tnumber[]Time of each flash, in Unix seconds
latnumber[]Latitude, 4 decimal places
lonnumber[]Longitude, 4 decimal places

When there were no flashes in the interval, each array is empty. When the server has no data yet, the response is {}.

Lightning snapshot times you can query now, as delta-encoded Unix seconds, oldest first. See Delta-encoded time lists for how to decode them.

GEThttps://api.core-tnn1.exptech.dev/api/v5/meteor/lightning/list
ServerTNN-1
Request
curl "https://api.core-tnn1.exptech.dev/api/v5/meteor/lightning/list"
Response

Success

[
1794377100,
300,
300,
600
]

Not modified (If-None-Match matched). No bodyNo response body

Try it

The token is sent from your browser directly to the API.

FieldTypeDescription
[0]numberTime of the oldest snapshot, in Unix seconds
[i](i ≥ 1)numberGap from the previous time, in seconds. A new snapshot is added only when the source updates, so the gap is not fixed

When there are no snapshots, the response is [].

The lightning snapshot at a chosen time. The structure matches Latest lightning. It is served only on static.core. api.core returns 404 for this path.

GEThttps://static.core-tnn1.exptech.dev/api/v5/meteor/lightning/{time}
ServerTNN-1
Path parameters
  • timeintegerRequired

    Path parameter. Snapshot time, a 10-digit Unix timestamp in seconds. It must be a value that appeared in /list

Request
curl "https://static.core-tnn1.exptech.dev/api/v5/meteor/lightning/<time>"
Response

Success. Same structure as the latest lightning

{
"time": 1794636000,
"type": [
1
],
"t": [
1794635710
],
"lat": [
24.7921
],
"lon": [
121.0113
]
}

Not modified (If-None-Match matched). No bodyNo response body

time is not an integer, or there is no snapshot at that time (including past the retention window). No bodyNo response body

Try it
Path parameters

The token is sent from your browser directly to the API.

Same response fields as Latest lightning.

  • Every time is Unix seconds. time is the end of the snapshot interval. The time of an individual flash is t.
  • Snapshots are kept for 3 days. Lightning has no trend endpoint and no station-catalog endpoint.
  • Source: lightning data in CWA open data.
  • Which server to call is in the Weather API. Timestamp snapshots go to static.core. Everything else goes to api.core. Use the TNN-1 URLs directly.