Logo

Weather API

Access real-time and historical weather intelligence through a fast, reliable API backed by a proprietary global sensor network with decades of operational use.

Get started
Blueish gradient with weather map patterns
Premium data and global coverage

Fast, accurate, and unique weather data

The Xweather API gives developers one interface for global weather intelligence. It includes exclusive datasets like lighting strike data from our own lightning detection network and the industry's only hail forecast.

Using machine learning, the API turns complex weather models into precise, actionable insights. Built for the reliability and scale that mission-critical applications demand.

Documentation

By developers for developers

The most unique datasets in the market, backed by high-resolution, real-time data from a globally distributed proprietary infrastructure.

Built for developers

Agent-ready MCP and toolkits​

Built for trust

Choice for safety, operations, and long-term planning

Built for outcomes

Enterprise SLA, webhooks, and multi-region infrastructure

Built for speed

From prompt to practice in 2 minutes

Fortune 100 companies rely on Xweather

Custom endpoints

When you need more than a commodity API

/lightning

Get real-time and historical lightning data, threat zones, and analytics—backed by the world’s most trusted lightning detection network. Provides 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

/hail

Access real-time hail forecasts and validated historical data to support risk assessment and asset protection. Integrate hail data into web apps and dashboards.

/impacts

Forecast how current and short-term weather conditions affect specific activities across land and sea to assess operational risks in real time. Provides near real-time forecasts and risk evaluations with full global reach.

Learn more

/alerts

Endpoints that deliver real-time and historical insights on extreme weather. Global government-issued alerts, impact-based intelligence, and deep historical access dating back decades for validation and planning.

Learn more

/phrases

Transform raw weather data into real-time, natural language summaries—for users to understand the forecast without needing a meteorologist. Customizable, AI-generated summaries in 50+ languages for alerts, conditions, and activity-specific impacts.

Learn more

/road weather

High-resolution forecasts powered by advanced modeling and sensor networks delivering real-time and forecasted insights on road surface states (water, snow, and ice thickness).

65 weather and environmental endpoints

  • Actionable endpoints, from “What’s happening?” to “What should I do?”​

  • Unique datasets for lightning, renewable energy, automotive, hail​, and more

  • Actionable data for renewables, road safety, and air quality,​ amongst other use cases

Explore all endpoints

Sign up. Get key. Start building.

01
Sign up

Create an account and start a free 30-day trial. No credit card required. Full access to all Weather API endpoints from day one.

02
Get key

Access your client ID and secret from the dashboard. Use our documentation to authenticate requests in your preferred language.

03
Query your first endpoint

Use our API wizards to explore endpoints and build queries without code, or integrate directly using SDKs for iOS, Android, or JavaScript.

04
Deploy and scale

Move from prototype to production with enterprise support, webhooks for real-time alerts, and infrastructure that handles your growth.

Xweather API examples

  • RESTful service

  • Seamless integration into web, native, or mobile applications

Get started

Example request

Response

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.

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.

MCP server

Integrate weather data into AI workflows through the Xweather MCP server. Query, analyze, and use weather information for automated decision-making.

Webhooks

Receive real-time weather data via webhooks. Provide an HTTP URL and the system pushes data from any Weather API endpoint directly to your application.

Connect to our MCP server

Connect the Xweather MCP server to integrate weather intelligence into AI agents and LLM workflows.

Learn more
  • Call pre-approved tools instead of building bespoke API wrappers
  • Every response is sourced from live observational and forecast data
  • Opinionated authentication, filtering, and rate management defaults for fast shipping.

Webhooks and pushed data

  • Consume large amounts of data efficiently

    Weather API data can be consumed via server push rather than polling. With this push strategy, we can send data to your application with minimal delay and latency.

  • Choose your weather events
    • Automated alerts, notifications, and warnings

    • Severe weather, wildfires, air quality, earthquakes, and more

    • Renewable energy data

  • Set up notifications

    Set up timely notifications of the weather events that you care about most. Eliminate the need for continuous polling and the worry of missing critical alerts.

    Documentation

Your full weather stack

Map background with Weather API code overlay: Python script for a weather assistant, featuring a function call about weather inquiries.

Weather API

The most unique datasets in the market, backed by high-resolution, real-time data from a globally distributed proprietary infrastructure.

From the developer blog

See all

Frequently asked questions

The Weather API gives you access to 65 endpoints covering conditions, forecasts, alerts, lightning, hail, road weather, air quality, fire weather, tropical systems, tides, and more. Historical data goes back to 2004 for conditions and 2016 for lightning. All endpoints use consistent request formats and return JSON responses.

Get started

Start building your weather apps and maps with our no-strings-attached developer trial.