YouTube Video Stats & Metadata (Data API), No Login
Pricing
from $0.42 / 1,000 videos
YouTube Video Stats & Metadata (Data API), No Login
Check YouTube video stats by link: views, likes, comments, duration, tags and category for up to 5,000 videos per run. Official YouTube Data API v3 with your own free key. No login.
Pricing
from $0.42 / 1,000 videos
Rating
0.0
(0)
Developer
Cliqto Media
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Features
Share
YouTube Video Stats & Metadata gets views, likes, comments, duration, tags, category and language for a list of YouTube videos. You paste video links or IDs and add your own free YouTube Data API v3 key. You get one clean table row per video, with numbers as numbers.
The Actor uses only the official YouTube Data API v3: no login, no cookies, no proxy and no page scraping. One API request covers 50 videos and costs 1 unit of your daily Google quota (10,000 units free per day). An API key is required. Without a key the run returns one api_key_required row and stops.

Table of contents
- What it does
- Get your API key
- Quick start
- Input
- Input examples
- Output example
- Output fields
- Pricing and cost examples
- Use cases
- Scheduling and monitoring
- API, export and AI agents
- Limits and partial results
- Troubleshooting
- FAQ
- Related Actors
- Support
What it does
You give a list of YouTube videos. The Actor asks the YouTube Data API about 50 videos at a time and saves one row per video:
Data group (parts) | Fields |
|---|---|
snippet | title, description, channel ID and name, publish date, tags, category, language, thumbnail |
statistics | views, likes, comments |
contentDetails | duration in seconds, HD or SD, captions, licensed content |
- Accepts
watch?v=,youtu.be/,shorts/,embed/,live/andm.youtube.comlinks, or plain 11-character video IDs. Extra parts of a link like&t=30sare ignored. - Duplicates are looked up once.
- A video that is deleted, private or never existed gets a
not_foundrow with your original line, not an error. - A line that is not a YouTube video gets an
invalid_inputrow with your original line. nullmeans "no value from YouTube" (for example, hidden likes). It is never written as0.
Good fit
- You have a list of video links and need their numbers in a table.
- You want an official, stable data source with a clear quota.
- You already have a Google Cloud project, or you can make one in a few minutes.
Not a fit
- You have no API key and do not want one. This Actor does not work without a key.
- You need search results, comments, transcripts or a whole channel. See Related Actors.
- You need view history over time from the past. YouTube only gives the current numbers.
Get your API key
The key is free. It takes about 5 minutes.
- Open the Google Cloud Console and make or pick a project.
- Go to APIs & Services → Library, find YouTube Data API v3 and click Enable.
- Go to APIs & Services → Credentials → Create credentials → API key.
- Copy the key into the YouTube Data API key field of this Actor.
Tip: in the key settings, limit the key to YouTube Data API v3 only.
Quota cost for you. Google gives each project 10,000 quota units per day for free. This Actor uses 1 unit per 50 videos, whatever data groups you pick:
| Videos in a run | Quota units used | Share of the free daily quota |
|---|---|---|
| 2 | 1 | 0.01% |
| 50 | 1 | 0.01% |
| 1,000 | 20 | 0.2% |
| 5,000 | 100 | 1% |
The quota resets at midnight Pacific Time. You can see your usage in Google Cloud Console → APIs & Services → YouTube Data API v3 → Quotas. Google does not charge money for this quota. See the Google quota page.
The key is a secret field: Apify stores it encrypted. The Actor sends it only to Google in a request header. It never writes the key to the dataset, the logs or the run summary.
Quick start
- Get a key (see above).
- Paste video links into Video URLs or IDs, one per line. The form already has 2 example videos.
- Paste your key into YouTube Data API key.
- Click Start. Two videos take a few seconds.
- Open the Videos view of the dataset, or download it as CSV, Excel or JSON.
If you click Start without a key, the run still ends as SUCCEEDED, with one api_key_required row that tells you how to get a key. No video is looked up. Apify charges the Actor start fee for every run, including this one (see Pricing).
Input
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
videoUrls | array of strings | yes | prefill: 2 example videos | 1–5,000 lines | Video links or IDs, one per line. Duplicates are looked up once. |
apiKey | string, secret | yes, for real data | none | — | Your YouTube Data API v3 key. Without it you get one api_key_required row. |
parts | array of snippet, statistics, contentDetails | no | all three | 1–3 values | Which field groups to fill. Fields of groups you skip are null. The quota cost and the price are the same. |
Recommendation: keep all three parts. Pick only statistics if you only need views, likes and comments and want a smaller file.
Input examples
Two videos with all data (the prefill plus your key)
{"videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ","https://youtu.be/jNQXAC9IVRw"],"apiKey": "YOUR_API_KEY"}
Only views, likes and comments for a mixed list
{"videoUrls": ["dQw4w9WgXcQ","https://m.youtube.com/watch?v=jNQXAC9IVRw&t=5s","https://www.youtube.com/shorts/aqz-KE-bpKQ"],"apiKey": "YOUR_API_KEY","parts": ["statistics"]}
Output example
A real row (the description is cut here):
{"status": "complete","videoId": "jNQXAC9IVRw","url": "https://www.youtube.com/watch?v=jNQXAC9IVRw","input": "https://youtu.be/jNQXAC9IVRw","title": "Me at the zoo","description": "…","channelId": "UC4QobU6STFB0P71PMvOGN5A","channelTitle": "jawed","publishedAt": "2005-04-24T03:31:52Z","durationSec": 19,"duration": "PT19S","views": 445744244,"likes": 20099017,"comments": 10642898,"tags": ["me at the zoo", "jawed karim", "first youtube video"],"categoryId": "1","category": "Film & Animation","defaultLanguage": "en","defaultAudioLanguage": "en","liveBroadcastContent": "none","definition": "hd","caption": true,"licensedContent": true,"thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg","parts": ["snippet", "statistics", "contentDetails"],"source": "youtube-data-api-v3","sourceUrl": "https://www.googleapis.com/youtube/v3/videos?part=snippet%2Cstatistics%2CcontentDetails&id=dQw4w9WgXcQ%2CjNQXAC9IVRw","fetchedAt": "2026-10-22T04:43:42.039Z","error": null,"errorCode": null}
A video that does not exist:
{"status": "not_found","videoId": "AAAAAAAAAAA","url": "https://www.youtube.com/watch?v=AAAAAAAAAAA","input": "AAAAAAAAAAA","title": null,"views": null,"error": "YouTube Data API returned no video for this ID (deleted, private or never existed).","errorCode": null}
(Other fields of this row are null too.)
Output fields
The Videos view shows the main columns. The All fields view shows every field.
| Field | Type | Can be null | Example | Meaning |
|---|---|---|---|---|
status | string | no | complete | Row status, see the table below. |
videoId | string | yes | jNQXAC9IVRw | 11-character video ID. null only for invalid_input. |
url | string | yes | https://www.youtube.com/watch?v=jNQXAC9IVRw | Standard watch link. |
input | string | no | https://youtu.be/jNQXAC9IVRw | Your original line, as you typed it. |
title | string | yes | Me at the zoo | Video title (snippet). |
description | string | yes | Full description (snippet). | |
channelId | string | yes | UC4QobU6STFB0P71PMvOGN5A | Channel ID (snippet). |
channelTitle | string | yes | jawed | Channel name (snippet). |
publishedAt | string, ISO date UTC | yes | 2005-04-24T03:31:52Z | Publish time (snippet). |
durationSec | integer | yes | 19 | Length in seconds (contentDetails). null for a stream that is live now (YouTube gives P0D). |
duration | string | yes | PT19S | Length as YouTube gives it (ISO 8601). |
views | integer | yes | 445744244 | View count (statistics). |
likes | integer | yes | 20099017 | Like count. null when the owner hides likes. |
comments | integer | yes | 10642898 | Comment count. null when comments are off or hidden. |
tags | array of strings | yes | ["me at the zoo"] | Video tags. [] = the video has no tags; null = snippet was not requested. |
categoryId | string | yes | 1 | YouTube category ID. |
category | string | yes | Film & Animation | Category name (US list). |
defaultLanguage | string | yes | en | Language of the title and description, if the owner set it. |
defaultAudioLanguage | string | yes | en | Spoken language, if the owner set it. |
liveBroadcastContent | string | yes | none | live, upcoming or none. |
definition | string | yes | hd | hd or sd. |
caption | boolean | yes | true | The video has captions. |
licensedContent | boolean | yes | true | The video has licensed content. |
thumbnailUrl | string | yes | https://i.ytimg.com/vi/…/hqdefault.jpg | Biggest thumbnail link. |
parts | array of strings | yes | ["snippet","statistics","contentDetails"] | Data groups used for this row. |
source | string | no | youtube-data-api-v3 | Data source. |
sourceUrl | string | yes | https://www.googleapis.com/youtube/v3/videos?… | The API request for this row's batch. It has no key in it. |
fetchedAt | string, ISO date UTC | no | 2026-10-22T04:43:42.039Z | When the row was read. |
error | string | yes | Reason, for rows that are not complete. | |
errorCode | string | yes | INVALID_INPUT | Short code for the reason. |
Row statuses
status | When | Charged |
|---|---|---|
complete | Video found | video event |
not_found | Video is deleted, private or never existed | small empty-result event |
invalid_input | The line is not a YouTube video link or ID | small empty-result event |
api_key_required | No key in the input (one row per run) | no event |
api_key_invalid | Google says the key is wrong or the API is not enabled (one row per run) | no event |
quota_exceeded | Your daily quota ran out during the run (one row; it says how many videos were not looked up) | no event |
error | Google returned another error for a batch | no event |
Run summary
The run's key-value store has a RUN_SUMMARY record: run status (COMPLETE, PARTIAL, NO_RESULTS, API_KEY_REQUIRED, API_KEY_INVALID, INVALID_INPUT, CAPPED, CANCELLED, ERROR), stop reason, counts per status, duplicates, and quota units used. The run's status message says the same in one line, for example Done: 4 video(s) saved, 0 not found, 0 invalid line(s).
Pricing and cost examples
Pay per event. Apify platform usage is included. Google does not charge for the API quota.
| Event | When | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|---|
| Actor start | once per run, charged by Apify automatically | $0.0008 | $0.0008 | $0.0008 | $0.0008 |
| Video | per complete row | $0.0006 | $0.00054 | $0.00048 | $0.00042 |
| Empty result | per not_found or invalid_input row | $0.00003 | $0.00003 | $0.00003 | $0.00003 |
That is $0.60 per 1,000 videos on the Free plan and $0.42 on Gold.
| Example run | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|
No key (one api_key_required row) | $0.0008 | $0.0008 | $0.0008 | $0.0008 |
| 1 video | $0.0014 | $0.00134 | $0.00128 | $0.00122 |
| 2 videos (the prefill) | $0.002 | $0.00188 | $0.00176 | $0.00164 |
| 10 videos | $0.0068 | $0.0062 | $0.0056 | $0.005 |
| 100 videos | $0.061 | $0.055 | $0.049 | $0.043 |
| 1,000 videos | $0.60 | $0.54 | $0.48 | $0.42 |
| 5,000 videos | $3.00 | $2.70 | $2.40 | $2.10 |
| 5,000 lines, none found | $0.15 | $0.15 | $0.15 | $0.15 |
Honest note: the start fee is $0.0008 per run. So a run with only 1 video costs more than at some scrapers with a tiny start fee. From about 10 videos per run this Actor is cheaper on every plan. Put many videos in one run instead of many small runs.
Every run pays the start fee, also a run without a key or with a wrong key. Apify charges it automatically when a paid Actor starts.
Set Maximum cost per run in the run options to cap a run. The Actor checks the limit before each row. It stops before a charge would go above it, keeps what it saved and ends as CAPPED with reason CHARGE_LIMIT.
Use cases
| Buyer job | Input | Key fields | Next step |
|---|---|---|---|
| Report on campaign videos | your campaign video links | views, likes, comments, fetchedAt | Put into a weekly sheet or dashboard |
| Check influencer videos before a deal | creator's video links | views, likes, comments, publishedAt | Compare engagement per video |
| Clean a video list | a list from a sheet or CRM | status, title, durationSec, channelTitle | Remove not_found videos, fix titles |
| Tag and category research | competitor video links | tags, category, defaultLanguage | Find common tags and languages |
| Enrich data for a model or BI | many video IDs | all fields | Join on videoId |
Scheduling and monitoring
Use an Apify Schedule to run the same list every day or week. Each run saves the current numbers with fetchedAt. Join rows of different runs on videoId to see how views grow. The Actor does not keep data between runs.
YouTube API terms say you should not keep this kind of data (views, likes and other statistics) for more than 30 days without refreshing it. Refresh the numbers with a new run, or delete old datasets. The Actor itself stores nothing after the run.
API, export and AI agents
- Export: download the dataset as JSON, CSV, Excel, XML or HTML.
- API: start a run with
POST https://api.apify.com/v2/acts/cliqtomedia~youtube-video-details/runsand the input JSON. Read rows from the run's default dataset. - Integrations: Make, Zapier, n8n, webhooks and Google Sheets work through the standard Apify integrations. Use
videoIdas a stable key.
Use with AI agents (MCP)
- MCP server with only this Actor:
https://mcp.apify.com?tools=cliqtomedia/youtube-video-details - Smallest useful input:
{"videoUrls": ["dQw4w9WgXcQ"], "apiKey": "<the user's key>"} - Key output fields:
videoId,title,views,likes,comments,durationSec,publishedAt,status. - A run of up to 50 videos usually ends in a few seconds. 5,000 videos took about 71 seconds in our test.
- The agent needs the user's own YouTube Data API key. Without it the run returns
api_key_required.
Limits and partial results
- Up to 5,000 lines per run. We tested 5,000 videos in one run: COMPLETE in about 71 seconds, 100 quota units.
- The Actor stops reading at about 270 seconds so it can save the results inside the 300-second default timeout (
PARTIAL, reasonDEADLINE). Saved rows are kept. - If your daily quota runs out during a run, the Actor keeps the rows it saved, ends as
PARTIALwith reasonQUOTA_LIMIT, and the run SUCCEEDED. Run the rest after the quota resets. - If Google fails again and again for a batch, the run keeps saved rows and ends with reason
SOURCE_ERROR. - Numbers are live at
fetchedAtand change all the time. Since August 24, 2026, YouTube counts a view as soon as a video starts to play (Google note), soviewscan be higher than numbers you saved before that date. - Category names come from the US category list.
Data comes from the YouTube Data API v3 under your own key and Google project. Please follow the YouTube API Services Terms of Service. This Actor is not affiliated with or endorsed by YouTube or Google.
Troubleshooting
I got one api_key_required row
Symptom: the run SUCCEEDED with one row and status API_KEY_REQUIRED. Reason: the YouTube Data API key field is empty. Action: get a key and run again.
I got one api_key_invalid row
Symptom: status API_KEY_INVALID. Likely reasons: a typo in the key, the key was deleted, YouTube Data API v3 is not enabled in the key's project, or the key is limited to other APIs or websites. Check: in Google Cloud Console open APIs & Services → Enabled APIs. Action: enable the API, or make a new key.
The run ended with QUOTA_LIMIT
Your project used its 10,000 daily units. The rows saved before that are kept. Run the rest of the list after midnight Pacific Time, or use a key from another project.
Some rows are not_found
Likely reason: the video was deleted or made private, or the ID has a typo. Check: open the url in a browser. YouTube does not say which of these it is.
Some rows are invalid_input
The line is not a YouTube video link or ID, for example a channel link or a playlist link. Check the input field and fix the line.
likes or comments is empty
The video owner hid likes or turned comments off. The field is null, not 0, so you can tell "hidden" from "zero".
FAQ
Do I need a YouTube or Google account?
You need a Google account to make the free API key. The Actor does not log in to YouTube and does not use cookies.
Does it cost Google money?
No. The YouTube Data API is free within the daily quota. You pay only the Apify price above.
Do the data groups change the price?
No. One video row is one video event, and one request is 1 quota unit, whatever parts you pick.
Can I use it for Shorts and live streams?
Yes. Shorts links work. For a stream that is live now, durationSec is null. A finished stream has its real length.
Is personal data included?
Only public video and channel data that YouTube shows on the video page: channel ID and name. No viewer data.
Related Actors
- YouTube Search Results Scraper — find videos by keyword.
- YouTube Comments Scraper — get the comments of a video.
- YouTube Subtitles & Transcript Scraper — get the text of a video.
Support
For a bug, question or feature request, open an issue on the Actor's Issues tab. Add the run ID and your input, but never post your API key.