# GoogleFinanceAPIWrapper

> **Class** in `langchain_community`

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

Wrapper for SerpApi's Google Finance API

You can create SerpApi.com key by signing up at: https://serpapi.com/users/sign_up.
The wrapper uses the SerpApi.com python package:
https://serpapi.com/integrations/python
To use, you should have the environment variable ``SERPAPI_API_KEY``
set with your API key, or pass `serp_api_key` as a named parameter
to the constructor.
Example:
    .. code-block:: python
    from langchain_community.utilities import GoogleFinanceAPIWrapper
    google_Finance = GoogleFinanceAPIWrapper()
    google_Finance.run('langchain')

## Signature

```python
GoogleFinanceAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

- `serp_search_engine`
- `serp_api_key`
- `model_config`

## Methods

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

---

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