Skip to content

Weather API for developers and AI agents

Weather API: forecast, history, radar and air quality for any place on Earth

One API key for forecasts, history, radar, air quality, marine, solar and more. Ready for AI assistants with an official MCP server. Trusted by 1M+ users worldwide.

  • 100,000 free calls a month
  • No credit card
  • Commercial use allowed
  • 7-day trial of Business
GET https://api.weatherapi.com/v1/current.json?key=YOUR_KEY&q=London&aqi=yes
{
  "location": { "name": "London", "country": "United Kingdom" },
  "current": {
    "temp_c": 9.2,
    "condition": { "text": "Light rain" },
    "wind_kph": 17.6,
    "humidity": 87,
    "air_quality": { "pm2_5": 6.3, "us-epa-index": 1 }
  }
}
14 dayshourly & daily forecast
2010+hourly history
~200 msaverage response
99.9%+API uptime, 90 days · live status
40+languages

Live right now

Rain radar and the next hour, live

Real data from /v1/radar.json and /v1/minutely.json, updated every few minutes. Radar covers the US and Europe.

Radar · Pro+Minutely rain · Starter+
Live demo: next-hour rain and radar
Loading the radar map…
Loading…

Radar API docs →   Minutely API docs →

Check the weather anywhere

Live data from our own Forecast API. Search any city, town, postcode or zip code.

London

City of London Greater London, United Kingdom · local time Saturday 15:36
Partly Cloudy
10°C
49°F · feels like 9°C
Partly Cloudy
Wind
4 km/h NNE
Humidity
79%
Pressure
1022 mb
Precip
0.0 mm
UV index
0
Visibility
10 km
  • TodaySunny12° / 5°C14% rainSunny
  • Sun 8 NovOvercast12° / 7°C13% rainOvercast
  • Mon 9 NovSunny12° / 5°C12% rainSunny
14-day forecast for London »Forecast API docs
Get this with one API call:GET https://api.weatherapi.com/v1/forecast.json?key=YOUR_KEY&q=51.52,-0.11&days=3

AI integrations

Give your AI assistant live weather

Connect Claude, Cursor or any MCP client in minutes, or build your own agent on our OpenAPI spec. The same key, the same data, the same plans.

Official MCP server

weatherapi-mcp gives Claude, Cursor and other MCP clients every endpoint as a tool.

OpenAPI spec

/openapi.json for function calling, GPT actions and generated clients.

llms.txt

A plain-text guide to every endpoint that agents can read in one go.

SDKs in 10 languages

Python, Node.js, C#, Go, Swift and more for your own agent code.

AI assistantweatherapi connected
Will it rain in Glasgow during my 6pm run?
weatherapi · forecast.json?q=Glasgow&days=1
Light rain is likely around 6pm (about 70% chance, under 1 mm). It should be dry by 8pm, or you could go at 4pm instead.
Works withClaudeCursorVS CodeAny MCP client
Live status pageEvery endpoint checked around the clock. See status
UK company, GDPR readyHosted in the UK and Finland, with a DPA you can sign online.
Running since 2022Every change in a public changelog. Read it
Real people on supportEmail support from the people who build the API.
New this autumnWeather radar, satellite & lightning maps, weather along a route, forecast models & ensembles, and bulk history export.See the changelog →

Built for every industry that depends on the weather

Weather apps & websites

Forecasts, radar and alerts for your users, wherever they are.

Uses: core weather, maps & radar

Solar & renewables

Irradiance, PV output and wind at 100 m for planning and trading.

Uses: energy & agriculture

Agriculture

Evapotranspiration, crop water use and spray windows to plan the season.

Uses: energy & agriculture

Logistics & delivery

The weather along each route and next-hour rain at every stop.

Uses: maps & radar

Travel & events

Future weather up to 300 days ahead and climate averages for any date.

Uses: core weather

Retail & demand planning

Hourly history since 2010 to explain and forecast demand.

Uses: core weather, developer tools

Marine & outdoor

Waves, swell, tides and sunrise for every trip.

Uses: marine & astronomy

IoT, smart home & insurance

Webhooks when the weather changes, and history to check claims.

Uses: developer tools, core weather

Real responses, ready to use

Pick an endpoint to see what comes back. JSON or XML, in 40+ languages, with SDKs for the languages you already use. Every field is described in the docs.

GET /v1/current.json?key=YOUR_KEY&q=London&aqi=yes
{
  "location": { "name": "London", "country": "United Kingdom", "localtime": "2026-11-06 17:05" },
  "current": {
    "temp_c": 9.2,
    "feelslike_c": 6.8,
    "condition": { "text": "Light rain", "code": 1183 },
    "wind_kph": 17.6,
    "humidity": 87,
    "uv": 0.4,
    "air_quality": { "pm2_5": 6.3, "us-epa-index": 1 }
  }
}

Start free, upgrade when you grow

Each plan adds to the one before. Keep the same key when you upgrade.

Free

