# GoogleSerperAPIWrapper

> **Class** in `langchain_community`

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

Wrapper around the Serper.dev Google Search API.

You can create a free API key at https://serper.dev.

To use, you should have the environment variable ``SERPER_API_KEY``
set with your API key, or pass `serper_api_key` as a named parameter
to the constructor.

## Signature

```python
GoogleSerperAPIWrapper()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.utilities import GoogleSerperAPIWrapper
google_serper = GoogleSerperAPIWrapper()

## Extends

- `BaseModel`

## Properties

- `k`
- `gl`
- `hl`
- `type`
- `result_key_for_type`
- `tbs`
- `serper_api_key`
- `aiosession`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/utilities/google_serper/GoogleSerperAPIWrapper/validate_environment)
- [`results()`](https://reference.langchain.com/python/langchain-community/utilities/google_serper/GoogleSerperAPIWrapper/results)
- [`run()`](https://reference.langchain.com/python/langchain-community/utilities/google_serper/GoogleSerperAPIWrapper/run)
- [`aresults()`](https://reference.langchain.com/python/langchain-community/utilities/google_serper/GoogleSerperAPIWrapper/aresults)
- [`arun()`](https://reference.langchain.com/python/langchain-community/utilities/google_serper/GoogleSerperAPIWrapper/arun)

---

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