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 | Country code to help pick the right city when more than one city shares the name (for example, US or GB) |
units | string | No | Units for temperature and wind speed: standard (Kelvin), metric (Celsius), or imperial (Fahrenheit) |
Response
{
"status": "mock_value"
}Get short-term forecast
Get the upcoming weather forecast for a city, in 3-hour steps covering the next 5 days.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
city | string | Yes | City name to fetch forecasts for |
country_code | string | No | Country code to help pick the right city when more than one city shares the name (for example, US or GB) |
units | string | No | Units for temperature and wind speed: standard (Kelvin), metric (Celsius), or imperial (Fahrenheit) |
limit | number | No | Number of forecast entries to return |
Response
{
"status": "mock_value"
}