# YouTube Video Details: Views, Likes, Comments & Metadata (`siteacs/youtube-video-details`) Actor

Get YouTube video and Shorts details in bulk by URL or id: exact views, likes and comment count, duration, publish date, channel, category, tags, description, thumbnails, live state, captions and chapters. No API key or quota. Private and removed videos are free.

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

## Pricing

$0.50 / 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.

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: Views, Likes, Comments, Tags

Paste YouTube video or Shorts URLs (or video ids) and get one row per video with its exact view count, like count and
comment count, duration, publish date, channel (id, name, @handle, URL), category, tags, full description,
thumbnails, live state, age restriction, caption languages and chapters. It works as a YouTube Data API alternative
for video statistics: no API key, no Google Cloud project, no daily quota. Send a handful of URLs or tens of thousands in bulk (about 10,000 videos an hour at the default
settings).

Use it to track the views and likes of your own or a competitor's videos over time, to check campaign or influencer
videos in bulk, to enrich a list of video links with titles, channels and dates, to find which videos in a list are
removed or private, or to pull tags and descriptions for SEO research.

**Quick start.** Input: `{"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"]}`. Output: one row per video, for
example `"title": "Me at the zoo"`, `"viewCount": 448281996`, `"likeCount": 20135407`. Price: $0.50 per 1,000 videos with
details; private, removed and failed videos are free.

**You pay only for videos with details.** Private, removed and members-only videos, bad URLs and anything that fails
are listed in the output for free. No start fee.

- **Em português:** detalhes de vídeos e Shorts do YouTube por URL, em massa: visualizações, curtidas e número de
  comentários exatos, duração, data de publicação, canal, categoria, tags, descrição, legendas e capítulos.
- **En español:** datos de vídeos y Shorts de YouTube por URL, en masa: visualizaciones, me gusta y número de
  comentarios exactos, duración, fecha de publicación, canal, categoría, etiquetas, descripción, subtítulos y capítulos.
- **Auf Deutsch:** Details zu YouTube-Videos und Shorts per URL, in großen Mengen: genaue Aufrufe, Likes und
  Kommentaranzahl, Dauer, Veröffentlichungsdatum, Kanal, Kategorie, Tags, Beschreibung, Untertitel und Kapitel.

### What you get

One dataset row per video:

