# YouTube Video Scraper — Details, Views, Likes & Shorts (`tagadanar/youtube-video-scraper`) Actor

YouTube video & Shorts details from links or IDs, in bulk: title, description, exact views & likes, comment count, publish date, duration, channel & subscribers, tags, hashtags, chapters, caption languages, live & age flags. No API key. $0.80 per 1,000 videos.

- **URL**: https://apify.com/tagadanar/youtube-video-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Videos, Social media, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 1,000 video with details

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 Scraper — details, views, likes & Shorts

Paste YouTube video or Shorts links (or bare video IDs) and get **one flat row per video** with everything the
watch page knows: title, full description, **exact views and likes**, comment count, **publish and upload date
(ISO)**, **duration in seconds**, the channel (name, ID, @handle, URL, subscribers, verified badge), **category,
tags, hashtags, chapters, the list of caption languages**, Short / live / past-live / premiere flags,
age-restricted, family-safe and unlisted flags, and every thumbnail size.

No API key, no login, no quota. Bulk: up to 5,000 videos per run.

### What you can paste

Any of these, one per line, mixed freely:

| Input | Example |
|---|---|
| Watch link | `https://www.youtube.com/watch?v=aircAruvnKk` (extra `&t=`, `&list=` are ignored) |
| Short link | `https://www.youtube.com/shorts/NShimEnXxNg` |
| youtu.be link | `https://youtu.be/dQw4w9WgXcQ?si=…` |
| Live link | `https://www.youtube.com/live/<id>` |
| Embed link | `https://www.youtube.com/embed/<id>`, `youtube-nocookie.com/embed/<id>` |
| Mobile / Music | `https://m.youtube.com/watch?v=<id>`, `https://music.youtube.com/watch?v=<id>` |
| Video ID | `dQw4w9WgXcQ` |

Duplicates are scraped (and charged) once. Channel, playlist and search links are skipped and named in the run status.

### Output

One row per video (example trimmed):

```json
{
  "id": "aircAruvnKk",
  "url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "status": "ok",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "description": "What are the neurons, why are there layers, and what is the math underlying it? …",
  "channelName": "3Blue1Brown",
  "channelId": "UCYO_jab_esuFRV4b17AJtAw",
  "channelHandle": "@3blue1brown",
  "channelUrl": "https://www.youtube.com/@3blue1brown",
  "channelSubscriberCountApprox": 8730000,
  "channelIsVerified": true,
  "viewCount": 25048614,
  "likeCount": 568489,
  "commentCountApprox": 9400,
  "commentCountText": "9.4K",
  "publishDate": "2017-10-05T08:11:25-07:00",
  "uploadDate": "2017-10-05T08:11:25-07:00",
  "durationSeconds": 1120,
  "isShort": false,
  "isLive": false,
  "wasLive": false,
  "category": "Education",
  "tags": [],
  "hashtags": [],
  "chapters": [{ "title": "Introduction example", "startSeconds": 0 }, { "title": "Series preview", "startSeconds": 67 }],
  "captionLanguages": [{ "languageCode": "en", "name": "English", "autoGenerated": false }],
  "isFamilySafe": true,
  "isAgeRestricted": false,
  "isUnlisted": false,
  "thumbnailUrl": "https://i.ytimg.com/vi_webp/aircAruvnKk/maxresdefault.webp",
  "thumbnails": [{ "url": "…", "width": 1920, "height": 1080 }]
}
```

Field notes:

