Logo

Lightning API

The Xweather Lightning API is built on real detection infrastructure, backed by a proprietary global network with decades of operational use across aviation, defense, and national weather services.

Get started
Dark storm clouds with a bright lightning bolt illuminating the sky, creating a dramatic contrast between light and shadow.
We know when lightning strikes

Reliable real-time lightning data

The Xweather weather API delivers real-time and historical lightning strike data through dedicated lightning endpoints, powered by a proprietary global detection network with over 40 years of operational history.

Get your lightning data directly from the source with easy integration, advanced geospatial capabilities, and industry-leading support. From historical lightning to real-time strike detection and forecasting, our lightning API endpoints are ready to power weather-sensitive applications and solutions.

Access precise lightning strike location, polarity, peak current, classification, and timing through simple REST endpoints. Low latency delivery makes the API suitable for operational alerting, automated decision systems, and mission-critical applications.

Bring lightning data to your applications

From historical lightning to real-time strike detection and forecasting, our lightning API endpoints are ready to power your weather-sensitive applications and solutions today.

2 billion lightning events yearly

We detect the precise time and location of over 2 billion lightning events every year.

40 years of lightning detection

Backed by the longest-running lightning detection infrastructure in the world.

99.99% uptime

24 hours a day without the need to purchase or maintain additional equipment or systems.

84 m median accuracy

84 m median accuracy with precision network and 1 km globally.

Lightning endpoints

/lightning

The lightning endpoint delivers near real-time, high-resolution global lightning strike data—including type, location, and intensity. Up to 1,000 events from the past 5 minutes within a 100 km radius.

Learn more

/lightning/flash

The lightning/flash endpoint provides real-time data on individual lightning flashes, with precise metadata for location, intensity, and strike type. Each flash includes timestamp, location, type (cloud-to-ground or intracloud), polarity, and peak amperage. Up to 24 hours and 50,000 events.

Learn more

/lightning/threats

The lightning/threats endpoint identifies and tracks active lightning hazard zones, providing real-time polygons identifying threat zones classified as new, persistent, dissipating, or cleared, based on ongoing lightning activity and storm trajectory.

Learn more

/lightning/analytics

The lightning/analytics endpoint provides aggregated lightning statistics over time and space, enabling long-term analysis, risk assessment, and planning. Counts and densities of lightning activity over time, broken down by type, polarity, and intensity.

Learn more

/lightning/summary

The lightning summary endpoint delivers a real-time, global snapshot of recent lightning activity for quick assessments and situational awareness of lightning pulses and strikes from the past 24 hours.

Learn more

Integrations made easy

Output formats

Request data in the format that fits your stack. Control exactly which fields come back and in what order. Output formats include JSON, GeoJSON, CSV, and TSV.

MCP server

Integrate lightning data into AI workflows through the Xweather MCP server. Query, analyze, and act on lightning intelligence within automated decision systems.

Webhooks

Get near real-time lightning data via webhooks. Just provide an HTTP URL, and our system will push data from any lightning endpoint to your application.

Query builder

Our API wizards make it easy to access advanced weather data and imagery—no technical background required. Exploring options or deploy a solution in just a few clicks.

Xweather API lightning data examples

  • RESTful service providing precise global lightning data

  • Seamless integration into web, native, or mobile applications

Get started

Example request

Response

Visualize lightning data with our mapping libraries

MapsGL

MapsGL leverages WebGL for smooth, data-encrypted weather animations. The visually impressive mapping layers are optimized for low-bandwidth use and are highly customizable.

Raster Maps

Raster Maps is a tile-mapping tool ideal for still-image weather visualizations, offering 100+ layers compatible with basemap providers such as Mapbox, Google Maps, and Leaflet.

Xweather Live

Explore real-time lightning strikes, wildfire boundaries, road weather data, and more, in Xweather's browser-based weather app. Xweather Live gives you a view of what's possible with our maps and API.

Start building today

Access lightning endpoints in the Weather API and Maps subscription, with access to all endpoints, and to high-resolution lightning visuals via Raster Maps and MapsGL.

Frequently asked questions

Xweather Lightning API covers real-time lightning strike detection, strike location and time, strike intensity, and historical lightning datasets for analysis and modeling.