# OpenWeatherMapAPIWrapper

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/openweathermap/OpenWeatherMapAPIWrapper)

Wrapper for OpenWeatherMap API using PyOWM.

Docs for using:

1. Go to OpenWeatherMap and sign up for an API key
2. Save your API KEY into OPENWEATHERMAP_API_KEY env variable
3. pip install pyowm

## Signature

```python
OpenWeatherMapAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

- `owm`
- `openweathermap_api_key`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/utilities/openweathermap/OpenWeatherMapAPIWrapper/validate_environment)
- [`run()`](https://reference.langchain.com/python/langchain-community/utilities/openweathermap/OpenWeatherMapAPIWrapper/run)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/utilities/openweathermap.py#L9)