Lightning API
Powered by DTN

Overview

DTN Lightning API can provide two types of data around lightning strikes, up to 7 days in the past via https://lightning.weather.mg:

Real-time data shows every lightning strike that has occurred over a specified period time in a specified region.

Because individual lightning strikes can number thousands in a single thunderstorm, Lightning API also allows you to consume condensed data around the lightning strikes. Condensed data, which is based on the originally reported raw data, is provided using temporal and spatial aggregation.

Data sources used for the Lightning API

DTN delivers real-time, high-quality lightning data on a global scale. Several providers operate lightning detection networks. These networks provide both the location of lightning strikes, and other parameters, such as polarity, strength of current, and height of lightning (in case of inter-cloud strikes).

The Lightning API currently includes data from the following two providers:

Value proposition of the Lightning API

The value proposition of the Lightning API is as listed in the following table, which emphasizes where DTN adds value to core data.

ParameterValue added
CoverageNowcast and Earth Networks data available through one API.
Spatial resolutionDTN aggregates lightning data for better visualization.
CompletenessLightning location, actual time, intensity, ground, cloud to cloud, height.
UniquenessDensity map provides unique, derived data.
AvailabilityThe use of two sources provides backup in case of network failure.

Formatting

A sample request using the Lightning API looks like this:

https://lightning.weather.mg/search?provider=NOWCAST,ENTLN&locationWithin=[10,13],[52,5]
The above request will return real-time, raw data for lighting strikes for the specified location (Berlin, Germany) over the last 3 days.

The returned data will be formatted in JSON, and will look like this:

{
        "lightnings":[
                    {
                         "occurredAt":"2017-01-05T12:21:14.974Z",
                         "provider":"NOWCAST",
                         "lightningType":"CLOUD_TO_GROUND",
                         "elevationInKilometers":0,
                         "currentInAmpere":4500,
                         "location":[
                            9.6345,
                            19.3064
                         ]
                      },
                      {
                         "occurredAt":"2017-01-05T12:21:14.974Z",
                         "provider":"ENTLN",
                         "lightningType":"CLOUD_TO_GROUND",
                         "elevationInKilometers":0,
                         "currentInAmpere":4700,
                         "location":[
                            8.6345,
                            20.3064
                         ]
                      },
                       {
                          "provider": "NOWCAST",
                          "occurredAt": "2017-01-05T12:20:14.974Z",
                          "elevationInKilometers": 0,
                          "lightningType": "CLOUD_TO_GROUND",
                          "currentInAmpere": -3500,
                          "location": [
                            9.3345,
                            19.7064
                          ]
                        }
                   ]
                }
        

Nitty-Gritty

For more detailed information on this API, check us out on Bitbucket.