# GooglePlacesAPIWrapper

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/places_api/GooglePlacesAPIWrapper)

Wrapper around Google Places API.

Searches for places using Google Maps Platform. Returns detailed information
including addresses, phone numbers, and websites.

!!! note "Installation"

    Requires additional dependencies:

    ```bash
    pip install langchain-google-community[places]
    ```

!!! note "Setup Required"

    Set `GPLACES_API_KEY` environment variable or pass `gplaces_api_key`
    parameter with your Google Maps Platform API key.

## Signature

```python
GooglePlacesAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

- `gplaces_api_key`
- `google_map_client`
- `top_k_results`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-google-community/places_api/GooglePlacesAPIWrapper/validate_environment)
- [`run()`](https://reference.langchain.com/python/langchain-google-community/places_api/GooglePlacesAPIWrapper/run)
- [`fetch_place_details()`](https://reference.langchain.com/python/langchain-google-community/places_api/GooglePlacesAPIWrapper/fetch_place_details)
- [`format_place_details()`](https://reference.langchain.com/python/langchain-google-community/places_api/GooglePlacesAPIWrapper/format_place_details)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/community/langchain_google_community/places_api.py#L17)