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

YouTube Video Details Scraper: paste video links or IDs and get exact views, likes and comment count, publish time, duration, description, tags, chapters and thumbnails, plus the channel's subscribers, country and links. No login. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/automly/youtube-video-details-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.45 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Details Scraper

### What is YouTube Video Details Scraper?

**YouTube Video Details Scraper** lets you **get the details of any YouTube video from its link or ID**: the title, **exact views, likes and comment count**, publish date and time, length, full description, tags, hashtags, **chapters**, category and every thumbnail size, plus the **channel's name, handle, subscribers, total videos and views, country, join date and links** in the same row. Paste your video links, click **Start**, and download the details as Excel, CSV or JSON.

- 🔗 **Any link or ID:** watch links, youtu.be short links, Shorts, live and embed links, or just the 11-character video ID
- ⚡ **Fast:** 1,000 videos with full details and channel stats in about 3 minutes (our tests)
- 🔢 **Exact numbers:** exact views, likes and comments for every video, not "1.2M"
- 📺 **Channel stats included:** subscribers, total videos and views, country and the channel's links in every row
- 🔓 **No login:** no YouTube account, cookies or API key needed
- 💸 **Free to try:** every Apify account gets $5 of free usage each month

### What can YouTube Video Details Scraper do?

- **Get YouTube video details in bulk** from a list of links or video IDs, one row per video
- **Track YouTube views, likes and comments** for a set of videos over time with a daily schedule
- **Check a campaign's videos** (sponsored videos, influencer posts) with exact counts and publish times
- **Get the chapters of a video** as the creator listed them, with start times
- **Find out who made a video**: the channel's subscribers, country, join date and links
- **Download YouTube thumbnails** in every size
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from a YouTube video?

| | | |
|---|---|---|
| 🎬 Title and full description | 👁️ Exact view count | 👍 Exact like count |
| 💬 Exact comment count | 📅 Publish date and time | ⏱️ Length |
| 📑 Chapters with start times | 🏷️ Tags (keywords) | #️⃣ Hashtags |
| 🗂️ Category | 🖼️ Thumbnails, every size | 🔗 Links in the description |
| 📱 Short, live stream or video | 🔴 Live start and end time | 🔒 Comments turned off |
| 📺 Channel name, handle and link | 👥 Channel subscribers | 📊 Channel total videos and views |
| 🌍 Channel country | 🗓️ Channel join date | 🔗 Channel links (website, socials) |
| ✅ Verified badge | 📧 Business email listed | 👪 Family-safe and unlisted flags |

### How to get YouTube video details

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open **YouTube Video Details Scraper**.
3. Paste your video links or IDs, one per line.
4. Click **Start**, then download the details as Excel, CSV, JSON or HTML.

### How much does it cost to get YouTube video details?

You pay only for the videos you get, plus $0.0001 when a run starts:

| Apify plan | Price per 1,000 videos |
|---|---|
| Free | $0.85 |
| Bronze | $0.72 |
| Silver | $0.58 |
| Gold, Platinum, Diamond | $0.45 |

Example on the Free plan: 1,000 videos cost $0.85, and one video costs less than a tenth of a cent.

Videos that do not exist or cannot be viewed without signing in (removed, private, age-restricted, members-only) are not saved and not charged. Every Apify account gets **$5 of free usage each month**, and you can set a maximum cost per run.

### ⬇️ Input

| Setting | What it does |
|---|---|
| **YouTube video links or IDs** | One video per line: `https://www.youtube.com/watch?v=dQw4w9WgXcQ`, `https://youtu.be/dQw4w9WgXcQ`, `https://www.youtube.com/shorts/CEJXqm2eiJ0`, a live or embed link, or the ID alone (`dQw4w9WgXcQ`) |
| **Connection settings** | The default works for every run |

