# YouTube Transcript, Metadata & Channel Email Scraper (`tungnguyen84/youtube-video-transcript-metadata-scraper`) Actor

Extract full YouTube video transcripts (timestamped subtitles and clean text), video metadata (title, views, duration, publish date, keywords), outbound links, and channel contact emails for AI, LLM, and RAG pipelines.

- **URL**: https://apify.com/tungnguyen84/youtube-video-transcript-metadata-scraper.md
- **Developed by:** [Tung Nguyen](https://apify.com/tungnguyen84) (community)
- **Categories:** AI, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 scraped youtube video transcript & metadata

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube Video Transcript, Metadata, Outbound Links & Channel Email Scraper

Extract **full YouTube video transcripts (timestamped subtitles & clean plain text)**, **video metadata** (`title`, `channelName`, `viewCount`, `durationSeconds`, `publishDate`, `keywords`), **description outbound links**, **creator contact emails**, and **LLM-ready Markdown** from any list of YouTube videos.

### Built for AI Agents, RAG Pipelines, Content Summarizers & Creator Outreach

Whether you are building an **AI video summarizer**, ingesting YouTube lectures/podcasts into a **Vector Database (Pinecone, Qdrant, Weaviate, LangChain, LlamaIndex)**, or conducting **YouTube creator sponsorship outreach**, this Actor gives you clean, structured JSON and Markdown in one API call.

#### Key Features

- **Full Transcript & Timestamp Extraction**: Parses YouTube's embedded player caption tracks (`captionTracks`) in your preferred language (`en`, `es`, `de`, `fr`, `vi`, etc.) with automatic fallback to auto-generated captions or video description text.
- **Rich Video & Channel Metadata**: Captures `videoId`, `title`, `channelName`, `channelId`, `channelUrl`, `viewCount`, `durationSeconds`, `publishDate`, `category`, and SEO `keywords`.
- **Sponsor & Creator Lead Enrichment**: Automatically extracts business contact emails and external landing page / affiliate links from video descriptions.
- **AI / RAG Ready**: Outputs a pre-formatted `markdownForAi` document plus `wordCount` and `estimatedTokens` for immediate LLM context sizing.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `videoUrls` | `array` | Required | List of YouTube video URLs (`https://www.youtube.com/watch?v=...`, `https://youtu.be/...`, `shorts/...`). |
| `preferredLanguage` | `string` | `"en"` | Preferred ISO language code for subtitles/transcripts. |
| `includeTimestamps` | `boolean` | `true` | Include array of `{ start, duration, text }` caption segments. |
| `maxVideos` | `integer` | `50` | Maximum number of videos to scrape per run. |

#### Example Input JSON

```json
{
  "videoUrls": [
    { "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }
  ],
  "preferredLanguage": "en",
  "includeTimestamps": true,
  "maxVideos": 25
}
```

***

### Output Dataset Example

```json
{
  "videoId": "jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "title": "Me at the zoo",
  "channelName": "jawed",
  "channelId": "UC4QobU6STFB0P71PMvOGN5A",
  "channelUrl": "https://www.youtube.com/channel/UC4QobU6STFB0P71PMvOGN5A",
  "viewCount": 345000000,
  "durationSeconds": 19,
  "publishDate": "2005-04-23",
  "category": "People & Blogs",
  "keywords": ["me at the zoo", "jawed karim", "first youtube video"],
  "transcriptLanguage": "en",
  "wordCount": 38,
  "estimatedTokens": 52,
  "fullTranscriptText": "All right, so here we are in front of the elephants...",
  "contactEmails": [],
  "outboundLinks": [],
  "scrapedAt": "2026-11-01T09:35:00.000Z"
}
```

# Actor input Schema

## `videoUrls` (type: `array`):

List of YouTube video URLs (watch?v=..., youtu.be/..., shorts/...) to extract full transcripts, metadata, tags, outbound links, and contact emails from.

## `preferredLanguage` (type: `string`):

ISO 639-1 language code for subtitles/transcripts (e.g., 'en', 'es', 'de', 'fr', 'vi'). Falls back to the first available track if not found.

## `includeTimestamps` (type: `boolean`):

Include individual timestamped subtitle segments alongside the full plain-text transcript and AI Markdown summary.

## `maxVideos` (type: `integer`):

Maximum number of YouTube video pages to scrape per run.

## Actor input object example

```json
{
  "videoUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ],
  "preferredLanguage": "en",
  "includeTimestamps": true,
  "maxVideos": 50
}
```

# Actor output Schema

## `videos` (type: `string`):

Dataset containing YouTube video transcripts, metadata, and AI Markdown.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videoUrls": [
        {
            "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tungnguyen84/youtube-video-transcript-metadata-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "videoUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }] }

# Run the Actor and wait for it to finish
run = client.actor("tungnguyen84/youtube-video-transcript-metadata-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videoUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ]
}' |
apify call tungnguyen84/youtube-video-transcript-metadata-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tungnguyen84/youtube-video-transcript-metadata-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ogJIh2LHiNrxvMBaj/builds/byb4aIoTS4WBdEOqD/openapi.json
