YouTube Search Scraper avatar

YouTube Search Scraper

Pricing

from $0.60 / 1,000 result (full details)s

Go to Apify Store
YouTube Search Scraper

YouTube Search Scraper

🎥 Extract YouTube search results with full video and channel metadata, including views, likes, subscribers, URLs, thumbnails, and more. 🚀 Fast, reliable, and scalable.

Pricing

from $0.60 / 1,000 result (full details)s

Rating

0.0

(0)

Developer

Hamza

Hamza

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

2

Monthly active users

22 days ago

Last modified

Features

Limited permissions

Share

YouTube Search Scraper 🔍

Search YouTube by keyword with every filter the platform offers — and get back videos, Shorts and live streams straight from the search results. Results come straight from YouTube's search pages - no per-video requests - so runs are fast and cheap. Clean structured JSON, ready for analysis.

✨ What you get

One record per result:

FieldDescription
videoId / url / title / thumbnailThe result itself
typevideo, short or stream
descriptionThe description snippet shown in search results (1–2 lines)
publishedTimeTextYouTube's relative upload text, e.g. "3 days ago"
viewsView count as shown in search (may be rounded, e.g. 1.2M)
duration / durationSeconds00:22:51 and 1371 (regular videos)
isLive / streamTypelive when the LIVE badge shows, otherwise null
badgesResult badges (New, 4K, CC, …)
channelName / channelId / channelUrl / channelHandleChannel info as shown in search (handle when YouTube includes it)
position / searchTerm / searchUrl / scrapedAtProvenance

Everything above comes from the search response itself. Shorts search results carry less: a Short record has its ID, URL, title, thumbnail, view count and provenance — the current search parser doesn't extract a date, duration or channel for Shorts. Exact dates, likes, comment counts, full descriptions, subscriber counts and similar per-video details require opening every video page, which this actor intentionally skips for speed.

⚙️ Options

  • Search terms — any number of keywords; each gets its own result quota.
  • Per-type limits — separate maximums for videos, Shorts and live streams. Each is a cap: the actor pages until your limit is reached or YouTube has no new unique results left for that search.
  • Filters — exactly like youtube.com's filter panel: sorting order (Relevance / Rating / Upload date / View count), date filter (last hour → this year), type (video / channel / playlist / movie), length (under 4 / 4–20 / over 20 minutes) and feature toggles (HD, Subtitles/CC, Creative Commons, 3D, Live, Purchased, 4K, 360°, Location, HDR, VR180).
  • Localization — country and language codes for region-specific results.

🚀 Example

Input:

{
"searchTerms": ["world cup 2026"],
"maxVideosPerTerm": 5,
"maxShortsPerTerm": 5,
"maxStreamsPerTerm": 5,
"addFilters": true,
"sortingOrder": "viewCount",
"dateFilter": "week"
}

One record from the output:

{
"videoId": "J5UtYIOm4Xg",
"type": "video",
"title": "2026 FIFA World Cup Group Stage Preview: Predictions + Picks to Advance 🏆",
"url": "https://www.youtube.com/watch?v=J5UtYIOm4Xg",
"description": "Our experts break down every group at the 2026 FIFA World Cup and pick who advances…",
"publishedTimeText": "21 hours ago",
"views": 19763,
"duration": "00:22:51",
"durationSeconds": 1371,
"badges": ["New"],
"isLive": false,
"streamType": null,
"channelName": "CBS Sports",
"channelId": "UCxxxxxxxxxxxxxx",
"channelUrl": "https://www.youtube.com/channel/UCxxxxxxxxxxxxxx",
"channelHandle": "@CBSSports",
"position": 1,
"searchTerm": "world cup 2026",
"searchUrl": "https://www.youtube.com/results?search_query=world+cup+2026",
"scrapedAt": "2026-06-10T02:45:04.000Z"
}

💡 Use cases

  • Market research — map who ranks for the keywords in your niche.
  • Trend monitoring — track fresh uploads on any topic with date filters.
  • SEO for video — analyze titles, lengths and view counts of top-ranking content.
  • Live coverage — find active streams for any event, as it happens.

💳 Pricing

You pay per result scraped — no subscriptions, no hidden compute costs.

❓ FAQ

Why did I get 0 streams? Streams are only returned while something is actually live for your query — 0 is a correct answer, not an error.

Are the dates exact? No — records carry YouTube's relative upload text from search (like "3 days ago"), not an exact timestamp. Exact dates require a per-video lookup, which this actor skips on purpose to stay fast.

Why did I get fewer results than my maximum? Collection stops for one of four reasons and the run log says which one: YouTube offered no continuation (its result list ended), three pages in a row added nothing new (paging stops there to avoid endless repeats - YouTube may still have more), the 25-page safety limit was reached, or your requested maximum was filled. For many searches YouTube simply serves fewer unique results than the maximum.

Do filters combine? Yes, exactly like on youtube.com — e.g. "this week" + "under 4 minutes" + 4K all at once.