> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: getWeatherData()

> **getWeatherData**(`query`, `lang`): `Promise`\<`Result`\<[`Weather`](/documentation/api/weather-helpers/interfaces/Weather), [`Identifiers`](/documentation/api/weather-helpers/enumerations/Identifiers), `boolean`>>

Defined in: [weather.ts:76](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/weather-helpers/src/lib/weather.ts#L76)

Retrieves weather data for a given query and language.

## Parameters

### query

`string`

The query string for the weather data.

### lang

`string`

The language code for the weather data.

## Returns

`Promise`\<`Result`\<[`Weather`](/documentation/api/weather-helpers/interfaces/Weather), [`Identifiers`](/documentation/api/weather-helpers/enumerations/Identifiers), `boolean`>>

A promise that resolves to a Result object containing either the weather data or an error identifier.