$0
100,000 calls a month
  • 3-day forecast, past day of history
  • Realtime, search, astronomy, IP lookup
  • MCP server for AI assistants

Starter

$7
per month · 3 million calls
  • 7-day forecast, 7 days of history
  • Minutely rain (next hour)
  • Solar irradiance

Pro+

$25
per month · 5 million calls
  • 300 days ahead, a year of history
  • Radar, satellite & lightning maps
  • Weather along a route

Business POPULAR

$65
per month · 10 million calls
  • Hourly history back to 2010
  • Solar PV, agriculture & ET₀
  • Climate averages & degree days

Enterprise

Custom
volume, SLA and contract
  • 15-minute data, 365 days ahead
  • Air quality, pollen & energy history
  • Bulk history export (CSV, S3)

Compare every feature by plan →

Weather API FAQ

Is the WeatherAPI.com weather API free?
Yes. The Free plan gives you 100,000 API calls a month with realtime weather, a 3-day forecast, search, astronomy, IP lookup and weather maps. No credit card is needed and commercial use is allowed. Paid plans start at $7 a month and come with a 7-day free trial.
What weather data does the API provide?
Realtime weather, 14-day daily and hourly forecasts, 15-minute forecasts (Enterprise), historical weather from 1 January 2010, future weather up to 300 days ahead, marine weather and tides, air quality, pollen, government weather alerts, solar irradiance, solar PV energy forecasts, evapotranspiration, next-hour rain (minutely), weather radar, astronomy, time zone, IP lookup, sports events and weather map tiles, plus webhooks that notify your server when the weather changes.
Where does the weather data come from?
We blend global and high resolution weather models, including GFS, HRRR and ECMWF IFS/AIFS, with live observations such as METAR airport reports. Data is available for millions of locations worldwide at 1 to 11 km resolution.
How far back does the historical weather data go?
Hourly historical weather is available from 1 January 2010 onwards. The Free plan includes the past day, Starter the past 7 days, Pro+ the past 365 days, and Business and Enterprise the full archive from 2010.
Which formats and languages are supported?
Every endpoint returns JSON or XML. Weather condition text is available in more than 40 languages using the lang parameter.
Can I use the API in a commercial product?
Yes. Commercial and non-commercial use is allowed on every plan, including the Free plan.
What is the Solar Energy API?
The Solar Energy API (/v1/solar.json) forecasts the power and energy output of a solar PV system for up to 14 days. Give it your array size and, optionally, tilt, azimuth and tracking, and it returns hourly and daily kW and kWh. It is available on the Business plan and above.
What is the Agriculture API?
The Agriculture API (/v1/agriculture.json) gives farmers and agtech apps growing degree days, rainfall, evapotranspiration and crop water use, chill hours, frost and heat stress, leaf wetness, disease risk and hourly spray windows for up to 14 days, plus season-to-date totals. Choose a crop preset or set your own values. It is available on the Business plan and above.
Is there a minute-by-minute rain forecast and weather radar?
Yes. The Minutely API (/v1/minutely.json) gives the rain rate every 5 minutes for the next hour with a one-line summary, using radar nowcasts in the United States (including Alaska, Hawaii, Puerto Rico and Guam), Germany and most of Europe, and our forecast model everywhere else. It is available on Starter and above. The Radar API (/v1/radar.json) gives animated radar map tiles for the past two hours plus a one-hour nowcast for the same areas, on Pro+ and above.
Can WeatherAPI.com notify my app when the weather changes?
Yes. Weather webhooks send a signed HTTPS POST to your server when a government weather alert is issued for a location, or when a value such as wind, rain or temperature crosses your limit, now or in the forecast. Pro+ includes 5 webhooks, Business 20, and High Volume and Enterprise 50.
Do I need a new API key when I upgrade?
No. Your API key stays the same when you upgrade or change plan, so there is nothing to change in your code.
What if I need more than 10 million calls a month?
Choose a High Volume plan: everything in Business, with 20 million to 500 million calls a month, from $95 a month (10% less when paid yearly). You can upgrade or change it any time from your dashboard, and your API key stays the same.
Can I use WeatherAPI.com with AI assistants and LLMs?
Yes. There is an official MCP server (weatherapi-mcp) for Claude and other AI assistants, an OpenAPI specification at /openapi.json and an llms.txt file describing every endpoint.
Can more than one person use my WeatherAPI.com account?
Yes. Invite colleagues from the Team page in your dashboard. Each person signs in with their own login and gets a role (Admin, Developer, Billing or Viewer), so you control who can see API keys and who can manage billing. Starter includes 3 people, Pro+ 10 and Business 25.
Does WeatherAPI.com support two-step login and passkeys?
Yes, on every plan including Free. Turn on two-step login with an authenticator app, or add a passkey to sign in with Face ID, Touch ID, Windows Hello or a security key instead of a password.

Get your free weather API key in a minute

100,000 calls a month, free for commercial use. No credit card.