Skip to content
Search/
CyberMax › Answers

How to get views, likes and comments for a list of YouTube videos

Updated 2026-12-01 · Data and API builders · by CyberMax

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.

  1. 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).
  2. Open Vidvett on Apify and paste the key into the YouTube Data API key field.
  3. Paste video links or IDs, one per line (watch, youtu.be, Shorts, live and embed links all work), and/or playlist links.
  4. Run. Each row has title, channel, publish date, duration, views, likes, comments, engagement rate, tags and topics, plus your original link in query.
  5. Download CSV or Excel and join it to your sheet on query.
  6. 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 app

From 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).
Real run on Apify (12 Nov 2026: 6 links + 2 playlists, 18 videos, 3 misses free, 2.4 s, 3 API units)
inputtitlelengthviewslikescommentsengagement %
watch?v=dQw4w9WgXcQRick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)3:341,836,258,92119,501,1362,462,0151.2
youtu.be/9bZkp7q19f0PSY - GANGNAM STYLE M/V4:136,124,658,01832,391,6535,467,0960.62
aaaaaaaaaaaVideo not found: deleted, private or never existed (free)
https://vimeo.com/1Not a YouTube video link or ID (free)

Source: Vidvett (Apify Actor cybermax/youtube-video-details) README, real Apify run on 12 Nov 2026

Run Vidvett on Apifyvideos.list reference (Google)

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 icon

Gripeline: See what users hate about any app

$0.0001 per review + $0.003 per app summary

Tracking 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.

You get one email to confirm first. Then the kit, and 5 short emails over two weeks. One-click unsubscribe in every email; we never share your address.

Compare the options

App Store and Google Play review scrapers compared: price per 1,000 reviewsGripeline vs two review scrapers on Apify: live price per 1,000 reviews, both stores in one schema, complaint

Related answers

How to get all videos from a YouTube channel, with views, likes and commentsExport every video of a YouTube channel with views, likes, comments and duration through the official API. PytHow to export YouTube search results (and trending videos) with view countsTurn YouTube keyword searches and trending charts into a table with views, likes and duration through the offi