# GoogleLensAPIWrapper

> **Class** in `langchain_community`

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

Wrapper for SerpApi's Google Lens 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 GoogleLensAPIWrapper
    google_lens = GoogleLensAPIWrapper()
    google_lens.run('langchain')

## Signature

```python
GoogleLensAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

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

## Methods

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

---

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