How to get views, likes and comments for a list of YouTube videos
Short answer
Use the official YouTube Data API: videos.list accepts 50 video IDs per call and returns statistics, duration and metadata for 1 quota unit. Vidvett on Apify parses any form of YouTube link, batches the calls with your own free API key and returns one row per video at $0.15 per 1,000 videos plus $0.001 per run; deleted, private and invalid links are flagged and free.
- Create a free YouTube Data API key: Google Cloud Console, new project, enable YouTube Data API v3, Credentials, Create API key (about 3 minutes, no billing account).
- Open Vidvett on Apify and paste the key into the YouTube Data API key field.
- Paste video links or IDs, one per line (watch, youtu.be, Shorts, live and embed links all work), and/or playlist links.
- Run. Each row has title, channel, publish date, duration, views, likes, comments, engagement rate, tags and topics, plus your original link in query.
- Download CSV or Excel and join it to your sheet on query.
- To track growth, turn on Monitor mode and schedule it daily: you get only videos whose numbers changed, with viewsDelta, likesDelta and commentsDelta.
Copy-paste code
Python (pip install apify-client)
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("cybermax/youtube-video-details").call(run_input={"apiKey": os.environ["YOUTUBE_API_KEY"], "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "youtu.be/9bZkp7q19f0"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row)cURL (one call, rows come back as JSON)
curl -X POST "https://api.apify.com/v2/acts/cybermax~youtube-video-details/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"apiKey": "YOUR_YOUTUBE_API_KEY", "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "youtu.be/9bZkp7q19f0"]}'No code: n8n, Make or Zapier
n8n: HTTP Request node (or the Apify node, action "Run an Actor and get dataset")
Method: POST
URL: https://api.apify.com/v2/acts/cybermax~youtube-video-details/run-sync-get-dataset-items
Auth: Header Auth -> Authorization: Bearer <your Apify token>
Body: JSON {"apiKey": "YOUR_YOUTUBE_API_KEY", "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "youtu.be/9bZkp7q19f0"]}
Make: Apify app -> "Run an Actor" (Actor: cybermax/youtube-video-details, wait for finish = yes) -> "Get Dataset Items"
Zapier: Apify app -> action "Run Actor" (cybermax/youtube-video-details) -> "Fetch Dataset Items" -> your appFrom an AI agent (MCP)
# Any MCP client (Claude Desktop, Claude Code, Cursor, VS Code): Apify's hosted MCP server
{
"mcpServers": {
"youtube-video-details": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.apify.com/?tools=cybermax/youtube-video-details",
"--header", "Authorization: Bearer ${APIFY_TOKEN}"],
"env": { "APIFY_TOKEN": "<your Apify token>" }
}
}
}
# The agent sees one tool, cybermax--youtube-video-details, with the Actor's input schema (pass your YouTube API key in apiKey).| input | title | length | views | likes | comments | engagement % |
|---|---|---|---|---|---|---|
| watch?v=dQw4w9WgXcQ | Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster) | 3:34 | 1,836,258,921 | 19,501,136 | 2,462,015 | 1.2 |
| youtu.be/9bZkp7q19f0 | PSY - GANGNAM STYLE M/V | 4:13 | 6,124,658,018 | 32,391,653 | 5,467,096 | 0.62 |
| aaaaaaaaaaa | Video not found: deleted, private or never existed (free) | |||||
| https://vimeo.com/1 | Not a YouTube video link or ID (free) |
Source: Vidvett (Apify Actor cybermax/youtube-video-details) README, real Apify run on 12 Nov 2026
Why you need your own API key
YouTube's terms and its robots.txt do not allow scraping its pages, so the legitimate way to read video data in bulk is the official YouTube Data API. Google gives each project 10,000 free units a day and ties them to a key, which is why the key is yours and not ours.
The key is a secret input: it is stored encrypted on Apify, sent only to googleapis.com and never written to logs or results. You can restrict it to the YouTube Data API and revoke it at any time.
Engagement rate, defined
Vidvett reports (likes + comments) divided by views, as a percentage. It is a quick way to compare videos of different sizes; it is not YouTube's own metric, and it is empty when an owner hides like counts.
Deleted and private videos
The API simply leaves them out of its answer. Vidvett compares what it asked for with what came back and writes a not-found row for each missing ID, so your sheet still lines up. Those rows are free.
Good to know
50 videos cost 1 API unit, so the free daily quota covers about 500,000 videos.
YouTube's API terms ask you to refresh or delete stored statistics after 30 days.
Gripeline: See what users hate about any app
$0.0001 per review + $0.003 per app summaryTracking what people say about an app as well? Gripeline pulls App Store and Google Play reviews into the same kind of table.
Runs on your own Apify account, pay per result; failed results are not charged.Questions
Is it free to try?
Run it with no key for a free demo of the output format. With a key, Apify's free plan includes $5 of monthly credit, enough for about 33,000 videos, and Google's quota is free.
Can it take a playlist?
Yes. Paste the playlist link; every video in it is returned.
Can it tell me how much a video grew since yesterday?
Yes, in Monitor mode: viewsDelta, likesDelta and commentsDelta since the previous run.
Can an AI agent use it?
Yes. Apify's MCP server exposes it as cybermax--youtube-video-details.
Free: the Free API Starter Kit
Copy-paste calls for 4 APIs with free daily tiers (CVE priority, VIN recalls, US duty rates, email checks), then 5 short emails on KEV/EPSS, MCP and free data.