# YouTube Video Details Scraper | Views, Tags & Chapters (`genial_candlestand/youtube-video-details-scraper`) Actor

Get YouTube video details by URL or ID: exact view, like and comment counts, tags, chapters, category, publish date, duration, description and channel with subscribers. Watch, Shorts, live and youtu.be links, many videos per run, unavailable videos free, no login or API key.

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

## Pricing

from $2.30 / 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 | Views, Tags & Chapters

![YouTube Video Details Scraper | Views, Tags & Chapters](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-single-post-video-details-banner-ab370b20.png)

Get the details of YouTube videos from a list of URLs or video IDs: exact view count, like count and comment count, creator tags, chapters with start times, category, publish date, duration and the full description. Each row also carries the channel (name, @handle, subscriber count, verified badge), collaborators and flags such as Short, live now, age-restricted and unlisted. One row per video, no login or API key.

### What does YouTube Video Details Scraper do?

You give it YouTube video links in any form (watch, youtu.be, Shorts, live, embed, m. and music.youtube.com URLs) or bare 11-character video IDs. It returns one dataset row per unique video with 40 fields of public metadata. It is made for people who already have the videos — marketers tracking campaign or influencer videos, data teams enriching a video list from a spreadsheet, and AI agents that got a video link and need its metadata in one call. It does not search YouTube, crawl channels or download transcripts.

### How to scrape YouTube video details

![How YouTube Video Details Scraper works: Reads video IDs from any YouTube URL form and drops duplicates; Requests each video's details from YouTube's own web API, 8 at a time; Adds chapters, channel d](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-single-post-video-details-how-f1ce0405.png)

1. Open the actor in Apify Console.
2. Paste your video URLs or IDs into **Videos (URLs or IDs)**, one per line. Mixed URL forms and duplicates are fine.
3. Keep the default **Residential** proxy (under Advanced).
4. Click **Start**. A video takes about a second; a 1,000-video run finishes in a few minutes.
5. Download the dataset as JSON, CSV or Excel, or open the **Overview** and **Channels** views in the Output tab.

### How much does it cost to scrape YouTube?

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Video | $2.70 per 1,000 | $2.565 per 1,000 | $2.43 per 1,000 | $2.295 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 4 rows in 21 s.

One paid `video` event = one video row in the dataset. You pay only for videos that are returned:

- videos that are unavailable, private, removed or never existed are skipped with a warning and **not charged**;
- videos YouTube keeps blocking after retries are skipped and not charged;
- channel, playlist, search and non-YouTube URLs are skipped without any request and not charged;
- the same video given several times (for example as a URL and as an ID) is fetched and charged once.

Cost scenarios on the Free plan ($0.0027 per video plus the $0.00005 actor start event at the default memory):

| Scenario | Video events | Cost |
|---|---|---|
| One video looked up by an AI agent | 1 | $0.00275 |
| A campaign list of 100 videos | 100 | $0.27005 |
| A spreadsheet of 1,000 videos | 1,000 | $2.70005 |
| A daily run over 10,000 videos | 10,000 | $27.00005 |

### Input

![YouTube Video Details Scraper input example: Videos (URLs or IDs)](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-single-post-video-details-input-b39608f7.png)

| Field | Type | Description |
|---|---|---|
| `videos` | array of strings, required | Video URLs or bare 11-character IDs, one per line. Accepted: any watch, `youtu.be`, Shorts, live, embed, `m.` or `music.youtube.com` URL (in a watch URL with `&list=` only the video is used). Channel, playlist and search URLs are skipped with a warning. Duplicates are fetched once. |
| `proxyConfiguration` | object, optional | Default: Apify Residential proxy, country US. A datacenter proxy or no proxy is allowed, but YouTube bot-checks those IPs and about 40% of videos are then lost (skipped, not charged). The proxy country decides which region-blocked videos still return a view count. |

`startUrls` (an array of strings or `{ "url": "…" }` objects) is also accepted as an alias for `videos`; it is merged after `videos`.

Example input:

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

### What data can you extract from YouTube videos?

![YouTube Video Details Scraper output example: Thumbnail, Title, Channel, Views, Likes, Comments](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-single-post-video-details-output-fc8592e2.png)

