What the Weather Forecast API offers
The Weather Forecast API gives you high-resolution weather model data for any location. A request needs a location and the weather variables you want. You can then adjust the time range, the weather model and the units.
By default you get forecasts for 7 days, and you can extend that to 16 days. To read archived forecasts, use the Past Days feature. For the full archive of past forecast runs, see the Historical Forecast API. To start from scratch, read Getting started.
The free licence is only for non-commercial use and fewer than 10.000 daily API calls. Commercial and self-hosted options are listed under the usage licence setting.
Make your first request
Choose a location
Set a latitude and longitude. You can also search for a place, enter a list of locations or use a bounding box.
Pick your variables
Add hourly, daily or current variables to the request. The example below asks for temperature_2m as an hourly variable.
Adjust the time range
Choose how many forecast days and past days you want. For hourly variables, you can refine the range with &forecast_hours= and &past_hours=.
Send the request
Copy the API URL into your application.
The API URL for Berlin looks like this:
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m
Choose a response format
Add a format parameter to download the same data as a spreadsheet or CSV file.
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m&format=csv
https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&hourly=temperature_2m&format=xlsx
Weather variables
| Group | What it covers |
|---|---|
| Hourly | Temperature, humidity, precipitation, cloud cover, wind at several heights, soil temperature and soil moisture, and more |
| Solar radiation | Shortwave, direct, diffuse and direct normal irradiance, plus global tilted radiation |
| Pressure level | Temperature, dewpoint, relative humidity, cloud cover, wind and geopotential height by pressure level |
| 15-minutely | Short-interval values, adjustable with &forecast_minutely_15= and &past_minutely_15= |
| Daily | Maximum and minimum temperature, sunrise, sunset, precipitation sums and more |
| Current | Conditions right now, based on 15-minutely weather model data |
15-minutely data is only available in Central Europe and North America. Other regions use interpolated hourly data.
Weather models
The default Best Match provides the best forecast for any given location worldwide. You can also select individual models and compare them. A Seamless option combines all models from a given provider.
| Weather model | Provider | Resolution | Forecast length | Update frequency |
|---|---|---|---|---|
| ICON | Deutscher Wetterdienst (DWD) | 2 - 11 km | 7.5 days | Every 3 hours |
| GFS & RRFS | NOAA | 3 - 25 km | 16 days | Every hour |
| ARPEGE & AROME | Météo-France | 1 - 25 km | 4 days | Every hour |
Common questions
How far ahead can I forecast?
The default is 7 days. You can access forecasts for up to 16 days.
How do I get past weather?
Use the Past Days feature to access archived forecasts. For past forecast runs as issued, see the Historical Forecast API.
Which models does the API use?
Best Match is the default. Each model covers different areas at different resolutions and provides different variables.