WeatherAPI.com provides a simple, affordable weather API covering real-time conditions, 14-day hourly forecasts, 30+ years of historical weather data, marine weather, astronomy data (sunrise/sunset/moonphase), and air quality index. Supports lookup by city name, ZIP code, IP address, UK postcode, and lat/lon coordinates. Covers 2 million+ locations globally with data from 200+ weather stations and models.
https://api.weatherapi.com/v1
Auth type
API Key Header
Auth header
?key=YOUR_API_KEY
Rate limit
1,000,000 calls/month (free)
Pricing
Free tier available
Free quota
1,000,000 calls / month
Documentation
https://www.weatherapi.com/docs/
Endpoint status
Server online — HTTP 401 — server is online but path returned an error (may require auth)721ms
(checked Mar 29, 2026)
Builder score
B
73%
builder-friendly
Pass your API key as the key query parameter. Register for a free key at weatherapi.com.
?key=YOUR_API_KEY
| Plan | Price/mo | Included |
|---|---|---|
| Free | Free | 1M calls/mo, 3-day forecast |
| Starter | $4 | 2M calls/mo, history, astronomy |
| Standard | $12 | 5M calls/mo, bulk queries |
| Business | $199 | Unlimited calls/mo |
Free: 1M calls/mo (3-day forecast, no history). Starter: $4/mo. Standard: $12/mo. Business: $199/mo.
| Method | Path | Description |
|---|---|---|
| GET | /current.json |
Current weather conditions for any location |
| GET | /forecast.json |
Up to 14-day hourly and daily forecast |
| GET | /history.json |
Historical weather data from 2010 onward (paid plans) |
| GET | /search.json |
Location autocomplete for search boxes |
| GET | /astronomy.json |
Sunrise, sunset, moonrise, moonset, and moon phase |
| GET | /marine.json |
Marine/surf conditions including tide and swell |
curl "https://api.weatherapi.com/v1/forecast.json?key=$WEATHER_API_KEY&q=London&days=3&aqi=yes"
{
"location": { "name": "London", "country": "United Kingdom", "lat": 51.52, "lon": -0.11 },
"current": {
"temp_c": 12.0,
"condition": { "text": "Partly cloudy" },
"wind_mph": 9.4,
"humidity": 76
},
"forecast": {
"forecastday": [{ "date": "2024-03-15", "day": { "maxtemp_c": 14.0, "mintemp_c": 8.0 } }]
}
}
Data sourced from API Map. Always verify pricing and rate limits against the official WeatherAPI.com documentation.