YouTube Search Scraper avatar

YouTube Search Scraper

Pricing

from $0.50 / 1,000 search results

Go to Apify Store
YouTube Search Scraper

YouTube Search Scraper

Search YouTube and export video title, URL, channel, views, duration, thumbnail, and publish time. Filters for date, type, duration, sort, HD, live, and captions.

Pricing

from $0.50 / 1,000 search results

Rating

0.0

(0)

Developer

datacortex

datacortex

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Search YouTube and download structured results: title, URL, video ID, channel, views, duration, thumbnail, and publish time.

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

What you get

FieldExample
titleHow to Make a Website in 10 Minutes
urlhttps://www.youtube.com/watch?v=LK9XuImr8Xg
videoIdLK9XuImr8Xg
channelNameWeb Dev Simplified
channelUrlhttps://www.youtube.com/channel/UC…
views1200000
duration10:32
publishedTime2 weeks ago
thumbnailUrlhttps://i.ytimg.com/vi/…/hq720.jpg

Standard search returns up to 20 results per query. Turn on Deep search for up to 700.

How to run

  1. Open the Actor in Apify Console.
  2. Enter one search term per line under Search queries.
  3. Optional: set country, upload date, type, duration, sort, HD / live / captions.
  4. Click Start. Open the Output tab when the run finishes.

Example input

{
"queries": ["how to make a website"],
"deep": false,
"maxResults": 20,
"sortBy": "relevance"
}

API

curl -X POST "https://api.apify.com/v2/acts/datacortex~youtube-search-scraper/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries":["how to make a website"],"deep":false}'

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-search-scraper"
}
}
}

The agent should fetch-actor-details on datacortex/youtube-search-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

$0.50 per 1,000 results + $0.001 per run.

EventWhen it firesPrice
apify-actor-startOnce when the run starts$0.001
apify-default-dataset-itemOnce per dataset row (usually one video)$0.0005 ($0.50 / 1,000)
JobRowsYou pay
1 query, standard (~20 videos)20$0.001 + $0.010 = $0.011
10 queries, standard~200$0.001 + $0.100 = $0.101
1 query, deep (~700 videos)700$0.001 + $0.350 = $0.351

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

Input reference

FieldRequiredDefaultNotes
queriesyesOne term per line, max 1,000
deepnofalsetrue → up to 700 results / query
maxResultsnoallHard cap across every query
geoLocationnoe.g. United States
uploadDatenolast_hour, today, this_week, this_month, this_year
resultTypenovideo, channel, playlist, movie
durationno<4, 4-20, >20
sortBynorelevancerelevance, upload_date, view_count, rating
hd / live / subtitlesnofalseYouTube quality filters

Limitations

  • This Actor searches YouTube. It does not download video files, transcripts, or comments.
  • View counts and “published X ago” are what YouTube shows on the search page, not live analytics.
  • Failed queries write one type: "error" row so you can see which term 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.