YouTube Video Stats & Metadata (Data API), No Login avatar

YouTube Video Stats & Metadata (Data API), No Login

Pricing

from $0.42 / 1,000 videos

Go to Apify Store
YouTube Video Stats & Metadata (Data API), No Login

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

Cliqto Media

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

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.

YouTube Video Stats & Metadata: paste video links and your API key, get one row per video with duration, views, likes, comments and category. Official Data API, 50 videos per quota unit, no login, no proxy.

Table of contents

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
snippettitle, description, channel ID and name, publish date, tags, category, language, thumbnail
statisticsviews, likes, comments
contentDetailsduration in seconds, HD or SD, captions, licensed content
  • Accepts watch?v=, youtu.be/, shorts/, embed/, live/ and m.youtube.com links, or plain 11-character video IDs. Extra parts of a link like &t=30s are ignored.
  • Duplicates are looked up once.
  • A video that is deleted, private or never existed gets a not_found row with your original line, not an error.
  • A line that is not a YouTube video gets an invalid_input row with your original line.
  • null means "no value from YouTube" (for example, hidden likes). It is never written as 0.

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.

  1. Open the Google Cloud Console and make or pick a project.
  2. Go to APIs & Services → Library, find YouTube Data API v3 and click Enable.
  3. Go to APIs & Services → Credentials → Create credentials → API key.
  4. 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 runQuota units usedShare of the free daily quota
210.01%
5010.01%
1,000200.2%
5,0001001%

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

  1. Get a key (see above).
  2. Paste video links into Video URLs or IDs, one per line. The form already has 2 example videos.
  3. Paste your key into YouTube Data API key.
  4. Click Start. Two videos take a few seconds.
  5. 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

FieldTypeRequiredDefaultRangeWhat it does
videoUrlsarray of stringsyesprefill: 2 example videos1–5,000 linesVideo links or IDs, one per line. Duplicates are looked up once.
apiKeystring, secretyes, for real datanone—Your YouTube Data API v3 key. Without it you get one api_key_required row.
partsarray of snippet, statistics, contentDetailsnoall three1–3 valuesWhich 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.

FieldTypeCan be nullExampleMeaning
statusstringnocompleteRow status, see the table below.
videoIdstringyesjNQXAC9IVRw11-character video ID. null only for invalid_input.
urlstringyeshttps://www.youtube.com/watch?v=jNQXAC9IVRwStandard watch link.
inputstringnohttps://youtu.be/jNQXAC9IVRwYour original line, as you typed it.
titlestringyesMe at the zooVideo title (snippet).
descriptionstringyesFull description (snippet).
channelIdstringyesUC4QobU6STFB0P71PMvOGN5AChannel ID (snippet).
channelTitlestringyesjawedChannel name (snippet).
publishedAtstring, ISO date UTCyes2005-04-24T03:31:52ZPublish time (snippet).
durationSecintegeryes19Length in seconds (contentDetails). null for a stream that is live now (YouTube gives P0D).
durationstringyesPT19SLength as YouTube gives it (ISO 8601).
viewsintegeryes445744244View count (statistics).
likesintegeryes20099017Like count. null when the owner hides likes.
commentsintegeryes10642898Comment count. null when comments are off or hidden.
tagsarray of stringsyes["me at the zoo"]Video tags. [] = the video has no tags; null = snippet was not requested.
categoryIdstringyes1YouTube category ID.
categorystringyesFilm & AnimationCategory name (US list).
defaultLanguagestringyesenLanguage of the title and description, if the owner set it.
defaultAudioLanguagestringyesenSpoken language, if the owner set it.
liveBroadcastContentstringyesnonelive, upcoming or none.
definitionstringyeshdhd or sd.
captionbooleanyestrueThe video has captions.
licensedContentbooleanyestrueThe video has licensed content.
thumbnailUrlstringyeshttps://i.ytimg.com/vi/…/hqdefault.jpgBiggest thumbnail link.
partsarray of stringsyes["snippet","statistics","contentDetails"]Data groups used for this row.
sourcestringnoyoutube-data-api-v3Data source.
sourceUrlstringyeshttps://www.googleapis.com/youtube/v3/videos?…The API request for this row's batch. It has no key in it.
fetchedAtstring, ISO date UTCno2026-10-22T04:43:42.039ZWhen the row was read.
errorstringyesReason, for rows that are not complete.
errorCodestringyesINVALID_INPUTShort code for the reason.

Row statuses

statusWhenCharged
completeVideo foundvideo event
not_foundVideo is deleted, private or never existedsmall empty-result event
invalid_inputThe line is not a YouTube video link or IDsmall empty-result event
api_key_requiredNo key in the input (one row per run)no event
api_key_invalidGoogle says the key is wrong or the API is not enabled (one row per run)no event
quota_exceededYour daily quota ran out during the run (one row; it says how many videos were not looked up)no event
errorGoogle returned another error for a batchno 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.

EventWhenFreeBronzeSilverGold and above
Actor startonce per run, charged by Apify automatically$0.0008$0.0008$0.0008$0.0008
Videoper complete row$0.0006$0.00054$0.00048$0.00042
Empty resultper 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 runFreeBronzeSilverGold+
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 jobInputKey fieldsNext step
Report on campaign videosyour campaign video linksviews, likes, comments, fetchedAtPut into a weekly sheet or dashboard
Check influencer videos before a dealcreator's video linksviews, likes, comments, publishedAtCompare engagement per video
Clean a video lista list from a sheet or CRMstatus, title, durationSec, channelTitleRemove not_found videos, fix titles
Tag and category researchcompetitor video linkstags, category, defaultLanguageFind common tags and languages
Enrich data for a model or BImany video IDsall fieldsJoin 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/runs and 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 videoId as 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, reason DEADLINE). Saved rows are kept.
  • If your daily quota runs out during a run, the Actor keeps the rows it saved, ends as PARTIAL with reason QUOTA_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 fetchedAt and change all the time. Since August 24, 2026, YouTube counts a view as soon as a video starts to play (Google note), so views can 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.

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.