OpenWeatherMap
API actions for the OpenWeatherMap integration.
OpenWeatherMap
Retrieve weather conditions, forecasts, and air quality metrics.
Get air quality by coordinates
Retrieves the current air quality index and pollutant breakdown for the specified latitude and longitude.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
latitude | number | Yes | Latitude of the location |
longitude | number | Yes | Longitude of the location |
Response
{
"status": "mock_value"
}Get current weather by city
Retrieves the latest weather conditions for the given city, including temperature, humidity, and wind.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
city | string | Yes | City name to retrieve weather for |
country_code | string | No | Optional country code to disambiguate the city (e.g., US, GB) |
units | string | No | Units for temperature and wind speed: standard, metric, or imperial |
Response
{
"status": "mock_value"
}Get short-term forecast
Returns upcoming forecast entries for the selected city using the 5 day / 3 hour endpoint.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
city | string | Yes | City name to fetch forecasts for |
country_code | string | No | Optional country code to disambiguate the city (e.g., US, GB) |
units | string | No | Units for temperature and wind speed: standard, metric, or imperial |
limit | number | No | Number of forecast entries to return |
Response
{
"status": "mock_value"
}