| Field | What it holds |
|---|---|
| `id`, `url`, `title` | Video ID, canonical watch URL `https://www.youtube.com/watch?v=<id>`, title |
| `description` | Full description as written by the creator (null when empty) |
| `durationSeconds` | Length in seconds (null while a stream is live) |
| `publishedAt`, `uploadedAt` | Publish and upload date and time, ISO 8601 in UTC |
| `dateText` | Date as shown under the video, in English |
| `category` | YouTube category, e.g. Music, Education |
| `tags`, `hashtags`, `superTitle` | Creator tags, hashtags above the title, the full text above the title |
| `chapters`, `chapterCount` | Chapters as `{ title, startSeconds }` and their number |
| `imageUrl` | Largest thumbnail |
| `viewCount`, `likeCount`, `commentCount` | Exact counts |
| `commentsDisabled`, `allowRatings` | Comments turned off; likes enabled |
| `channelId`, `channelName`, `channelHandle`, `channelUrl` | The uploading channel |
| `channelSubscriberCount`, `channelSubscriberText` | Subscribers, parsed from the rounded text (4.56M → 4560000) and as shown |
| `channelVerified`, `channelAvatarUrl` | Verified badge, avatar image |
| `collaborators` | Channels of a collaboration video: `name`, `channelId`, `handle`, `subscriberText` (uploader first) |
| `isShort`, `isLiveContent`, `isLiveNow`, `liveStartedAt`, `liveEndedAt` | Short, stream and live status and times |
| `isAgeRestricted`, `isFamilySafe`, `isUnlisted` | Status flags |
| `availableCountryCount` | Number of countries where the video is available |
| `missingParts` | Parts that could not be fetched after retries (`pageDetails`, `commentCount`); empty when complete |
| `scrapedAt` | When the row was extracted |

A real row (description, tags and chapters shortened):

```json
{
  "id": "ix9cRaBkVe0",
  "url": "https://www.youtube.com/watch?v=ix9cRaBkVe0",
  "title": "Python Full Course for free 🐍",
  "description": "#python #tutorial #beginners \nPython tutorial for beginners' full course 2024 …",
  "durationSeconds": 43200,
  "publishedAt": "2024-08-20T13:00:54.000Z",
  "uploadedAt": "2024-08-20T13:00:54.000Z",
  "dateText": "Aug 20, 2024",
  "category": "Education",
  "tags": ["Python tutorial", "python course", "python programming", "python"],
  "hashtags": [],
  "superTitle": "Intro to Coding Courses 👨‍💻",
  "chapters": [
    { "title": "1.python tutorial for beginners", "startSeconds": 0 },
    { "title": "2.variables", "startSeconds": 349 },
    { "title": "3.type casting", "startSeconds": 965 }
  ],
  "chapterCount": 77,
  "imageUrl": "https://i.ytimg.com/vi/ix9cRaBkVe0/maxresdefault.jpg",
  "viewCount": 13428482,
  "likeCount": 377706,
  "commentCount": 23205,
  "commentsDisabled": false,
  "channelId": "UC4SVo0Ue36XCfOyb5Lh1viQ",
  "channelName": "Bro Code",
  "channelHandle": "@BroCodez",
  "channelUrl": "https://www.youtube.com/@BroCodez",
  "channelSubscriberCount": 3440000,
  "channelSubscriberText": "3.44M subscribers",
  "channelVerified": true,
  "channelAvatarUrl": "https://yt3.ggpht.com/ytc/AIdro_mPFVsxROj1dOtTWc9iNBwDYV4z42Q8LPokBSewiW9pCSg=s176-c-k-c0x00ffffff-no-rj",
  "collaborators": [],
  "isShort": false,
  "isLiveContent": false,
  "isLiveNow": false,
  "liveStartedAt": null,
  "liveEndedAt": null,
  "isAgeRestricted": false,
  "isFamilySafe": true,
  "isUnlisted": false,
  "allowRatings": true,
  "availableCountryCount": 249,
  "missingParts": [],
  "scrapedAt": "2026-11-11T00:21:13.161Z"
}
```

### Use cases

- **Campaign and influencer tracking** — schedule a daily run over the same list and build a time series of exact views, likes, comments and channel subscribers.
- **Enriching a video list** — turn 500 mixed URLs and IDs from a sheet or a CRM into one clean row per live video; dead links are skipped and free.
- **Content and SEO analysis** — compare tags, category, chapters, hashtags, duration and the Short flag of competitor videos.
- **Shorts and live streams** — `/shorts/` and `/live/` links work like normal ones, with `isShort`, `isLiveNow` and `liveStartedAt`.
- **AI agents** — fetch the metadata of a video link in one call.

### Limitations

- Only videos you list: no YouTube search, channel crawling, playlists, comments text or transcripts.
- `channelSubscriberCount` is parsed from the rounded number YouTube shows, not the exact count. Dislikes are not available (YouTube removed them).
- Fields can be empty: `likeCount` is null when the creator disabled ratings; `commentCount` is null when comments are off, for live streams, age-restricted videos or when the count could not be fetched; `viewCount` can be null for videos region-blocked in the proxy country; `durationSeconds` is null while a stream is live; `channelHandle` is null for system channels such as YouTube Movies; `channelAvatarUrl` is null for collaboration videos.
- Age-restricted videos return a full row with `isAgeRestricted: true`, but without `commentCount` and `dateText`.
- Private, removed and non-existent videos return no row (YouTube gives no details for them).
- Texts such as `dateText` and `channelSubscriberText` are always in English.
- Members-only videos, upcoming premieres and scheduled streams were not tested: they return a row only when YouTube gives their details, and counts or duration may be null.

