Skip to content
Xweather home

Weather API

Access real-time and historical weather intelligence through a fast, reliable weather API backed by a proprietary global sensor network. Start free with 15,000 monthly accesses.

Blueish gradient with weather map patterns

Fortune 100 companies rely on Xweather

Premium data and global coverage

Fast, accurate, and unique weather data

One interface for global weather intelligence. The weather API includes exclusive datasets like lightning 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

Exclusive real-time weather data, trusted by global enterprises and packaged for AI with an agent-ready MCP server and developer toolkits.

  • Free weather API access

    15,000 free API accesses each month. Pay only for what you use.

  • Built for trust

    Choice for safety, operations, and long-term planning

  • Built for speed

    From prompt to practice in 2 minutes

Premium datasets

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

/hail/threats

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

Learn more about /hail/threats

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

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

/tropicalcyclones

Get information on active tropical cyclones, including invests, tropical depressions, tropical storms, hurricanes, and typhoons worldwide. Updates every 6 hours; NHC storms up to 1-3 hours near landfall.

Learn more about /tropicalcyclones

/roadweather

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

Learn more about /roadweather

Sign up. Get key. Start building.

01Sign up free

Create a free account with 15,000 monthly API accesses. No credit card required.

02Get key

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

03Query 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.

04Deploy 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 for free about Xweather API examples

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.

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

Webhooks and pushed data

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.


  • Consume large amounts of data efficiently
  • Choose your weather events from a vast library
  • Set up notifications and 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.

Air quality map in Xweather Raster Maps showing high activity areas in central and southern Mexico, with intense red around Puebla, set against a light background

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.

A glowing blue globe displaying precise wind speeds in various locations on a dark starry background.

MapsGL

MapsGL leverages WebGL for smooth, visually beautiful, data-encrypted weather animations optimized for low-bandwidth use.

Phrases API

Turn complex weather data into natural language summaries, real-time insights tailored to your audience.

Xweather MCP

The Xweather MCP Server connects LLMs directly to Xweather's data platform. Simply ask a question and the model will fetch all relevant Xweather data to provide an answer that blends the model's extensive knowledge with the precision of our high quality datasets.

From the developer blog

See all

Frequently asked questions

Xweather integrates global and regional data sources—including NOAA, the UK Met Office, DWD, JMA, AirNow, Copernicus, and others—to provide real-time and historical data on lightning, air quality, hail, road conditions, wildfires, hydrology, and more.

Lightning data is sourced from Vaisala's proprietary lightning network.

View the complete list of data sources here.

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.

Every request requires a client ID and client secret, provided when you create an account. Pass these as query parameters or use the SDKs, which handle authentication automatically. Full authentication details are in the documentation.

All endpoints return JSON by default. GeoJSON is available for geospatial queries. The API uses consistent request and response formats across all 65 endpoints.

Xweather’s weather API is built for compatibility with a wide range of programming languages and frameworks. For example, if you’re using a React-based framework like Next.js, you can easily fetch weather data on the server or client side using standard HTTP requests. Read the full tutorial on how to integrate a weather API into a Next.js project.

The Weather API runs on multi-region AWS infrastructure with global CDN. Historical uptime exceeds 99.99%. Enterprise support includes SLA options for mission-critical integrations.

API rate limiting is used to control the rate of requests sent and received from the Weather API. Its purpose is to prevent our clients from taxing system resources on our end, ensuring that the API runs efficiently for all clients at all times. It is a standard practice employed by APIs to help prevent performance hitches or outages. Learn more here.

The free tier includes 15,000 API accesses per month with full access to every endpoint. No credit card required, and it never expires. In the US and Canada, you can add a payment method to pay as you go for usage beyond 15,000 accesses. Outside the US and Canada, contact sales to increase your limit.

Start building today

Explore the weather API. Create an account to get started.