Weatherbit API
Weather forecasts, current conditions and air quality data with a free developer plan.
What it does
Weatherbit provides current conditions, minutely and hourly forecasts, a 16-day daily forecast, severe weather alerts, air quality, and historical weather. Data is normalised across a global station and model network.
Base URL
Authentication
Register for a free API key and pass it as &key=YOUR_KEY with a location: lat+lon, city, postal_code+country, or city_id.
Code examples
curl -s "https://api.weatherbit.io/v2.0/current?lat=35.68&lon=139.69&key=$WBIT_KEY"
import requests
r = requests.get("https://api.weatherbit.io/v2.0/forecast/daily",
params={"city": "Berlin,DE", "days": 7, "key": KEY}, timeout=10)
for d in r.json()["data"]:
print(d["valid_date"], d["low_temp"], d["high_temp"], d["weather"]["description"])Rate limits & quotas
Free plan: about 50 calls/day and roughly 1 call/second, limited to current conditions and forecasts (16-day daily, 48-hour hourly). History, minutely, alerts and higher volume are paid. Over the daily cap returns HTTP 429.
Key response fields
| data[0].temp / app_temp | Current and ‘feels like’ temperature (current endpoint) |
| data[0].weather.description / .icon | Condition text and icon code |
| data[].valid_date / low_temp / high_temp | Daily forecast rows |
| data[0].aqi | Air quality index (current endpoint) |
| count | Number of records returned |
Common errors
| 403 | Invalid key, or endpoint not included in your plan. |
| 429 | Daily 50-call free limit reached. |
| 204 / empty data | No station/model data for that exact point — nudge the coordinates. |
When to use it (and alternatives)
Reasonable if 50 calls/day is enough and you want a clean 16-day daily forecast. For real volume on free, Open-Meteo or WeatherAPI.com are far less restrictive.
FAQ
Is 50 calls a day enough for a website?
Only if you cache. Fetch each location once and reuse the response for 30–60 minutes; weather does not change fast enough to justify per-visitor calls.
Can I get historical weather on the free plan?
No — the history endpoints require a paid subscription. Free is current plus forecast only.
How do I specify a location by name?
Use city=Name,CC (with a country code) or postal_code=+country=. Coordinates (lat/lon) are the most reliable.
New to APIs?
Short guides for working with this API — and any other.