> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenWeather

> Free weather API providing current conditions, 5-day/3-hour forecasts, and air quality data worldwide.

Free weather API providing current conditions, 5-day/3-hour forecasts, and air quality data worldwide. Standalone endpoints for /weather, /forecast, /air\_pollution. Best for simple weather lookups and basic forecasting. For higher-resolution data (minutely, hourly, daily, alerts), use openweather\_onecall.

1 example endpoint available through Lava's AI Gateway. See the [OpenWeather API docs](https://openweathermap.org/api) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://api.openweathermap.org/data/2.5` is supported. GET any path under [https://api.openweathermap.org/data/2.5/](https://api.openweathermap.org/data/2.5/) (e.g., /weather, /forecast, /air\_pollution). The endpoints below are curated examples.</Info>

## Endpoints

### Get current weather

**GET** `https://api.openweathermap.org/data/2.5/weather?q=London&units=metric` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.openweathermap.org/data/2.5/weather?q=London&units=metric', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.openweathermap.org%2Fdata%2F2.5%2Fweather%3Fq%3DLondon%26units%3Dmetric" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
