API Directory › 🌦 Weather › Open-Meteo
No authHTTPSCORS

Open-Meteo API

Free, open weather forecast API with no API key required — current, hourly and daily data worldwide.

Category
Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Open-Meteo docs ↗

What it does

Open-Meteo is a free weather API with no key for non-commercial use. It serves current conditions, hourly and daily forecasts up to 16 days, and (via sibling endpoints) decades of historical reanalysis data, air quality, marine, and geocoding — all from open national weather models.

Base URL

https://api.open-meteo.com/v1/forecast

Authentication

None for non-commercial use. You choose the variables you want with current=, hourly= and daily= comma-lists. Commercial use needs a paid API key and the customer-api.open-meteo.com host.

Code examples

curl
curl -s "https://api.open-meteo.com/v1/forecast?latitude=6.45&longitude=3.39"\
"&current=temperature_2m,weather_code&hourly=temperature_2m&forecast_days=3"
Python
import requests

r = requests.get("https://api.open-meteo.com/v1/forecast", params={
    "latitude": 51.5, "longitude": -0.12,
    "daily": "temperature_2m_max,temperature_2m_min,precipitation_sum",
    "timezone": "auto"}, timeout=10)
d = r.json()["daily"]
for i, day in enumerate(d["time"]):
    print(day, d["temperature_2m_max"][i], d["precipitation_sum"][i])

Rate limits & quotas

Non-commercial fair-use is roughly 10,000 calls/day (and about 5,000/hour, 600/minute); sustained heavier use returns HTTP 429 and asks you to buy a plan. No sign-up, no key, CORS enabled. Historical data lives at archive-api.open-meteo.com, air quality at air-quality-api.open-meteo.com.

Key response fields

current.temperature_2mLatest 2-metre air temperature
current.weather_codeWMO code — map to an icon/description
hourly.time[] + hourly.<var>[]Parallel arrays: timestamps and values
daily.temperature_2m_max / _minDaily extremes
utc_offset_seconds / timezoneSet timezone=auto for local times

Common errors

400Unknown variable name in hourly/daily, or missing lat/lon.
429Fair-use limit exceeded — slow down or move to a paid key.
(reason field)400 responses include {"error":true,"reason":"…"} explaining what was wrong.

When to use it (and alternatives)

The best free general-purpose weather API for hobby and open-source projects — huge variable list, real history, no key. For commercial apps that want a key, SLA and support, compare WeatherAPI.com, Tomorrow.io or OpenWeatherMap.

FAQ

Is Open-Meteo free for commercial use?

No — the key-less API is licensed for non-commercial use. Commercial projects need an inexpensive paid plan, which also raises the rate limit and adds an SLA.

Why are hourly values returned as arrays?

Open-Meteo returns column arrays: hourly.time holds the timestamps and each hourly.<variable> is a same-length array of values. Zip them by index.

How do I get historical weather?

Use the archive endpoint: https://archive-api.open-meteo.com/v1/archive?latitude=&longitude=&start_date=&end_date=&daily=. It reaches back to 1940.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Weather Checker

Related Weather APIs

← Back

More Weather APIs · All 196 APIs