Skip to content

Weather API for developers and AI agents

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

A free weather API with JSON and XML responses: 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

Every weather API endpoint you need, with one API key

High resolution, real time weather data for commercial and non-commercial use, in JSON and XML. Access live weather station observations and millions of weather points at 1 to 11 km resolution, for hourly and daily forecasts, history, marine, astronomy, solar, air quality, pollen and much more. Every endpoint uses the same simple request: your key, a location and the data you want.

  • Realtime Weather API

    Current conditions for any location: temperature, feels like, wind and gusts, pressure, humidity, cloud, UV, visibility and condition, with optional air quality and pollen.

  • 14-Day Weather Forecast API

    Daily and hourly weather forecast up to 14 days ahead, with astronomy, chance of rain and snow, alerts and air quality.

    3 days on Free · 15-minute interval on Enterprise
  • Minutely Rain API

    Rain rate every 5 minutes for the next hour with a one-line summary: radar nowcast in the US and Europe, our forecast model everywhere else.

    Starter and above
  • Historical Weather API

    Hourly historical weather for any date from 1 January 2010, for analytics, insurance claims, research and machine learning.

    Full archive on Business and above
  • Future Weather API

    3-hourly weather for a date 14 days to 300 days ahead, for events, travel and planning.

    Pro+ and above · 365 days on Enterprise
  • Weather Alerts API

    Government-issued weather warnings for the USA, UK, Europe and 50+ countries.

  • Weather Radar API

    Animated radar map tiles for the past two hours plus a one-hour nowcast, for the US and Europe.

    Pro+ and above
  • Satellite & Lightning API

    Infrared satellite map tiles from GOES-East and GOES-West, and lightning flashes near any location in the last 30 minutes, across the Americas.

    Pro+ and above
  • Route Weather API

    The forecast at each point of a journey, timed to when you will be there.

    Pro+ and above
  • Weather Maps

    Temperature, precipitation, pressure and wind map tiles for your own maps, hourly for the next 3 days.

  • Air Quality API

    CO, NO2, O3, SO2, PM2.5 and PM10 with the US EPA and UK DEFRA index, now and in the forecast, from the Copernicus Atmosphere Monitoring Service (CAMS).

    History on Enterprise
  • Pollen API

    Grass, tree and weed pollen for the US, Canada, UK and Europe, from our own pollen model.

    Starter and above · history on Enterprise
  • Marine Weather & Tides API

    Wave height, swell, wind and water temperature, with high and low tide times, for sailing, fishing, surfing and shipping.

    Tides on Pro+ and above
  • Solar Irradiance

    Global, direct and diffuse solar irradiance in the forecast for any location.

    Starter and above
  • Solar Energy API

    Hourly and daily kW and kWh forecast for a solar PV system from its size, tilt, azimuth and tracking.

    Business and above
  • Agriculture API

    Growing degree days, crop water use, spray windows, frost, heat stress and disease risk for any field.

    Business and above
  • Evapotranspiration

    Reference evapotranspiration (ET0) for irrigation scheduling and crop water planning.

    Business and above
  • Climate Averages API

    Long-term climate averages and heating and cooling degree days for any location.

    Business and above
  • Astronomy API

    Sunrise, sunset, moonrise, moonset, moon phase and illumination for any date.

  • Search & Autocomplete API

    Fast city and town autocomplete with coordinates, for location pickers.

  • Time Zone & IP Lookup API

    Local time and IANA time zone for any location, and city-level location from an IP address.

  • Sports API

    Upcoming football, cricket and golf events with venue and start time.

  • Bulk Request

    Weather for up to 50 locations in one POST request, for current, forecast and history.

    Pro+ and above
  • Weather Webhooks

    A signed HTTPS POST to your server when an alert is issued or a value such as wind, rain or temperature crosses your limit.

    Pro+ and above
  • Bulk History Export

    Years of hourly history for many locations as CSV or JSON Lines files, or delivered to your S3 bucket.

    Enterprise

See every weather API in detail →

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 Tuesday 19:43
Patchy rain nearby
13°C
55°F · feels like 10°C
Patchy rain nearby
Wind
20 km/h SSW
Humidity
94%
Pressure
1018 mb
Precip
0.0 mm
UV index
0
Visibility
10 km
  • TodayLight drizzle13° / 11°C90% rainLight drizzle
  • Wed 2 DecPatchy rain nearby13° / 9°C88% rainPatchy rain nearby
  • Thu 3 DecOvercast10° / 8°C36% rainOvercast
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

Get weather data in under 5 minutes

Sign up for the free weather API, copy your API key and make your first call. No SDK and no credit card needed.

  1. Get your free API key

    Sign up free and your key is ready in your dashboard straight away: 100,000 calls a month, commercial use allowed.

  2. Make a request

    One base URL, your key and a location. Query by city name, latitude and longitude, postcode, US zip, airport code or IP address. Try every endpoint first in the API Explorer.

  3. Use the JSON or XML

    Swap .json for .xml on any endpoint. Responses are light and quick, about 200 ms on average, and every field is described in the weather API docs.

  4. Grow without changing code

    Upgrade or change plan any time from your dashboard. Your API key stays the same, and there is no long-term commitment.

cURL 3-day forecast for London
curl "https://api.weatherapi.com/v1/forecast.json?key=YOUR_API_KEY&q=London&days=3"

# Python
import requests
r = requests.get("https://api.weatherapi.com/v1/forecast.json",
                 params={"key": "YOUR_API_KEY", "q": "London", "days": 3})
data = r.json()
print(data["current"]["temp_c"], data["current"]["condition"]["text"])

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.
How do I get a free weather API key?
Sign up at weatherapi.com/signup with your email address. Your API key is shown in your dashboard straight away, with 100,000 free calls a month and no credit card. Add it to any request as key=YOUR_API_KEY.
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.