### Tips and troubleshooting

- **Fewer rows than inputs?** Check the run log: every skipped input gets a warning (not a video URL, unavailable, or blocked), and the status message counts them. Duplicates are merged into one row.
- **The run failed at once?** `videos` is empty or none of its lines is a YouTube video URL or ID — channel and playlist URLs are not accepted.
- **Keep the Residential proxy.** On datacenter IPs YouTube bot-checks requests and many videos are skipped.
- **`missingParts` is not empty?** One part of the page could not be fetched after retries; the core fields (title, views, tags, duration) are still there. Run the video again to fill it.
- **Region-blocked video without views?** Set the proxy country to a country where the video is available.
- **Large lists:** set a maximum cost per run; the run stops cleanly when it is reached and does not request the remaining videos.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/youtube-video-details-scraper").call(run_input={
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/ix9cRaBkVe0",
        "https://www.youtube.com/shorts/qvA302qITPg",
        "jNQXAC9IVRw",
    ],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/youtube-video-details-scraper').call({
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/ix9cRaBkVe0",
        "https://www.youtube.com/shorts/qvA302qITPg",
        "jNQXAC9IVRw",
    ],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~youtube-video-details-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos":["https://www.youtube.com/watch?v=dQw4w9WgXcQ","https://youtu.be/ix9cRaBkVe0","https://www.youtube.com/shorts/qvA302qITPg","jNQXAC9IVRw"]}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/youtube-video-details-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/youtube-video-details-scraper"}}}`. Then ask, for example:

- "Get views, likes, comment count and tags of https://youtu.be/dQw4w9WgXcQ"
- "List the chapters with start times of the YouTube video ix9cRaBkVe0"
- "Is youtube.com/shorts/qvA302qITPg a Short, and how many subscribers does its channel have?"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Is it legal to scrape YouTube video details?**<br>
The actor reads only public video metadata that YouTube shows to any visitor without login. You are responsible for how you use the data and for complying with YouTube's terms and the laws that apply to you, such as GDPR for personal data.

**Do I need a YouTube API key or an account?**<br>
No. The actor needs no login, cookies or API key.

**How is it different from other YouTube scrapers?**<br>
Each row combines tags, chapters with start seconds, category, the exact comment count, collaborators and flags like `isShort`, `isAgeRestricted` and `availableCountryCount`, and duration is given in seconds. It accepts a single video URL, with no minimum number of videos. The price is $2.70 per 1,000 videos, against $4.00 per 1,000 for the most used general YouTube scraper, and videos that are not found are not charged.

**Can I scrape YouTube Shorts and live streams?**<br>
Yes. Paste `/shorts/` or `/live/` URLs; the row has `isShort`, `isLiveNow`, `liveStartedAt` and `liveEndedAt`.

**Why is the comment count null for some videos?**<br>
YouTube does not show a comment count when comments are turned off, for streams that are live now (they have live chat) and for age-restricted videos.

### Also useful

- [YouTube Comments Scraper](https://apify.com/genial_candlestand/youtube-comments-and-replies-scraper) — get the comments and replies of the same videos with like counts, authors and dates
- [YouTube Transcript Scraper](https://apify.com/genial_candlestand/youtube-transcript-scraper) — add the transcript text and timestamped captions of the same videos
- [YouTube Channel Scraper](https://apify.com/genial_candlestand/youtube-channel-details-videos-scraper) — list all videos, Shorts and streams of a channel with its subscriber and view totals
- [YouTube Search Scraper](https://apify.com/genial_candlestand/youtube-search-scraper) — find videos by keyword first, then pass their URLs here for full details
- [Google Trends Scraper](https://apify.com/genial_candlestand/google-trends-scraper) — check search interest over time for the topics of your videos

# Actor input Schema

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

YouTube videos to look up, one per line: watch, youtu.be, Shorts, live, embed, m. or music.youtube.com URLs, or bare 11-character IDs (e.g. dQw4w9WgXcQ). Channel, playlist and search URLs are skipped with a warning; with \&list= only the video is used. Duplicates are fetched once.

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

Residential (default, US) is recommended: YouTube bot-checks datacenter IPs and about 40% of videos are then skipped (not charged). The proxy country decides which region-blocked videos still show a view count.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/ix9cRaBkVe0",
    "https://www.youtube.com/shorts/qvA302qITPg",
    "jNQXAC9IVRw"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Dataset with one row per video

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

Main fields of every video as a table

# 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=dQw4w9WgXcQ",
        "https://youtu.be/ix9cRaBkVe0",
        "https://www.youtube.com/shorts/qvA302qITPg",
        "jNQXAC9IVRw"
    ]
};

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

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

```

## MCP server setup

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