YouTube Video Details Scraper - Views, Likes & Tags
Rocketyard’s YouTube Video Details Scraper returns the public details of YouTube videos and Shorts and returns one clean record per video: video id, title, description, description links, channel id, channel name and more. It runs on the Apify platform, so you can start it from the Apify Console, the REST API, an AI agent or a no-code tool.
Who it’s for
Section titled “Who it’s for”- Marketers and agencies tracking video performance across channels
- Developers building video dashboards, catalogs and AI tools
- Researchers and analysts building video datasets
- Creators benchmarking their videos against competitors
What you can do with it
Section titled “What you can do with it”- Turn a list of YouTube links into a spreadsheet of titles, channels, views, likes and durations
- Track the stats of campaign or competitor videos every day
- Collect tags, categories, hashtags and chapters for SEO or research
How it works
Section titled “How it works”YouTube’s watch page loads each video’s details from its player endpoint: the same numbers and text a visitor sees. The Actor asks that endpoint directly over plain HTTP, the way a logged-out visitor’s browser does, without a browser, login or cookies, and gets a 3-6 KB answer per video instead of a 140 KB page. It does not check robots.txt, and YouTube’s robots.txt disallows the /youtubei/ path of that endpoint. Each record has exact view and like counts, the full description with its links, hashtags and chapters, the channel, the length in seconds and ISO 8601, publish and upload dates with time zones, tags, category, live and Shorts status and flags. With Include comment count and channel stats it also asks the next endpoint, which the watch page uses for its comments and channel box. A video that cannot be read gets an error item that says why, and is not charged.
Example output
Section titled “Example output”A real record from a test run on youtube.com on 2026-11-21. Fields the page didn’t publish are left out here; the Actor returns them as null.
{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "type": "VideoObject", "videoId": "dQw4w9WgXcQ", "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)", "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“Never Gonna Give You Up” was a global smash on its release in Ju…", "descriptionLinks": [ "https://linktr.ee/rickastleynever", "https://RickAstley.lnk.to/YTSubID", "https://RickAstley.lnk.to/FBFollowID", "https://RickAstley.lnk.to/TwitterID", "https://RickAstley.lnk.to/InstagramID", "https://RickAstley.lnk.to/storeID", "https://RickAstley.lnk.to/TikTokID", "https://RickAstley.lnk.to/SpotifyID", "https://RickAstley.lnk.to/AppleMusicID", "https://RickAstley.lnk.to/AmazonMusicID", "https://RickAstley.lnk.to/DeezerID" ], "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw", "channelName": "Rick Astley", "channelHandle": "@RickAstleyYT", "channelUrl": "https://www.youtube.com/@RickAstleyYT", "viewCount": 1839304639, "likeCount": 19513121, "durationSeconds": 213, "duration": "PT3M33S", "publishDate": "2009-10-24T23:57:33-07:00", "uploadDate": "2009-10-24T23:57:33-07:00", "category": "Music", "keywords": [ "rick astley", "Never Gonna Give You Up", "nggyu", "never gonFields
Section titled “Fields”| Field | Description | Filled in latest test |
|---|---|---|
videoId |
11-character video ID | 100% |
title |
Video title | 100% |
description |
Full description | 100% |
descriptionLinks |
Links in the description | 100% |
channelId |
Channel ID (UC…) | 100% |
channelName |
Channel name | 100% |
channelHandle |
Channel handle (@name) | 100% |
channelUrl |
Channel URL | 100% |
viewCount |
Views (exact) | 100% |
likeCount |
Likes (exact; empty when the creator hides them) | 100% |
durationSeconds |
Length in seconds (empty while a stream is live or upcoming) | 100% |
duration |
Length as ISO 8601 (PT13M54S) | 100% |
publishDate |
Publish date and time with time zone (ISO 8601) | 100% |
uploadDate |
Upload date and time with time zone (ISO 8601) | 100% |
category |
YouTube category | 100% |
keywords |
Tags the creator set | 100% |
hashtags |
Hashtags in the description | 100% |
isShort |
true for Shorts |
100% |
liveStatus |
none, live, upcoming or was-live |
100% |
isFamilyFriendly |
YouTube family-safe flag | 100% |
isUnlisted |
true for unlisted videos |
100% |
isAgeRestricted |
true when YouTube asks viewers to confirm their age |
100% |
chapters |
Chapters the creator lists in the description (title, start in seconds, link) | 0% |
thumbnailUrl |
Largest thumbnail | 100% |
availableCountryCount |
Number of countries where the video can be watched | 100% |
commentCount |
With Include comment count and channel stats only: comments as YouTube displays the count (rounded for large counts; empty when comments are off) | 0% |
commentsTurnedOff |
With the add-on only: true when the creator turned comments off |
0% |
channelSubscriberCount |
With the add-on only: subscribers of the channel as YouTube displays them (rounded for large channels) | 0% |
channelVerified |
With the add-on only: true when the channel has a verified badge |
0% |
collaborators |
With the add-on only: every channel credited on a collaboration video (ID, name, handle, subscribers, verified) | 0% |
url |
the page the record came from | 100% |
scrapedAt |
ISO timestamp of the extraction | 100% |
A field is filled when the source publishes it. The Actor never guesses a value: a missing field comes back as null. “Filled in latest test” is the share of records from the latest test run (youtube.com) that had the field; other sources publish more or less.
Pricing
Section titled “Pricing”You pay $1.00 per 1,000 videos, plus a start fee of $0.00005 per run. Optional: Comment count and channel stats (includeEngagement): $0.80 per 1,000 videos, charged only for the videos it was delivered for. Videos that cannot be read produce an error item, which is not charged.
| Videos | Cost |
|---|---|
| 1,000 | $1.00 |
| 10,000 | $10.00 |
| 100,000 | $100.00 |
Set maxItems or the run’s Maximum cost per run in Apify to cap spending.
Call it from any language with the Apify REST API, or with Apify’s JavaScript and Python clients. You need an Apify API token.
curl -s -X POST "https://api.apify.com/v2/acts/rocketyard~youtube-video-scraper/run-sync-get-dataset-items" \ -H "Authorization: Bearer $APIFY_TOKEN" \ -H 'content-type: application/json' \ -d '{"startUrls":[{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"videoIds":["eSGqW_VMMXQ"],"includeEngagement":false,"maxItems":100}'import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('rocketyard/youtube-video-scraper').call({"startUrls":[{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"videoIds":["eSGqW_VMMXQ"],"includeEngagement":false,"maxItems":100});const { items } = await client.dataset(run.defaultDatasetId).listItems();from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("rocketyard/youtube-video-scraper").call(run_input={"startUrls":[{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"videoIds":["eSGqW_VMMXQ"],"includeEngagement":false,"maxItems":100})items = client.dataset(run["defaultDatasetId"]).list_items().itemsThe synchronous endpoint returns the records directly. For long crawls, start the run asynchronously and read the dataset when it finishes.
Apify’s MCP server exposes this Actor as a tool to Claude, Cursor and other MCP clients. Open this Actor’s MCP setup page for setup steps per client, or connect it with this URL:
https://mcp.apify.com?tools=rocketyard/youtube-video-scraperClaude Code:
claude mcp add --transport http apify "https://mcp.apify.com?tools=rocketyard/youtube-video-scraper"Cursor (.cursor/mcp.json) and other clients that read an mcpServers config:
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=rocketyard/youtube-video-scraper" } }}On first use your browser opens so you can sign in to Apify. Then ask the agent, for example: “Turn a list of YouTube links into a spreadsheet of titles, channels, views, likes and durations”. The tool returns JSON records, and the runs are billed to that Apify account at $1.00 per 1,000 videos.
Automation
Section titled “Automation”n8n, Make and Zapier all connect to Apify. Each example below uses Actor rocketyard/youtube-video-scraper with this input:
{ "startUrls": [ { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" } ], "videoIds": [ "eSGqW_VMMXQ" ], "includeEngagement": false, "maxItems": 100}Copy this workflow and paste it onto an n8n canvas. It runs the Actor every morning through an HTTP Request node and returns the records as n8n items.
{ "name": "YouTube Video Details Scraper daily", "nodes": [ { "parameters": { "rule": { "interval": [ { "field": "days", "daysInterval": 1, "triggerAtHour": 7 } ] } }, "id": "c1f6a2d0-4a57-4b5e-9d7a-0a1b2c3d4e01", "name": "Every day at 07:00", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 0, 0 ] }, { "parameters": { "method": "POST", "url": "https://api.apify.com/v2/acts/rocketyard~youtube-video-scraper/run-sync-get-dataset-items", "authentication": "genericCredentialType", "genericAuthType": "httpBearerAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "{\n \"startUrls\": [\n {\n \"url\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n }\n ],\n \"videoIds\": [\n \"eSGqW_VMMXQ\"\n ],\n \"includeEngagement\": false,\n \"maxItems\": 100\n}", "options": { "timeout": 300000 } }, "id": "c1f6a2d0-4a57-4b5e-9d7a-0a1b2c3d4e02", "name": "Run YouTube Video Details Scraper", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 260, 0 ], "credentials": { "httpBearerAuth": { "name": "Apify API token" } } } ], "connections": { "Every day at 07:00": { "main": [ [ { "node": "Run YouTube Video Details Scraper", "type": "main", "index": 0 } ] ] } }, "settings": {}}Then open the HTTP Request node and create an HTTP Bearer Auth credential named Apify API token, with your token from Apify Console as the bearer token. The token stays in n8n’s credential store; the workflow only names the credential. Change the input in the node’s JSON body to your own.
The node waits up to 300 seconds, which is also the limit of Apify’s synchronous endpoint. An input that yields nothing comes back as an item with an error field, which you can drop with a Filter node. Apify also publishes a community node, @apify/n8n-nodes-apify, with a Run an Actor and get dataset operation.
- Add Apify’s Run an Actor module and connect your Apify account.
- Choose
rocketyard/youtube-video-scraper, paste the input above and set Run synchronously to Yes. Make limits how long a synchronous run can take, depending on your plan. For longer runs, start the scenario from Watch Actor Runs instead. - Add Get Dataset Items with the run’s default dataset ID.
- Send the items wherever you need them, for example with Google Sheets Add a Row, mapping
videoId,title,descriptionanddescriptionLinks.
Zapier
Section titled “Zapier”- Add Apify’s Run Actor action, connect your Apify account, choose
rocketyard/youtube-video-scraperand paste the input above. - Zapier stops synchronous runs after 30 seconds. For anything larger than a small run, let the run continue in the background and start a second Zap from the Finished Actor run trigger.
- Add Fetch dataset items with the run’s dataset ID, then map
videoId,title,descriptionanddescriptionLinksinto your app. - Test with a small input and check that the Zap handles every record before you turn it on.
Limits
Section titled “Limits”- No search, comments, transcripts or captions: it reads the videos you list. With the add-on you get the comment count, not the comments.
chaptersare the timestamps the creator lists in the description; YouTube’s automatic “key moments” are not included.- Comment counts and channel subscriber counts (add-on) are as YouTube displays them; it rounds large numbers (2.4M).
- Private, removed and missing videos return an error item with the code
VIDEO_UNAVAILABLEand are not charged. Age-restricted videos keep their details, withisAgeRestrictedset. - YouTube may answer an IP address with a bot check or without the video data. The Actor then asks once more from a residential IP address; a video still walled off returns a free
BLOCKEDerror item, so run it again later. The Actor never solves bot checks.
How much does it cost?
Section titled “How much does it cost?”$1.00 per 1,000 videos plus $0.00005 per run, billed by Apify. 10,000 videos cost $10.00. There is no subscription, and you can cap any run with Maximum cost per run.
How do I call it from the API?
Section titled “How do I call it from the API?”One request starts a run and returns its results, using your Apify API token:
curl -X POST "https://api.apify.com/v2/acts/rocketyard~youtube-video-scraper/run-sync-get-dataset-items" -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" -d '{"startUrls":[{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}],"videoIds":["eSGqW_VMMXQ"],"includeEngagement":false,"maxItems":100}'What happens when a URL fails?
Section titled “What happens when a URL fails?”The dataset gets one free error item for it, with a code and the reason, and the other inputs in the run carry on. Error codes explains each code, whether a retry helps and what to do.
Which videos does it work on?
Section titled “Which videos does it work on?”Any public YouTube video or Short: watch URLs, Shorts URLs, youtu.be links, embed and live URLs, or bare video IDs.
What happens when a field is missing?
Section titled “What happens when a field is missing?”The field comes back as null. The Actor reports what the source publishes and never fills in guesses.
Is it allowed to scrape this data?
Section titled “Is it allowed to scrape this data?”The Actor reads the data YouTube’s player endpoint gives any logged-out visitor, without logging in, without cookies and without accepting consent or solving bot checks. When YouTube walls off the IP address a video was asked from, the Actor asks once more from one residential IP address. It does not check robots.txt, and YouTube’s robots.txt disallows the /youtubei/ path of that endpoint. It never plays or downloads videos, and returns no comment text and no data about commenters or viewers. You are responsible for how you use the data under YouTube’s terms and the law (for example copyright and GDPR).
Can I use it from an AI agent?
Section titled “Can I use it from an AI agent?”Yes. Connect Apify’s MCP server as shown in MCP, and the agent can call the Actor as a tool.
Alternatives
Section titled “Alternatives”See how it compares with other youtube video scrapers on price, users and run success, from Apify Store data. Need a field or site behaviour that isn’t covered? Open an issue on the Actor page.
