YouTube Metadata Lookup (Bring Your Own Key) avatar

YouTube Metadata Lookup (Bring Your Own Key)

Pricing

from $2.00 / 1,000 metadata records

Go to Apify Store
YouTube Metadata Lookup (Bring Your Own Key)

YouTube Metadata Lookup (Bring Your Own Key)

Live video, channel, playlist and search metadata from the official YouTube Data API v3, using your own API key and quota. No caching, no transcripts, no scraping.

Pricing

from $2.00 / 1,000 metadata records

Rating

0.0

(0)

Developer

HYDRA SEARCH

HYDRA SEARCH

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

YouTube Metadata Lookup

Live video, channel, playlist and keyword-search metadata from the official YouTube Data API v3 — with your own API key and quota. No caching, no transcripts, no scraping.

Why bring your own key?

YouTube's Developer Policies don't allow a third party to resell access to the API or to cache/redistribute the data it returns beyond narrow limits. So instead of us holding a shared key and reselling access to it, you supply your own API key from your own Google Cloud project, and every run calls the API live, on your own quota, and returns the results only to you. See SOURCE_TERMS.md for the exact clauses this is built around.

Trying it without a key first

Run it with no apiKey at all and it won't error out — you'll get back one sample row (isSampleTestRecord: true, titled "SAMPLE VIDEO (no API key supplied)") so you can see the output shape before setting up your own key. Nothing is charged for that row. The input form's apiKey field has no default value, so this is also what Apify Store's automatic "Try for free" test run hits.

Getting an API key (free)

  1. Go to console.cloud.google.com, create or pick a project.
  2. Enable the YouTube Data API v3 for that project.
  3. Create credentials → API key.
  4. Paste it into this Actor's apiKey input. It's a secret field — Apify won't show or log it.

YouTube's standard free quota is 10,000 units/day per project. A video/channel/playlist lookup costs 1 unit per batch of up to 50 items; a keyword search costs 100 units per page of results.

What it returns

Metadata and public statistics only — titles, descriptions, publish dates, durations, view/like/comment counts, subscriber counts, and similar fields the API publishes. No transcripts or captions — there is no official API for fetching another channel's video transcripts, so this Actor doesn't attempt it (see SOURCE_TERMS.md).

Every record carries a provenance block: the canonical youtube.com URL for that item, when it was fetched, and a note that the data is live from the API, not a cached snapshot.

Video rows also get four computed fields, free (no extra API quota): durationSeconds, isShort (60 seconds or less), engagementRate ((likes + comments) / views), and viewsPerDay (views divided by days since publish). Any of them is null when its inputs are missing.

Ranking and filters

sortBy (viewCount, likeCount, commentCount or engagementRate), topN and minViewCount let you ask for just the best rows instead of everything. They're applied after fetching, before pushing: drop rows below minViewCount, sort by sortBy highest-first, then keep the first topN. Only the rows that survive this are pushed, and only pushed rows are charged — so a run with topN: 3 only ever charges you for 3 records, however many it had to fetch to rank them. A row missing the field used to sort or filter gets a rankingNote and is treated as 0.

Channel uploads

Turn on includeChannelUploads to get each channel's recent uploads alongside its own metadata row, via YouTube's official "uploads" playlist — the same kind of row you'd get from looking up a playlist directly, tagged channelUpload. maxUploadsPerChannel caps how many per channel; if a channel has more uploads than that, you'll see a clear warning (logged, and listed in RUN_SUMMARY.truncatedChannelUploads) rather than a silently incomplete list.

Comments

Turn on includeComments to also get each video's top-level comments (not replies) as their own rows, up to maxCommentsPerVideo per video. Comments are priced separately from metadata rows, under their own pay-per-event event, comment-record — see Pricing below. A video with comments turned off by its owner is skipped quietly; it doesn't fail the run.

Important: this is a live lookup tool, not a dataset

Each run calls YouTube fresh and returns only what the API said at that moment. This Actor doesn't store or re-serve a previous run's results, and it doesn't build up a growing dataset over time. If you need a historical record, save the output yourself — that's your data, under your own account, same as if you'd called the API directly.

Inputs

See the input form for full descriptions. In short: apiKey (secret — leave empty to get the sample row instead, see above), then any mix of videoIds, channelRefs, playlistIds, searchQuery, plus maxResults and maxQuotaUnits safety caps, sortBy/topN/minViewCount for ranking and filters, includeChannelUploads/maxUploadsPerChannel for channel uploads, and includeComments/maxCommentsPerVideo for comments.

When a run stops early

The run summary (RUN_SUMMARY in the key-value store) always says why, in stoppedReason:

  • maxResults — you got everything you asked for, up to your cap.
  • chargeLimit — the Actor's own pay-per-event budget for this run was spent.
  • quotaBudget — your maxQuotaUnits safety cap was reached before YouTube's own limit.
  • apiQuotaExceeded — YouTube itself said your project's real daily quota is used up.

None of these are errors — the run finishes cleanly either way. A genuinely bad API key or a malformed request surfaces YouTube's own error message instead of being hidden.

Pricing

Pay per result (event metadata-record): $1.50 per 1,000 results ($0.0015 each). You also pay Google nothing extra: the YouTube API quota is your own key's quota. See SPEC.md §7 for the reasoning.

Comments are priced separately, under a second event, comment-record. No price has been set for it yet — it needs to be entered in the Apify Console (Actor > Publication > Monetization > Pay per event > add event comment-record), same place metadata-record was entered.