# GoogleApiClient

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/youtube/GoogleApiClient)

Generic Google API Client.

To use, you should have the ``google_auth_oauthlib,youtube_transcript_api,google``
python package installed.
As the google api expects credentials you need to set up a google account and
register your Service. "https://developers.google.com/docs/api/quickstart/python"

*Security Note*: Note that parsing of the transcripts relies on the standard
    xml library but the input is viewed as trusted in this case.

## Signature

```python
GoogleApiClient()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.document_loaders import GoogleApiClient
google_api_client = GoogleApiClient(
    service_account_path=Path("path_to_your_sec_file.json")
)

## Properties

- `credentials_path`
- `service_account_path`
- `token_path`

## Methods

- [`validate_channel_or_videoIds_is_set()`](https://reference.langchain.com/python/langchain-community/document_loaders/youtube/GoogleApiClient/validate_channel_or_videoIds_is_set)

---

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