Skip to content
Xweather home

Lightning API

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

We know when lightning strikes

Reliable real-time lightning strike data

The Xweather Lightning API delivers real-time and historical lightning strike data 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.

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 about /lightning

/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 about /lightning/flash

/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 about /lightning/threats

/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 about /lightning/analytics

/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 about /lightning/summary

Integrations made easy

SDKs and toolkits

Our software development kits for iOS, Android, and JavaScript make it easy to integrate Xweather data into your apps and platforms—with the tools you need to move from prototype to production.

MCP ready

Integrate lightning data into your AI workflows with direct API access through our MCP server. Query, analyze, and use weather information for automated decision-making.

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.

Test queries

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.

Test-drive the Xweather Lightning API

  • RESTful service providing precise global lightning data

  • Seamless integration into web, native, or mobile applications

  • Integrate static images or WebGL animations seamlessly with popular mapping platforms

Free trial about Test-drive the Xweather Lightning API

Example request

Response

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

    No other company can match us for quality, accuracy, and coverage

  • 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.

Connect to our MCP server

If you are building an agent that interacts with OpenAI, you can plug in the Xweather MCP server to provide real-world weather intelligence.

  • Reduce integration friction
  • Stay current
  • Ship faster

Visualize lightning in stunning clarity

Harness our API-powered MapsGL vector mapping platform to create lightning and other weather-threat visuals

  • Smooth animations
  • Full customization

Mapping libraries for every need

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

The Lightning API is included in the Weather API and Maps subscription, with access to all lightning data endpoints, and to high-resolution lightning visuals via Raster Maps and MapsGL.

Frequently asked questions

With wireless NB-IoT connectivity and battery power, AtmoCast sensors are easy to install in any location. Our experts will assist you with site selection. Mounting a sensor takes only 15 minutes with the included accessories and standard hardware. Onsite activation is simple with the Vaisala Xcast Connect mobile application.