# YouTube Video Scraper (`scrapearchitect/youtube-video-scraper`) Actor

Extract full metadata, engagement stats (views/likes/comments), video chapters, technical specs (resolution/codec), and Kids content filters from any YouTube video/short. Perfect for creators, researchers & parents!  🚀 YouTube Video Scraper

- **URL**: https://apify.com/scrapearchitect/youtube-video-scraper.md
- **Developed by:** [Scrape Architect](https://apify.com/scrapearchitect) (community)
- **Categories:** Videos, Developer tools, Automation
- **Stats:** 27 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

***

## 🎥 YouTube Video Scraper - Full Metadata + Engagement Analytics 🚀

### 🌟 Overview

Need **complete YouTube data extraction**? This actor scrapes:\
✅ Regular Videos\
✅ YouTube Shorts\
✅ YouTube Kids Content\
✅ Full metadata, analytics, and technical specs

📊 Perfect for **content analysis, competitor research, and child-safe video monitoring** across all YouTube platforms!

⚡ **Average Runtime**: 1-2 minutes per video\
🔄 Supports bulk URL processing

***

### 🔥 Key Features

#### 📺 **Multi-Platform Support**

✔️ Regular YouTube videos\
✔️ Vertical Shorts content\
✔️ YouTube Kids filtered videos\
✔️ Channel/playlist compatibility

#### 📈 **Comprehensive Metadata**

✔️ Views, likes, comments count\
✔️ Upload dates & timestamps\
✔️ Channel verification status\
✔️ 10M+ channel follower tracking

#### 🎚️ **Advanced Analytics**

✔️ Video chapters with timestamps\
✔️ Heatmap data integration\
✔️ Format technical specs (codec, resolution, FPS)\
✔️ Engagement rate calculations

#### 🧒 **YouTube Kids Specific**

✔️ Age-restricted content detection\
✔️ Child-safe category filtering\
✔️ Parental control metrics

#### 🌐 **Proxy Ready**

✔️ Residential proxies supported\
✔️ Bypass geo-restrictions

***

### ⚙️ Input Configuration

```json
{
  "video_urls": [
    {
      "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE",
      "method": "GET"
    }
  ]
}
```

📌 **Fields Explained**\
| Field | Description |\
|-------|-------------|\
| `video_urls` | 📹 List of YouTube URLs (Supports videos/shorts/kids content) |\
| `method` | ⚙️ Always use `GET` |

***

### 📤 Output Example

**Complete video analysis**:

```json
  {
    "original_url": "https://www.youtube.com/watch?v=kUMe1FH4CHE",
    "title": "Learn HTML – Full Tutorial for Beginners",
    "thumbnail": "https://i.ytimg.com/vi_webp/kUMe1FH4CHE/maxresdefault.webp",
    "duration": "4h 7m 29s",
    "channel": "freeCodeCamp.org",
    "description": "Learn HTML in this complete course for beginners...",
    "description_links": {
      "social": [],
      "blog": [],
      "sponsor": [],
      "others": [
        "https://www.youtube.com/davegrayteachescode",
        "https://github.com/gitdagray/html_course",
        "https://scrimba.com/freeCodeCamp-HTML",
        "https://www.freecodecamp.org/",
        "https://freecodecamp.org/news"
      ]
    },
    "upload_date": "08-03-2022",
    "automatic_captions": "",
    "heatmap": "",
    "requested_formats": "",
    "subtitles": "",
    "view_count": 3508428,
    "comment_count": 2100,
    "like_count": 65235,
    "chapters": [
      {
        "start_time": 0,
        "title": "Intro",
        "end_time": 55
      },
      {
        "start_time": 55,
        "title": "Chapter 1 - Getting Started",
        "end_time": 1213
      },
      ...
    ],
    "channel_url": "https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ",
    "uploader_url": "https://www.youtube.com/@freecodecamp",
    "categories": ["Education"],
    "language": "en",
    "resolution": "1920x1080",
    "fps": 30,
    "aspect_ratio": 1.78,
    "protocol": "https+https",
    "format_note": "1080p+medium"
  }
```

🧾 **Output Includes**:

- 📅 Upload dates & timestamps
- 🔖 Categories & tags
- 📜 Full description with detected links
- 📉 Heatmap data references
- 📺 Embeddability status
- 🌍 Availability regions

***

### 💡 Use Cases

🔍 **Researchers** - Track video trends across platforms\
📱 **App Developers** - Build video recommendation engines\
👪 **Parents** - Monitor YouTube Kids content\
📈 **Marketers** - Analyze competitor video performance\
💾 **Archivists** - Preserve video metadata

***

### 🛠️ How It Works

1️⃣ Add YouTube URLs (videos/shorts/kids)\
2️⃣ Actor detects content type automatically\
3️⃣ Extracts 50+ data points per video\
4️⃣ Returns structured JSON with:

- 🎚️ Technical specifications
- 📈 Engagement metrics
- 🧩 Content segmentation\
  5️⃣ Export ready for analysis

***

### 🔐 Privacy & Security

🛡️ GDPR-compliant data handling\
🌐 Proxy support for anonymous scraping\
🔒 No YouTube API keys required

***

### 🔗 Related Actors (Recommended Tools)

Explore our full scraping suite for enhanced YouTube and Spotify scraping:

#### 🎥 YouTube Scrapers:

- [YouTube Video Captions Scraper](https://apify.com/scrapearchitect/youtube-video-captions-scraper)
- [YouTube Video Transcript Scraper](https://apify.com/scrapearchitect/youtube-video-transcript-scraper)
- [YouTube Video Formats Scraper](https://apify.com/scrapearchitect/youtube-video-formats-scraper)
- [YouTube Video Heatmap Scraper](https://apify.com/scrapearchitect/youtube-video-heatmap-scraper)

#### 🎵 Spotify Scrapers:

- [Spotify Artist Scraper](https://apify.com/scrapearchitect/spotify-artist-scraper)
- [Spotify Playlists Scraper](https://apify.com/scrapearchitect/spotify-playlists-scraper)
- [Spotify Album Scraper](https://apify.com/scrapearchitect/spotify-album-scraper)
- [Spotify Tracks Scraper](https://apify.com/scrapearchitect/spotify-tracks-scraper)
- [Spotify Music Downloader – Fast Mode](https://apify.com/scrapearchitect/spotify-tracks-music-downloader-fast)
- [Spotify Music Downloader – Accurate Mode](https://apify.com/scrapearchitect/spotify-music-downloader-accurate)

***

### 📧 Custom Solutions?

Need kids content filters or special heatmap analysis?

✉️ Contact <scrapearchitect@gmail.com>

***

### 🚀 Launch Now!

***

# Actor input Schema

## `video_urls` (type: `array`):

Enter one or more YouTube video URLs (for long videos, shorts, or YouTube Kids).

## Actor input object example

```json
{
  "video_urls": [
    {
      "url": "https://www.youtube.com/watch?v=2VLqZtded_0&"
    },
    {
      "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE"
    },
    {
      "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE"
    },
    {
      "url": "https://www.youtube.com/shorts/zPxQjuFoUBc"
    }
  ]
}
```

# 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 = {
    "video_urls": [
        {
            "url": "https://www.youtube.com/watch?v=2VLqZtded_0&"
        },
        {
            "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE"
        },
        {
            "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE"
        },
        {
            "url": "https://www.youtube.com/shorts/zPxQjuFoUBc"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapearchitect/youtube-video-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 = { "video_urls": [
        { "url": "https://www.youtube.com/watch?v=2VLqZtded_0&" },
        { "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE" },
        { "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE" },
        { "url": "https://www.youtube.com/shorts/zPxQjuFoUBc" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapearchitect/youtube-video-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 '{
  "video_urls": [
    {
      "url": "https://www.youtube.com/watch?v=2VLqZtded_0&"
    },
    {
      "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE"
    },
    {
      "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE"
    },
    {
      "url": "https://www.youtube.com/shorts/zPxQjuFoUBc"
    }
  ]
}' |
apify call scrapearchitect/youtube-video-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapearchitect/youtube-video-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/FODavjs8UfpsBCvU0/builds/gapvZCjPxe9ICWtiX/openapi.json
