# YouTube Video Details Scraper (`scrapers-hub/youtube-video-details-scraper`) Actor

🔍 YouTube Video Details Scraper extracts key metadata from YouTube videos—title, channel, tags, views, likes, comments & more. 🚀 Great for market research, SEO audits, competitor analysis & content insights. ✅ Fast & reliable.

- **URL**: https://apify.com/scrapers-hub/youtube-video-details-scraper.md
- **Developed by:** [Scrapers Hub](https://apify.com/scrapers-hub) (community)
- **Categories:** Videos, SEO tools, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Details Scraper 🚀

Are you looking for a powerful and reliable way to extract comprehensive information from any video on the platform? Look no further! The **YouTube Video Details Scraper** is a professional-grade solution designed to provide deep insights into video content, channel performance, and engagement metrics. Whether you are a researcher, a marketer, or a content creator, this **YouTube Video Details Scraper** will help you gather the data you need in seconds. 📊

In the modern digital landscape, data is king. To stay ahead of the competition, you need precise and up-to-date information. Our **YouTube Video Details Scraper** is engineered to bypass complex limitations and deliver high-quality data directly to your dashboard. With features like transcript extraction, metadata gathering, and channel analysis, this tool stands out as the ultimate **Video Data Mining Solution**. 💎

By choosing the **YouTube Video Details Scraper**, you are investing in a tool that understands the nuances of video metadata. From simple titles to complex interaction algorithms, the **YouTube Video Details Scraper** handles it all with precision.



#### 🌟 Why Do You Need a YouTube Video Details Scraper?

Manually collecting data from videos is a tedious and error-prone process. Imagine trying to copy titles, descriptions, view counts, and transcripts for hundreds of videos. It's nearly impossible. The **YouTube Video Details Scraper** automates this entire workflow, ensuring 100% accuracy and efficiency. 

By using the **YouTube Video Details Scraper**, you can:
- **Save Hours of Manual Work**: Automate the extraction of metadata and transcripts.
- **Perform Competitive Analysis**: Understand what your competitors are doing by analyzing their video tags, categories, and engagement rates.
- **Boost Your SEO**: Use the **YouTube Video Details Scraper** to find high-ranking keywords and hashtags used in popular videos.
- **Enhance Content Research**: Access full video transcripts to summarize content or repurpose it for blogs and social media.
- **Track Market Trends**: Monitor how certain keywords or topics perform over time using the data provided by the **YouTube Video Details Scraper**.

The **YouTube Video Details Scraper** is not just a scraper; it's a data engine that powers your decision-making process. Without a reliable **YouTube Video Details Scraper**, you are essentially flying blind in the competitive world of video content marketing.

---

### 🚀 Key Features of the YouTube Video Details Scraper

Our tool is packed with advanced features that make it the best **Metadata Extractor** on the market. Here is why users love it:

#### 1. Full Metadata Extraction 📝
The **YouTube Video Details Scraper** captures every bit of visible information, including:
- **Video Title & ID**: Precise identification for tracking and database management.
- **Detailed Description**: Perfect for sentiment analysis and NLP processing.
- **Publish & Upload Date**: Track fresh trends and historical data patterns.
- **Duration (`lengthSeconds`)**: Understand the length of the content.
- **Category & Status Flags**: `isFamilySafe`, `isUnlisted`, `isShortsEligible`, `isLiveContent`, `allowRatings`, and the full `availableCountries` list.

#### 2. Deep Engagement Metrics 📈
Track how well a video is performing with detailed stats provided by the **YouTube Video Details Scraper**:
- **View Count**: Accurate counts to measure reach and popularity.
- **Likes** (`likeCount`): Gauge audience appreciation and validation.
- **Comment Count**: Both the raw number (`commentCount`) and the display text (`commentCountText`, e.g. `"2.4M"`).
- **Keywords & Hashtags**: The uploader's hidden tags plus the visible `#hashtags`.

#### 3. Complete Channel Profiling 👤
It’s not just about the video! The **YouTube Video Details Scraper** extracts critical channel data:
- **Channel Title & ID**: Know exactly who is behind the content.
- **Channel URL**: Easy navigation and social media mapping.
- **Subscriber Count**: Both `subscriberCountText` (e.g. `"4.5M subscribers"`) and the parsed `subscriberCount` number.
- **Channel Badges**: Identify verified creators, official artists, and partner statuses.
- **Channel Thumbnail**: High-definition avatar image URLs for brand identification.

#### 4. Subtitles, Storyboards & Related Videos ⌨️
The **YouTube Video Details Scraper** goes far beyond the basics:
- **Subtitles**: Every available caption track (`url`, `languageCode`, `isTranslatable`) plus the full list of `translationLanguages`.
- **Storyboards**: Decoded preview-thumbnail sprite sheets per quality level, with ready-to-use image URLs.
- **Related Videos**: The sidebar recommendations (up to ~20 per video) with title, channel, view count, publish time, and thumbnails — perfect for mapping recommendation networks.

#### 5. SEO Tools: Tags & Hashtags 🏷️
Find out how videos are being discovered. The **YouTube Video Details Scraper** extracts all hidden **Video Tags** and visible **Hashtags**, allowing you to optimize your own tags for maximum visibility and ranking.

#### input
```json
{
    "startUrls": [
        { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }
    ]
}
````

#### output

The actor pushes **one record per video** to the dataset. Long arrays
(`keywords`, `availableCountries`, `subtitles.translationLanguages`,
`relatedVideos`, …) are truncated below with `…` for readability — the real
output contains the full lists.

```json
[
  {
    "id": "dQw4w9WgXcQ",
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
    "lengthSeconds": "213",
    "keywords": ["rick astley", "Never Gonna Give You Up", "rickroll", "…"],
    "hashtags": ["#RickAstley", "#NeverGonnaGiveYouUp", "#OfficialMusicVideo"],
    "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
    "channelTitle": "Rick Astley",
    "channelUrl": "http://www.youtube.com/@RickAstleyYT",
    "channelThumbnail": [
      { "url": "https://yt3.ggpht.com/…=s176-c-k-c0x00ffffff-no-rj", "width": 176, "height": 176 }
    ],
    "channelBadges": ["Official Artist Channel"],
    "subscriberCountText": "4.5M subscribers",
    "subscriberCount": 4500000,
    "description": "The official video for “Never Gonna Give You Up” by Rick Astley. …",
    "thumbnail": [
      { "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg", "width": 336, "height": 188 },
      { "url": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp", "width": 1920, "height": 1080 }
    ],
    "allowRatings": true,
    "viewCount": "1778645909",
    "likeCount": "19133089",
    "commentCountText": "2.4M",
    "commentCount": 2400000,
    "isPrivate": false,
    "isUnpluggedCorpus": false,
    "isLiveContent": false,
    "isCrawlable": true,
    "isFamilySafe": true,
    "isShortsEligible": false,
    "isUnlisted": false,
    "availableCountries": ["AD", "AE", "AF", "…", "ZW"],
    "category": "Music",
    "publishDate": "2009-10-24",
    "uploadDate": "2009-10-24",
    "embedUrl": "https://www.youtube.com/embed/dQw4w9WgXcQ",
    "subtitles": {
      "subtitles": [
        { "languageName": "English", "languageCode": "en", "isTranslatable": true, "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&lang=en" },
        { "languageName": "English (auto-generated)", "languageCode": "en", "isTranslatable": true, "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&kind=asr&lang=en" }
      ],
      "translationLanguages": [
        { "languageCode": "ab", "languageName": "Abkhazian" },
        { "languageCode": "zu", "languageName": "Zulu" }
      ]
    },
    "storyboards": [
      {
        "width": "48", "height": "27", "thumbsCount": "100",
        "columns": "10", "rows": "10", "interval": "0", "storyboardCount": 1,
        "url": ["https://i.ytimg.com/sb/dQw4w9WgXcQ/storyboard3_L0/default.jpg?sqp=…&sigh=rs$…"]
      }
    ],
    "relatedVideos": [
      {
        "type": "video",
        "videoId": "yPYZpwSpKmA",
        "title": "Rick Astley - Together Forever (Official Video) [4K Remaster]",
        "channelTitle": "Rick Astley",
        "viewCount": "201M views",
        "publishedTimeText": "16 years ago",
        "thumbnail": [
          { "url": "https://i.ytimg.com/vi/yPYZpwSpKmA/hqdefault.jpg", "width": 336, "height": 188 }
        ],
        "channelThumbnail": [
          { "url": "https://yt3.ggpht.com/…=s88-c-k-c0x00ffffff-no-rj", "width": 68, "height": 68 }
        ]
      }
    ]
  }
]
```

### 🛠️ How it Works (Step-by-Step)

Using the **YouTube Video Details Scraper** is as easy as 1-2-3! You don't need any coding knowledge to get started.

1. **Provide URLs**: Input the links to the videos you want to analyze. The **YouTube Video Details Scraper** supports normal videos, live streams, and shorts URLs.
2. **Configure Settings**: Add one or more video URLs to `startUrls`. Residential proxies are used automatically for reliable, geo-stable results.
3. **Run & Export**: Click the start button. The **YouTube Video Details Scraper** will process the URLs in parallel, ensuring high speed. Once finished, export your data in JSON, CSV, or Excel formats.

The **YouTube Video Details Scraper** is designed to be user-friendly, catering to both non-technical users and advanced developers who want to integrate the **YouTube Video Details Scraper** into their own software stacks.

***

### 📊 Detailed Data Fields Explained

When you run the **YouTube Video Details Scraper**, you receive a comprehensive JSON object. Below is a detailed breakdown of each field:

#### Video Metadata

- `id`: The unique 11-character string identifying the video.
- `url`: The canonical watch URL for the video.
- `title`: The full title as specified by the uploader.
- `description`: The complete text found in the video's description box.
- `lengthSeconds`: Total length of the video in seconds (string).
- `publishDate` / `uploadDate`: When the video was published / uploaded (`YYYY-MM-DD`).
- `category`: The video's category (e.g. `"Music"`).
- `keywords` / `hashtags`: The uploader's tags and the visible `#hashtags`.
- `availableCountries`: List of ISO country codes where the video is viewable.
- `allowRatings`, `isPrivate`, `isUnlisted`, `isFamilySafe`, `isShortsEligible`, `isLiveContent`, `isUnpluggedCorpus`, `isCrawlable`: Status flags.
- `thumbnail`: Array of thumbnail objects (`url`, `width`, `height`).
- `embedUrl`: The iframe embed URL.

#### Social Metrics

- `viewCount`: Number of times the video has been played (string).
- `likeCount`: Total number of 'thumbs up' interactions (string).
- `commentCount` / `commentCountText`: Comment total as a number and as display text (e.g. `"2.4M"`).

#### Channel Information

- `channelTitle`: The display name of the channel.
- `channelId`: The internal unique ID of the channel.
- `channelUrl`: The channel's URL / handle.
- `subscriberCountText` / `subscriberCount`: Followers as display text and as a parsed number.
- `channelBadges`: List of badges such as "Verified" or "Official Artist Channel".
- `channelThumbnail`: Array of channel avatar image objects.

#### Subtitles

- `subtitles.subtitles[]`: Each caption track — `languageName`, `languageCode`, `isTranslatable`, and the timed-text `url`.
- `subtitles.translationLanguages[]`: All languages the captions can be auto-translated into (`languageCode`, `languageName`).

#### Storyboards

- `storyboards[]`: Per quality level — `width`, `height`, `columns`, `rows`, `interval`, `thumbsCount`, `storyboardCount`, and the list of sprite-sheet `url`s.

#### Related Videos

- `relatedVideos[]`: Sidebar recommendations — `videoId`, `title`, `channelTitle`, `viewCount`, `publishedTimeText`, `thumbnail`, `channelThumbnail`.

***

### 💡 Advanced Use Cases for the YouTube Video Details Scraper

The potential applications of the **YouTube Video Details Scraper** are vast. Here are some sophisticated ways people use the **YouTube Video Details Scraper** today:

#### 1. Market Research & Sentiment Analysis 📊

Using the **YouTube Video Details Scraper**, you can collect descriptions and transcripts from hundreds of product reviews. Feed this data into a sentiment analysis model to understand what customers love or hate about a specific product. This is why the **YouTube Video Details Scraper** is essential for business intelligence.

#### 2. Influencer Marketing Vetting 🤝

Before partnering with a creator, brands use the **YouTube Video Details Scraper** to check their engagement rates. A high subscriber count means nothing if the engagement rate is less than 1%. The **YouTube Video Details Scraper** provides the "Engagement Rate" field to make this vetting process instantaneous.

#### 3. Automated Content Summarization 📝

News agencies and bloggers use the **YouTube Video Details Scraper** to extract transcripts of long speeches or interviews. They then use AI tools to summarize the text, saving hours of listening time. The **YouTube Video Details Scraper** is the first step in this automated pipeline.

#### 4. Competitive Content Strategy 🛡️

By analyzing the tags and descriptions of top-ranking videos, you can reverse-engineer their success. The **YouTube Video Details Scraper** reveals the hidden tags that competitors use to show up in "Suggested Videos."

#### 5. Linguistic and Academic Research 🎓

Linguists use the **YouTube Video Details Scraper** to study accents, slang, and language evolution by extracting large volumes of speech data from different regions and time periods.

### 🛡️ Technical Superiority: Why This Tool Wins

The **YouTube Video Details Scraper** isn't just another script; it's a robust software solution built for scale.

#### Residential Proxy Integration 🌐

The **YouTube Video Details Scraper** uses top-tier residential proxies. This means the platform sees the requests as coming from real home users, making it virtually impossible for the **YouTube Video Details Scraper** to be blocked.

#### Parallel Execution ⚡

Time is money. The **YouTube Video Details Scraper** is built on an asynchronous architecture. It can scrape dozens of videos simultaneously, delivering your data much faster than traditional sequential scrapers.

#### Handling "Live" and "Shorts" 🔄

Most scrapers struggle with non-standard video formats. The **YouTube Video Details Scraper** seamlessly handles traditional uploads, live stream archives, and "Shorts" videos with the same level of detail.

#### Zero Maintenance Required 🛠️

Algorithms change, but we maintain the **YouTube Video Details Scraper** constantly. You don't have to worry about the tool breaking because of a UI update on the video platform. We take care of it for you.

#### 📊 Comprehensive Data Extraction Logic

How does the **YouTube Video Details Scraper** achieve such high accuracy? It doesn't rely on a single source. Instead, the **YouTube Video Details Scraper** uses a multi-layered detection system.

1. **DOM Parsing**: The **YouTube Video Details Scraper** analyzes the HTML structure to find primary metadata like titles and view counts.
2. **Initial Player Response**: The **YouTube Video Details Scraper** extracts JSON data embedded within the page scripts, providing access to "hidden" details like exact length in seconds and specific categories.
3. **Caption Track Extraction**: For subtitles, the **YouTube Video Details Scraper** reads the caption tracklist, returning every available subtitle track URL plus the full list of supported translation languages.
4. **Engagement Panels**: The **YouTube Video Details Scraper** navigates through the complex "engagement panels" of the modern layout to fetch like counts and comment numbers, which are often hidden behind dynamic components.

This multi-pronged approach ensures that if one method fails, the **YouTube Video Details Scraper** has three others to fall back on. This redundancy is what makes it a professional-grade **Video Discovery Tool**.

### 🛡️ Why Proxies are Critical for the YouTube Video Details Scraper

If you've ever tried to scrape data manually or with a simple script, you've likely seen the "403 Forbidden" or "CAPTCHA" error. Large platforms have sophisticated anti-scraping measures. Here is how the **YouTube Video Details Scraper** overcomes them:

#### Residential vs. Datacenter Proxies

Other tools use cheap datacenter proxies that are easily identified and blocked. The **YouTube Video Details Scraper** is optimized for **Residential Proxies**. These are IP addresses assigned by ISPs to real households. When the **YouTube Video Details Scraper** uses a residential proxy, it looks like a regular person watching a video from their living room.

#### Global Rotation

The **YouTube Video Details Scraper** rotates IP addresses for every request. If you are scraping 1,000 URLs, the **YouTube Video Details Scraper** can use 1,000 different IPs from around the world. This prevents any single IP from being flagged for high activity.

#### Geographic Specifics

Some content is geo-locked. The **YouTube Video Details Scraper** allows you to leverage proxies from specific countries, enabling you to see metadata and transcripts exactly as a local viewer would. This is essential for international market research.

***

### 🏢 Industry-Specific Use Cases

The **YouTube Video Details Scraper** is a versatile tool that adapts to various business needs.

#### 🛒 E-commerce & Retail

Online retailers use the **YouTube Video Details Scraper** to monitor product reviews. By extracting the **Video Transcript** and **Tags**, they can identify which features of their product are being mentioned most frequently (positively or negatively) by influencers. The **YouTube Video Details Scraper** helps them stay on top of customer sentiment without watching thousands of hours of video.

#### 🏫 Education & E-learning

Educational institutions use the **YouTube Video Details Scraper** to archive lecture materials. By downloading the full transcript via the **YouTube Video Details Scraper**, students can search for specific keywords within a lecture and jump to the exact timestamp. This transforms passive viewing into an interactive learning experience.

#### 📰 Journalism & Media

Newsrooms use the **YouTube Video Details Scraper** to verify information. When a breaking news video appears, the **YouTube Video Details Scraper** can quickly pull the "Published Date" and "Location Tags" to help journalists verify the source and timing of the event.

#### 💻 Tech & AI Development

AI companies require massive amounts of natural language data. The **YouTube Video Details Scraper** provides a clean, timestamped stream of conversation that can be used to train speech-to-text models or conversational AI. The **YouTube Video Details Scraper** is the ultimate data acquisition tool for the AI age.

#### 📜 Ethical Scraping and Compliance

We believe in responsible data extraction. When using the **YouTube Video Details Scraper**, keep the following in mind:

- **Fair Use**: Use the data for research, analysis, and business intelligence.
- **Privacy**: Do not use the **YouTube Video Details Scraper** to harvest personal information from comments.
- **Platform Integrity**: The **YouTube Video Details Scraper** is designed to be gentle on server resources by using optimized requests.

#### ❓ Frequently Asked Questions (FAQ)

**Q: What subtitle data do I get?**
**A:** For every available caption track the **YouTube Video Details Scraper** returns the timed-text `url`, `languageCode`, and `isTranslatable` flag, including auto-generated captions, plus the full list of translation languages. You can fetch the actual text from each track URL.

**Q: How accurate are the metrics?**
**A:** View, like, and comment counts are 100% accurate based on the data visible at the time of the scrape.

**Q: Does it work with private videos?**
**A:** No, the **YouTube Video Details Scraper** only works with public and unlisted videos.

**Q: Is there a limit to the number of URLs?**
**A:** The **YouTube Video Details Scraper** can handle thousands of URLs in a single run, depending on your compute resources.

**Q: In what formats can I download the data?**
**A:** You can download your results from the **YouTube Video Details Scraper** in JSON, XML, CSV, or Excel formats.

#### 📈 SEO Performance and Ranking

To ensure this tool remains the #1 choice, we have optimized it for the following high-value keywords:

- **YouTube Video Details Scraper**
- **Video Transcript Download Tool**
- **YouTube Metadata Extraction Service**
- **Channel Engagement Analytics**
- **Video SEO Tag Finder**
- **Bulk Video Data Scraper**
- **Automated YouTube Data Mining**

By consistently using the **YouTube Video Details Scraper**, you stay ahead of 99% of creators who are still doing things manually.

### 🚀 Get Started Today!

Why wait? The data you need is just a few clicks away. Whether you need a single video's details or a million, the **YouTube Video Details Scraper** is the most reliable, fast, and comprehensive solution on the market.

Empower your business.
Accelerate your research.
Optimize your content.

Experience the power of the **YouTube Video Details Scraper** now! 🚀🎬📊

***

*Note: This tool is intended for personal and professional data analysis. We are not affiliated with any video hosting platforms. Use the **YouTube Video Details Scraper** responsibly.*

# Actor input Schema

## `startUrls` (type: `array`):

List of YouTube video URLs to scrape.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ]
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers-hub/youtube-video-details-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 = { "startUrls": [{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }] }

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    }
  ]
}' |
apify call scrapers-hub/youtube-video-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers-hub/youtube-video-details-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "YouTube Video Details Scraper",
        "description": "🔍 YouTube Video Details Scraper extracts key metadata from YouTube videos—title, channel, tags, views, likes, comments & more. 🚀 Great for market research, SEO audits, competitor analysis & content insights. ✅ Fast & reliable.",
        "version": "0.1",
        "x-build-id": "lQ26fGWGZRmiJsLgr"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapers-hub~youtube-video-details-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapers-hub-youtube-video-details-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapers-hub~youtube-video-details-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapers-hub-youtube-video-details-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapers-hub~youtube-video-details-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapers-hub-youtube-video-details-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "YouTube Video URLs",
                        "type": "array",
                        "description": "List of YouTube video URLs to scrape.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
