# GoogleScholarAPIWrapper

> **Class** in `langchain_community`

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

Wrapper for Google Scholar API

You can create serpapi key by signing up at: https://serpapi.com/users/sign_up.

The wrapper uses the serpapi python package:
https://serpapi.com/integrations/python#search-google-scholar

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

## Signature

```python
GoogleScholarAPIWrapper()
```

## Description

Example:
   .. code-block:: python

   from langchain_community.utilities import GoogleScholarAPIWrapper
   google_scholar = GoogleScholarAPIWrapper()
   google_scholar.run('langchain')

## Extends

- `BaseModel`

## Properties

- `top_k_results`
- `hl`
- `lr`
- `serp_api_key`
- `google_scholar_engine`
- `model_config`

## Methods

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

---

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