- **viewCount and likeCount are exact** (YouTube's own counters). `likeCountIsApprox` is `true` only in the rare case
  the exact number was not served and the rounded button text ("1.2M") was used.
- **commentCountApprox is rounded** the way YouTube shows it on the watch page ("9.4K"); `commentCountText` keeps
  the original. For the comments themselves, use our [YouTube Comments Scraper](https://apify.com/tagadanar/youtube-comments-scraper).
- **channelSubscriberCountApprox is rounded** too ("8.73 million subscribers").
- `isShort` is YouTube's own Shorts flag; Short rows use the `/shorts/` URL.
- Live streams: `isLive` (on air now), `isUpcoming` (scheduled premiere or stream), `wasLive` (a past stream),
  with `liveStartedAt` / `liveEndedAt` when YouTube gives them.
- `isAgeRestricted` videos still come with their full details (YouTube serves the metadata; only playback needs a
  sign-in). `playabilityReason` keeps YouTube's note ("Sign in to confirm your age").
- `captionLanguages` lists the caption tracks available (manual and auto-generated); `[]` = the video has none, `null` = YouTube did not serve the list this time. To get the caption text,
  use our [YouTube Transcript Extractor](https://apify.com/tagadanar/youtube-transcript-extractor).
- `chapters` come from YouTube's player bar (`chaptersSource`: `description` for creator chapters, `auto` for
  YouTube's automatic ones); empty when the video has none.

#### Videos that are not available

A private, removed or non-existent video gets a **free row** (not charged) with `status` = `private`, `removed`,
`not-found`, `members-only`, `geo-blocked` or `unavailable`, and `statusReason` = YouTube's own message
("This video is private", "This video is unavailable"…). Inputs that are not videos at all are listed in the
run's status message.

### What it does not do

It does **not download video or audio files** (YouTube refuses media streams to cloud servers) and does not read
the comments or the transcript text — see the related actors below.

### Pricing

Pay per result, platform usage included:

- **$0.80 per 1,000 videos** delivered with details (FREE tier; lower on Bronze/Silver/Gold).
- $0.001 per run start.
- Unavailable videos (private / removed / not found) and skipped inputs are **free**.

### Related YouTube actors

- [YouTube Search Scraper](https://apify.com/tagadanar/youtube-search-scraper) — videos for a keyword, in YouTube's order.
- [YouTube Channel Scraper](https://apify.com/tagadanar/youtube-channel-scraper) — channel stats and its video list.
- [YouTube Shorts Scraper](https://apify.com/tagadanar/youtube-shorts-scraper) — Shorts by keyword or channel.
- [YouTube Comments Scraper](https://apify.com/tagadanar/youtube-comments-scraper) — the comments of any video.
- [YouTube Transcript Extractor](https://apify.com/tagadanar/youtube-transcript-extractor) — caption text with timestamps.

### FAQ

**Do I need a YouTube API key or a Google account?** No.

**Is there a quota like the YouTube Data API's?** No daily quota; you pay per video delivered.

**Can I pass a playlist or a channel?** Not here: paste video links. To list a channel's videos first, run the
[YouTube Channel Scraper](https://apify.com/tagadanar/youtube-channel-scraper) and feed its video URLs in.

**Why is the comment count rounded?** That is what the watch page shows; the exact count only exists inside the
comments panel, which the [YouTube Comments Scraper](https://apify.com/tagadanar/youtube-comments-scraper) reads.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/youtube-video-scraper/changelog.md

# Actor input Schema

## `videos` (type: `array`):

One video per line: a link in any YouTube form (<code>youtube.com/watch?v=…</code>, <code>youtu.be/…</code>, <code>/shorts/…</code>, <code>/live/…</code>, <code>/embed/…</code>, mobile and music links) or a bare 11-character video ID. Duplicates are scraped once. Up to 5,000 videos per run. You get one row per video; videos YouTube says are unavailable (private, removed, not found) get a free row with YouTube's reason.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=aircAruvnKk",
    "https://www.youtube.com/shorts/NShimEnXxNg",
    "https://youtu.be/dQw4w9WgXcQ"
  ]
}
```

# Actor output Schema

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

One item per video in the default dataset.

# 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 = {
    "videos": [
        "https://www.youtube.com/watch?v=aircAruvnKk",
        "https://www.youtube.com/shorts/NShimEnXxNg",
        "https://youtu.be/dQw4w9WgXcQ"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/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 = { "videos": [
        "https://www.youtube.com/watch?v=aircAruvnKk",
        "https://www.youtube.com/shorts/NShimEnXxNg",
        "https://youtu.be/dQw4w9WgXcQ",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tagadanar/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/ABx9SjQV8bCdwHCrY/builds/0nZiZgyAq9LQ5SUAZ/openapi.json