Details for three videos:

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/CEJXqm2eiJ0",
    "K5KVEU3aaeQ"
  ]
}
```

A video listed twice is read once. Lines that are not videos (a channel, playlist or search link) are left out and named in the run report. If you used another YouTube video details scraper, your saved input works here too: the list can be called `urls` or `videoIds`.

### ⬆️ Output

Every video is one row:

```json
{
  "id": "K5KVEU3aaeQ",
  "url": "https://www.youtube.com/watch?v=K5KVEU3aaeQ",
  "title": "Python Full Course for Beginners",
  "type": "video",
  "isShort": false,
  "isLive": false,
  "liveStartedAt": null,
  "liveEndedAt": null,
  "viewCount": 8113051,
  "likes": 173011,
  "commentsCount": 4510,
  "commentsTurnedOff": false,
  "date": "2025-02-12T12:30:31Z",
  "duration": "02:02:20",
  "durationSeconds": 7340,
  "text": "Master Python from scratch 🚀 No fluff—just clear, practical coding skills to kickstart your journey! ...",
  "descriptionLinks": [
    {"url": "https://mosh.link/python-course", "text": "https://mosh.link/python-course"},
    {"url": "https://goo.gl/6PYaGF", "text": "https://goo.gl/6PYaGF"}
  ],
  "chapters": [
    {"title": "Introduction", "start": "0:00:00", "startSeconds": 0},
    {"title": "What is Python?", "start": "0:00:56", "startSeconds": 56},
    {"title": "Installing Python", "start": "0:04:11", "startSeconds": 251}
  ],
  "hashtags": ["#Python", "#AI", "#MachineLearning", "#WebDevelopment"],
  "keywords": ["python full course", "python beginners course", "python tutorial"],
  "category": "Education",
  "thumbnailUrl": "https://i.ytimg.com/vi_webp/K5KVEU3aaeQ/maxresdefault.webp",
  "thumbnails": [
    {"url": "https://i.ytimg.com/vi/K5KVEU3aaeQ/hqdefault.jpg?sqp=...", "width": 168, "height": 94},
    {"url": "https://i.ytimg.com/vi_webp/K5KVEU3aaeQ/maxresdefault.webp", "width": 1920, "height": 1080}
  ],
  "channelName": "Programming with Mosh",
  "channelId": "UCWv7vMbMWH4-V0ZXdmDpPBA",
  "channelUsername": "programmingwithmosh",
  "channelUrl": "https://www.youtube.com/@programmingwithmosh",
  "numberOfSubscribers": 5180000,
  "isChannelVerified": true,
  "channelTotalVideos": 246,
  "channelTotalViews": 285770767,
  "channelDescription": "Hi! I'm Mosh 👋, a software engineer with over 20 years of experience. ...",
  "channelDescriptionLinks": [
    {"text": "Courses", "url": "https://codewithmosh.com/courses"},
    {"text": "Twitter", "url": "https://twitter.com/moshhamedani"},
    {"text": "Facebook", "url": "https://facebook.com/programmingwithmosh"}
  ],
  "channelLocation": "United States",
  "channelJoinedDate": "2014-10-06",
  "channelHasBusinessEmail": true,
  "channelAvatarUrl": "https://yt3.googleusercontent.com/HCv0fXFEEcD0HRyF0_qR1K7b7qO3KCzmIoyH1DEJYB94CIUFhIE5i2t2IDIPX97W1-DK4hegww=s900-c-k-c0x00ffffff-no-rj",
  "channelBannerUrl": "https://yt3.googleusercontent.com/k92R2uTtrDK8j2f1GwH3t1Aj4K...",
  "isFamilySafe": true,
  "isUnlisted": false,
  "input": "https://youtu.be/K5KVEU3aaeQ",
  "order": 2,
  "scrapedAt": "2026-11-10T18:59:53Z"
}
```

The **Overview** tab shows the main columns; download the dataset for every field. `order` is the video's position in your list, so you can sort the rows back into your own order.

### How can I use YouTube video data?

- **Campaign reporting:** exact views, likes and comments for every sponsored or influencer video in one sheet
- **Performance tracking:** run the same list daily and watch how each video grows
- **Content research:** compare titles, lengths, tags, chapters and publish times of the videos that work in your niche
- **Influencer vetting:** see the channel behind each video, its subscribers, country and links
- **Data enrichment:** turn a column of YouTube links in your CRM or spreadsheet into full video and channel data

### Scrape more YouTube and social media data

| Actor | What it gets |
|---|---|
| [YouTube Scraper](https://apify.com/automly/youtube-scraper) | YouTube videos, Shorts and live streams from search, channels, playlists and links |
| [YouTube Shorts Scraper](https://apify.com/automly/youtube-shorts-scraper) | Shorts from channels, search terms and Shorts links with views, likes and comments |
| [YouTube Transcript Scraper](https://apify.com/automly/youtube-transcript-scraper) | Transcripts and captions of YouTube videos and Shorts |
| [YouTube Channel Scraper - Search Channels by Keyword](https://apify.com/automly/youtube-channel-search-scraper) | YouTube channels by keyword: subscribers, video and view counts, country, links |

### ❓FAQ

#### Does it get exact view, like and comment counts?

Yes: views, likes and comments are the exact numbers YouTube counts, and the publish date comes with the time. Likes are empty when the creator hides them, and the comment count is empty when comments are turned off. Channel subscriber counts are rounded by YouTube itself above 1,000.

#### Which chapters does it get?

The chapters the creator lists in the description (a list of times starting at 0:00), with the same titles and start times YouTube shows on the video. Some videos only have chapters YouTube adds by itself; those are not in the description and come back empty.

#### What about deleted, private or age-restricted videos?

They cannot be viewed without signing in, so they are not saved and not charged. The run still finishes normally, its status says how many were not found, and the run report in the **Storage** tab lists each one and why.

#### Can I paste Shorts and live stream links?

Yes. Shorts come back with `type` "shorts" and their /shorts/ link, live streams with `type` "stream" and the time the stream started and ended.

#### Do I need a YouTube account?

No. The scraper reads the same public videos and channels anyone can see without signing in.

#### Can I connect YouTube Video Details Scraper to other tools or AI agents?

Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let AI assistants and agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

#### Is it legal to scrape YouTube video details?

This scraper only collects public data that anyone can see on YouTube without signing in. Channel names and descriptions can still contain personal data, which may be protected by laws such as GDPR, so only scrape it for a legitimate reason, respect copyright when you reuse content, and ask a lawyer if you are unsure. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

YouTube Video Details Scraper is an independent tool. It is not affiliated with, endorsed by or sponsored by YouTube or Google.

#### Something isn't working?

Open the **Issues** tab with your input and what you expected, or ask for a field you need. We read every one and usually reply within a day.

### ⭐ Your feedback

Have an idea or found a problem? Tell us in the **Issues** tab. If YouTube Video Details Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `urls` (type: `array`):

Videos to get details for, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ, a Shorts, live or embed link, or just the 11-character ID dQw4w9WgXcQ. One per line; a video listed twice is read once.

## `proxyConfiguration` (type: `object`):

The default works for every run.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/CEJXqm2eiJ0",
    "K5KVEU3aaeQ"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `results` (type: `string`):

No description

## `report` (type: `string`):

No description

# 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 = {
    "urls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/K5KVEU3aaeQ"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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 = {
    "urls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/K5KVEU3aaeQ",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/youtube-video-details-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 '{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/K5KVEU3aaeQ"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/youtube-video-details-scraper --silent --output-dataset

```

## MCP server setup

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