| Field | What it holds |
|---|---|
| `input`, `videoId`, `url` | The line you gave, the video id and its watch URL |
| `status`, `reason` | `ok` when the details are in the row; otherwise why not (see **Status**). On an ok row, `reason` notes gaps such as "comments are turned off" |
| `title` | The original title, as the uploader wrote it (not YouTube's auto-translation) |
| `channelId`, `channelName`, `channelHandle`, `channelUrl` | The channel's UC... id, name, @handle and URL |
| `viewCount` | Exact views (for a live stream in progress, the views so far) |
| `likeCount` | Exact likes; `null` when the creator hides the count |
| `commentCount`, `commentsTurnedOff` | Exact number of comments; `null` with `commentsTurnedOff: true` when comments are off |
| `durationSeconds`, `duration` | Length in seconds and as `m:ss` / `h:mm:ss` |
| `publishedAt`, `uploadedAt` | Publish and upload date and time, ISO 8601 (YouTube gives them in Pacific time with the offset) |
| `category` | YouTube category: Music, Gaming, Education, News & Politics... |
| `tags` | The uploader's tags (keywords) |
| `description` | The full description |
| `thumbnailUrl`, `thumbnails` | The largest thumbnail, and every size with width and height |
| `isShort` | `true` for a YouTube Short (YouTube's own Shorts flag) |
| `liveStatus` | `none` (regular upload), `live` (streaming now), `upcoming` (scheduled stream or premiere), `ended` (past live stream or premiere) |
| `isPremiere` | `true` for a premiere (the scheduled first showing of an uploaded video), `false` for a live stream or a regular upload |
| `concurrentViewers` | People watching now, for a live stream in progress |
| `liveStartedAt`, `liveEndedAt`, `scheduledStartAt` | When a stream started and ended, or is scheduled to start |
| `isAgeRestricted`, `isMembersOnly`, `isUnlisted`, `isFamilySafe`, `isPaid` | Flags as YouTube sets them |
| `hasCaptions`, `captions` | Whether the video has captions, and each track's language, name and whether it is auto-generated |
| `chapters` | Each chapter's title, start and end in seconds, and whether YouTube generated it |
| `scrapedAt` | When the row was made (UTC) |

Example row (from a test run, description and thumbnails shortened):

```json
{
  "input": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "videoId": "jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "status": "ok",
  "reason": null,
  "title": "Me at the zoo",
  "channelId": "UC4QobU6STFB0P71PMvOGN5A",
  "channelName": "jawed",
  "channelHandle": "@jawed",
  "channelUrl": "https://www.youtube.com/channel/UC4QobU6STFB0P71PMvOGN5A",
  "viewCount": 448281996,
  "likeCount": 20135407,
  "commentCount": 10645186,
  "commentsTurnedOff": false,
  "durationSeconds": 19,
  "duration": "0:19",
  "publishedAt": "2005-04-23T20:31:52-07:00",
  "uploadedAt": "2005-04-23T20:31:52-07:00",
  "category": "Film & Animation",
  "tags": ["me at the zoo", "jawed karim", "first youtube video"],
  "description": "The first video on YouTube, at the San Diego Zoo...",
  "thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
  "thumbnails": [{"url": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg", "width": 480, "height": 360}],
  "liveStatus": "none",
  "concurrentViewers": null,
  "liveStartedAt": null,
  "liveEndedAt": null,
  "scheduledStartAt": null,
  "isAgeRestricted": false,
  "isMembersOnly": false,
  "isUnlisted": false,
  "isFamilySafe": true,
  "isPaid": false,
  "hasCaptions": true,
  "captions": [
    {"language": "en", "name": "English", "isGenerated": false},
    {"language": "de", "name": "German", "isGenerated": false}
  ],
  "chapters": [
    {"title": "Intro", "startSeconds": 0, "endSeconds": 5, "start": "0:00", "isAutoGenerated": false},
    {"title": "The cool thing", "startSeconds": 5, "endSeconds": 17, "start": "0:05", "isAutoGenerated": false},
    {"title": "End", "startSeconds": 17, "endSeconds": 19, "start": "0:17", "isAutoGenerated": false}
  ],
  "scrapedAt": "2026-11-11T22:35:32+00:00"
}
```

Download the results as JSON, CSV, Excel or HTML, or read them through the Apify API. The **Videos** view shows the
counts in a table; **Channel, live state and captions** shows the rest.

#### Status

A free row keeps only what identifies the video: `videoId`, `url`, `status`, `reason`, and the title and channel when
YouTube shows them publicly. Counts, dates, description, tags, captions and chapters are filled only on charged rows.

| `status` | Charged | What it means |
|---|---|---|
| `ok` | yes | The details are in the row |
| `private` | no | The video is private |
| `unavailable` | no | Removed (by the uploader, for a policy or copyright reason, or with its channel), or the id never existed; `reason` has YouTube's own message |
| `members_only` | no | A members-only video: YouTube shows no view count to non-members |
| `incomplete` | no | YouTube answered without one of the core fields (views, duration, publish date, comment count) after every retry |
| `blocked`, `timeout`, `error` | no | YouTube refused or did not answer after every retry, or the run's residential proxy budget is used up |
| `invalid_input` | no | Not a YouTube video URL or id, or a channel or playlist URL (list the video URLs instead) |

### How to use it

1. Paste URLs into **Video URLs or ids**, one per line (use **Bulk edit** for long lists). Any of these works:
   `youtube.com/watch?v=...`, `youtu.be/...`, `youtube.com/shorts/...`, `youtube.com/live/...`, `m.youtube.com/...`,
   or a bare 11-character video id. The same video given twice is read once.
2. Click **Start**. In testing, 501 videos took 3 minutes at the default 256 MB and 10 videos at a time, so about
   10,000 videos an hour. A run stops after 10 hours by default (about 100,000 videos); for bigger lists raise
   **Videos at a time** or the run's timeout, or split the list into several runs.

Input example:

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://www.youtube.com/shorts/5D8lVRcZjKM",
    "https://youtu.be/5MuIMqhT8DM"
  ]
}
```

### Options

- **Videos at a time** (default 10): how many videos are read in parallel.
- **Proxy** (default: Apify datacenter proxy) and **Retry refused videos through residential proxy** (default on): see
  below. You are not charged more when a video needs the residential retry.

### How it works

For each video the actor sends four small requests to YouTube's own internal API, the one its website and apps use:
the player as the YouTube Android app (availability, details, caption tracks), the player as the website (exact like
count, dates, category, @handle), the watch page's data call (chapters) and the comment section's header (the exact
comment count, without loading any comments). Each answer is cut down to the fields needed, so a video costs a few KB
of traffic. Nothing is read from comments or viewers.

From cloud servers YouTube sometimes answers "Sign in to confirm you're not a bot". The actor then repeats that
request from another datacenter IP, up to six times, and then through residential proxy.

Tested on 501 videos (regular uploads in 13 languages, 107 Shorts, 20 live streams, 3 upcoming, 58 past streams,
age-restricted, kids videos with comments off, 21 private, removed or made-up ids): every public video came back `ok`
with views, duration and date; likes on all but the 20 whose creators hide them; the comment count on all but the
videos with comments off or live. All 21 dead ids were free with the right status. On a sample of 30, every field
matched the watch page (the live stream's view count had grown by the time the page was fetched).

### Pricing

**$0.50 per 1,000 videos** ($0.0005 per video with details), no start fee. Every other row is free. Set **Maximum
cost per run** in the run options and the run stops before going over it.

### Limits

- Single videos only. A channel or playlist URL comes back `invalid_input`: list its video URLs.
- Counts are YouTube's public figures at the moment of the run. A live stream's view count grows while it runs.
- Age-restricted videos come back with every detail except the caption list, which YouTube shows only to signed-in
  adults (`captions: null`). Members-only videos are free rows: YouTube shows non-members no view count.
- Dislike counts are not public on YouTube and are not in the output.
- No comment text, no commenter names, no viewer data: only the video's public details and counts.
- Residential proxy, whether you choose it or it is the retry, runs within a traffic budget per run (5 MB plus 20 KB
  per video with details; a video takes about 10 KB). Past the budget, videos that need it come back `blocked`
  (free); run them again later.

### FAQ

**Is this a YouTube API alternative?** For video details and statistics, yes: it returns what the YouTube Data API's
`videos.list` gives for `snippet`, `statistics`, `contentDetails` and `liveStreamingDetails` (title, description,
tags, category, views, likes, comment count, duration, live times), plus caption languages and chapters, without a
key or a quota. Start it through the Apify API with a list of URLs and read the dataset as JSON.

**Does it work for YouTube Shorts?** Yes, paste the `youtube.com/shorts/...` URL or the id.

**How do I track views over time?** Schedule the actor on the same list (Apify Schedules) and compare `viewCount`,
`likeCount` and `commentCount` between runs.

**Why is `likeCount` null?** The creator has hidden the like count; the watch page shows no number either.

**Are the titles translated?** No. YouTube shows some titles auto-translated on its website; this actor returns the
title as the uploader wrote it.

**Can I get the transcript too?** Run the same URL list through
[YouTube Transcript Scraper](https://apify.com/siteacs/youtube-transcript-scraper).

**How do I get the videos of a channel, or of a keyword search?** This actor reads video URLs you already have. To list
a channel's videos, Shorts or playlists, use [YouTube Channel Scraper](https://apify.com/siteacs/youtube-channel-scraper);
to find videos by keyword (and check your rank), use [YouTube Rank Checker & Search
Scraper](https://apify.com/siteacs/youtube-search-scraper). Feed their video URLs into this actor for the full details.

# Changelog

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

# Actor input Schema

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

One per line: a video or Shorts URL (youtube.com/watch?v=..., youtu.be/..., youtube.com/shorts/..., youtube.com/live/...) or an 11-character video id. Use Bulk edit to paste a long list. Duplicates are read once. Channel and playlist URLs are not expanded here: list their video URLs.

## `maxConcurrency` (type: `integer`):

How many videos are read in parallel.

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

Apify datacenter proxy (the default) works for most videos; YouTube refuses some of its IPs, and those requests are retried on other IPs. Without a proxy YouTube refuses nearly every request from a cloud server.

## `residentialFallback` (type: `boolean`):

On: a request YouTube still refuses after 6 datacenter IPs is tried through Apify residential proxy, at no extra charge to you. Off: such videos are saved free with status blocked or incomplete.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://www.youtube.com/shorts/5D8lVRcZjKM"
  ],
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

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

One item per video: status, title, channel, views, likes, comments, duration, publish date and category (every field in the full item).

## `details` (type: `string`):

Channel id and handle, live state, age restriction, caption tracks, chapters and tags.

# 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=jNQXAC9IVRw",
        "https://www.youtube.com/shorts/5D8lVRcZjKM"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("siteacs/youtube-video-details").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=jNQXAC9IVRw",
        "https://www.youtube.com/shorts/5D8lVRcZjKM",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("siteacs/youtube-video-details").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=jNQXAC9IVRw",
    "https://www.youtube.com/shorts/5D8lVRcZjKM"
  ]
}' |
apify call siteacs/youtube-video-details --silent --output-dataset

```

## MCP server setup

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

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/adNYS0ox1PTMPXdGa/builds/s9hvG56qCaoa6USdA/openapi.json
