Lodol Docs

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

ParameterTypeRequiredDescription
latitudenumberYesLatitude of the location
longitudenumberYesLongitude 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

ParameterTypeRequiredDescription
citystringYesCity name to retrieve weather for
country_codestringNoCountry code to help pick the right city when more than one city shares the name (for example, US or GB)
unitsstringNoUnits 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

ParameterTypeRequiredDescription
citystringYesCity name to fetch forecasts for
country_codestringNoCountry code to help pick the right city when more than one city shares the name (for example, US or GB)
unitsstringNoUnits for temperature and wind speed: standard (Kelvin), metric (Celsius), or imperial (Fahrenheit)
limitnumberNoNumber of forecast entries to return

Response

{
  "status": "mock_value"
}

On this page