Air quality forecast for a single location
Location specification
The location of the weather data is the only parameter that is required and must be specified. There are two ways to do this:
- Specify the GPS coordinates of the location using the parameters
latandlon. - OR specify the name of the place using the parameter
place_id. To obtain theplace_idfor the location you want, please use endpoints/find_places_prefix(search by prefix) or/find_places(search by full name).
Notes
- For a detailed description of variables, please consult ⚠️ ⚠️ in Documentation or
Schemaof the response (link next to Example value in the Responses section below). - Do not make any assumptions about the number and ordering of the variables. New variables and sections may be introduced in the future. Always check the data are present before you try to use them.
- The response contains an
Expiresheader, which defines the point at which the API response will not change for the same request. We highly recommend using this to avoid unnecessary requests and increase the performance of your app. - Meteosource API supports HTTP compression. To enable it, simply add an
Accept-Encoding: gzipheader to your request. - When daylight saving time starts, one hourly record will be missing (typically
2:00:00 AM). When daylight saving time ends, the hourly forecast will contain two records with duplicate times (typically2:00:00 AM).