# GoogleBooksAPIWrapper

> **Class** in `langchain_community`

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

Wrapper around Google Books API.

To use, you should have a Google Books API key available.
This wrapper will use the Google Books API to conduct searches and
fetch books based on a query passed in by the agents. By default,
it will return the top-k results.

The response for each book will contain the book title, author name, summary, and
a source link.

## Signature

```python
GoogleBooksAPIWrapper()
```

## Extends

- `BaseModel`

## Properties

- `google_books_api_key`
- `top_k_results`
- `model_config`

## Methods

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

---

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