> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Supadata

# Supadata

This page covers how to use the [Supadata](https://supadata.ai) ecosystem within LangChain. It allows you to load data from YouTube, TikTok, and other platforms.

## Installation and Setup

To use Supadata, you need to install the standalone integration package.

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
pip install supadata-langchain
```

## Document Loader

The Supadata integration allows you to load content from various video platforms as LangChain documents. It supports fetching transcripts and metadata.

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import os
from supadata_langchain import SupadataLoader

os.environ["SUPADATA_API_KEY"] = "YOUR_API_KEY"

loader = SupadataLoader()

# Fetch Transcript
docs = loader.load(
    {
        "url": "[https://www.youtube.com/watch?v=dQw4w9WgXcQ](https://www.youtube.com/watch?v=dQw4w9WgXcQ)",
        "operation": "transcript",
        "lang": "en",
        "text": True,
        "mode": "auto",
    }
)

print(docs[0].page_content)
print(docs[0].metadata)
```

### Metadata

You can also fetch video structured metadata.

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
# Fetch Metadata
docs = loader.load(
    {
        "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "operation": "metadata",
    }
)

print(docs[0].page_content)
```

## Resources

* **PyPI Package:** [`supadata-langchain`](https://pypi.org/project/supadata-langchain/)
* **GitHub Repository:** [`supadata-ai/langchain-py`](https://github.com/supadata-ai/langchain-py)

For detailed usage examples and API documentation, please refer to the [official GitHub repository](https://github.com/supadata-ai/langchain-py).

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/supadata.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
