open-meteo
Open-Meteo offers free weather forecast APIs for open-source developers and non-commercial use. No API key is required.
Versions
V 1
get/v1/forecast
7 day weather variables in hourly and daily resolution for given WGS84 latitude and longitude coordinates. Available worldwide.
Path parameters
- Name
hourly- Type
- array
- Name
daily- Type
- array
- Name
latitude- Type
- number
- Required
- Description
WGS84 coordinate
- Name
longitude- Type
- number
- Required
- Description
WGS84 coordinate
- Name
current_weather- Type
- boolean
- Name
temperature_unit- Type
- string
- Name
windspeed_unit- Type
- string
- Name
timeformat- Type
- string
- Description
If format
unixtimeis selected, all time values are returned in UNIX epoch time in seconds. Please not that all time is then in GMT+0! For daily values with unix timestamp, please applyutc_offset_secondsagain to get the correct date.
- Name
timezone- Type
- string
- Description
If
timezoneis set, all timestamps are returned as local-time and data is returned starting at 0:00 local-time. Any time zone name from the time zone database is supported.
- Name
past_days- Type
- integer
- Description
If
past_daysis set, yesterdays or the day before yesterdays data are also returned.
Response
JSON
{
"latitude": 52.52,
"longitude": "13.419.52",
"elevation": 44.812,
"generationtime_ms": 2.2119,
"utc_offset_seconds": 3600,
"hourly": {},
"hourly_units": {},
"daily": {},
"daily_units": {},
"current_weather": {}
}