Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenWeather

Retrieve current weather, five-day forecasts, air quality, geocoding, and historical weather data.

Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

Connector
Authentication

OpenWeather

API Key

OpenWeather

Connect with an OpenWeather API key to retrieve weather, forecasts, air quality, and geocoding data.

Set up in OpenWeather

  1. Prepare the OpenWeather account or service that the workflow will access. Grant access to the required resources and operations.

  2. API Key: Create an API key in your OpenWeather account.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select OpenWeather.

  2. Enter the credentials and connection details in the fields below.

  3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

API Key

Yes

Create an API key in your OpenWeather account. Provider instructions.

Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

Use an action

  1. Add the required OpenWeather action to the workflow.

  2. Select a connection when the action requests one.

  3. Complete the required fields. Use the reference picker when a value comes from another workflow step.

  4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

Actions

Get Current Weather

Get current weather conditions for geographic coordinates.

Inputs

Field
Type
Required
Description

Latitude

number

Yes

Latitude of the location from -90 to 90.

Longitude

number

Yes

Longitude of the location from -180 to 180.

Units

select (string)

No

Choose Kelvin, Celsius, or Fahrenheit weather units. Available values: Standard (Kelvin), Metric (Celsius), Imperial (Fahrenheit). Default: standard.

Language

select (string)

No

Choose the language for location and weather descriptions. Available values: Albanian, Afrikaans, Arabic, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Simplified, Chinese, Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Kurdish, Latvian, Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese, Portuguese, Brazilian, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish (sp), Spanish (es), Swedish (sv), Swedish (se), Thai, Turkish, Ukrainian (ua), Ukrainian (uk), Vietnamese, Zulu. Default: en.

Outputs

Field
Type
Description

Current Weather

object

Current conditions, temperatures, wind, clouds, and precipitation.

Location Name

string

Name of the location returned by OpenWeather.

Observed At

integer

Unix UTC observation timestamp.

Get 5-Day Forecast

Get a five-day weather forecast in three-hour intervals.

Inputs

Field
Type
Required
Description

Latitude

number

Yes

Latitude of the forecast location from -90 to 90.

Longitude

number

Yes

Longitude of the forecast location from -180 to 180.

Forecast Timestamps

integer

No

Limit the number of three-hour forecast timestamps.

Units

select (string)

No

Choose Kelvin, Celsius, or Fahrenheit weather units. Available values: Standard (Kelvin), Metric (Celsius), Imperial (Fahrenheit). Default: standard.

Language

select (string)

No

Choose the language for city and forecast descriptions. Available values: Albanian, Afrikaans, Arabic, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Simplified, Chinese, Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Kurdish, Latvian, Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese, Portuguese, Brazilian, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish (sp), Spanish (es), Swedish (sv), Swedish (se), Thai, Turkish, Ukrainian (ua), Ukrainian (uk), Vietnamese, Zulu. Default: en.

Outputs

Field
Type
Description

Forecasts

object_array

Three-hour weather forecast entries.

City

object

City and location metadata for the forecast.

Forecast Count

integer

Number of forecast entries returned.

Get Air Pollution Data

Get current air quality and pollutant concentrations for coordinates.

Inputs

Field
Type
Required
Description

Latitude

number

Yes

Latitude of the air-quality location from -90 to 90.

Longitude

number

Yes

Longitude of the air-quality location from -180 to 180.

Outputs

Field
Type
Description

Coordinates

number_array

Latitude and longitude returned by OpenWeather.

Air Pollution Measurements

object_array

Air-quality index and pollutant concentrations.

Measurement Count

integer

Number of air-quality measurements returned.

Geocode City Name to Coordinates

Find matching coordinates for a city or area name.

Inputs

Field
Type
Required
Description

Location Query

string

Yes

City, optionally followed by US state and country code.

Result Limit

integer

No

Maximum number of matching locations to return. Default: 5.

Outputs

Field
Type
Description

Location Matches

object_array

Matching locations with coordinates and country details.

Match Count

integer

Number of matching locations returned.

Get Historical Weather Data

Get weather for one historical timestamp using One Call 3.0.

Inputs

Field
Type
Required
Description

Latitude

number

Yes

Latitude of the historical location from -90 to 90.

Longitude

number

Yes

Longitude of the historical location from -180 to 180.

Timestamp

datetime

Yes

UTC date and time to look up from 1979-01-01 through four days ahead.

Units

select (string)

No

Choose Kelvin, Celsius, or Fahrenheit weather units. Available values: Standard (Kelvin), Metric (Celsius), Imperial (Fahrenheit). Default: standard.

Language

select (string)

No

Choose the language for historical weather descriptions. Available values: Albanian, Afrikaans, Arabic, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Simplified, Chinese, Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Kurdish, Latvian, Lithuanian, Macedonian, Norwegian, Persian, Polish, Portuguese, Portuguese, Brazilian, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish (sp), Spanish (es), Swedish (sv), Swedish (se), Thai, Turkish, Ukrainian (ua), Ukrainian (uk), Vietnamese, Zulu. Default: en.

Outputs

Field
Type
Description

Latitude

number

Latitude represented by the historical result.

Longitude

number

Longitude represented by the historical result.

Timezone

string

Timezone name for the historical location.

Timezone Offset

integer

Location offset from UTC in seconds.

Historical Observations

object_array

Historical conditions, temperatures, wind, and precipitation.

Observation Count

integer

Number of historical observations returned.

Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.

Last updated

Was this helpful?