YouTube Metadata Scraper avatar

YouTube Metadata Scraper

Pricing

from $5.00 / 1,000 video metadata

Go to Apify Store
YouTube Metadata Scraper

YouTube Metadata Scraper

Look up YouTube videos by ID or URL and export title, views, likes, channel, description, duration, and upload date.

Pricing

from $5.00 / 1,000 video metadata

Rating

0.0

(0)

Developer

datacortex

datacortex

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Look up any public YouTube video by ID or URL and export title, views, likes, channel, description, duration, thumbnail, and upload date.

Built for Apify Console, API, MCP agents, and integrations (Make, Zapier, n8n). One dataset row per video — ready for CSV, Excel, or JSON export.

What you get

FieldExample
titleNever Gonna Give You Up
urlhttps://www.youtube.com/watch?v=tIgIF5lve8U
videoIdtIgIF5lve8U
channelNameRick Astley
channelUrlhttps://www.youtube.com/channel/UC…
views1600000000
likes18000000
duration3:33
publishedAt2009-10-25
thumbnailUrlhttps://i.ytimg.com/vi/…/hq720.jpg

This Actor reads one video per input. It does not search YouTube, download files, or pull transcripts.

How to run

  1. Open the Actor in Apify Console.
  2. Paste video IDs or watch / Shorts / youtu.be URLs, one per line.
  3. Optional: set a max-results cap.
  4. Click Start. Open the Output tab when the run finishes.

Example input

{
"videoIds": [
"tIgIF5lve8U",
"https://www.youtube.com/watch?v=tIgIF5lve8U"
],
"maxResults": 10
}

Duplicate IDs (including the same video as ID and URL) are fetched once.

API

curl -X POST "https://api.apify.com/v2/acts/datacortex~youtube-metadata-scraper/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"videoIds":["tIgIF5lve8U"]}'

Replace YOUR_TOKEN with an Apify API token.

Use with MCP / agents

This is a normal Apify Actor. Agents call it through Apify MCP — you do not run a separate MCP process.

Pin this Actor as a tool (after it is public):

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=datacortex/youtube-metadata-scraper"
}
}
}

The agent should fetch-actor-details on datacortex/youtube-metadata-scraper, then run it with the same JSON as Example input above. Running Actors requires an Apify token (OAuth in the client, or Authorization: Bearer <APIFY_TOKEN>).

Pricing

$5.00 per 1,000 videos + $0.001 per run.

Each input is one vendor lookup and one dataset row. That is not the same product as a search scraper ($0.50 / 1,000), which returns many rows per query.

EventWhen it firesPrice
apify-actor-startOnce when the run starts$0.001
apify-default-dataset-itemOnce per dataset row (one video)$0.005 ($5.00 / 1,000)
JobRowsYou pay
1 video1$0.001 + $0.005 = $0.006
10 videos10$0.001 + $0.050 = $0.051
100 videos100$0.001 + $0.500 = $0.501
1,000 videos1,000$0.001 + $5.000 = $5.001

Set a max total charge per run so a long list cannot overrun budget. The Actor stops when that limit is reached.

Input reference

FieldRequiredDefaultNotes
videoIdsyesIDs or URLs, max 1,000, duplicates skipped
maxResultsnoallHard cap across the list

Limitations

  • Public video metadata only. Private, deleted, members-only, and some live or geo-blocked videos return an error row.
  • This Actor does not download video files, transcripts, comments, or channel subscriber lists.
  • Likes and comment counts are omitted when YouTube hides them.
  • Failed lookups write one type: "error" row so you can see which ID failed.

Local development

python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
apify run --input-file=apify_input.json --purge

Changelog

See CHANGELOG.md.