YouTube Search Scraper avatar

YouTube Search Scraper

Pricing

from $1.50 / 1,000 results

Go to Apify Store
YouTube Search Scraper

YouTube Search Scraper

Video title, URL, channel, views, duration, publish time, badges and rank for every YouTube search result, with upload date, duration and feature filters. Pages past the first. No API key or login needed.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

Muhammad Noman Riaz

Muhammad Noman Riaz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Share

What does YouTube Search Scraper do?

YouTube Search Scraper turns any YouTube search into a clean dataset with one record per video result, in the order YouTube ranks them. Type one or more search queries and choose how many results you want per query; the scraper keeps loading the next results pages until it reaches that number or YouTube runs out. Each record has the video ID, URL, title, channel name, channel ID and channel URL, view count as a number, published time, duration in seconds and as text, thumbnail, description snippet, badges such as 4K or CC, live and Shorts flags, the query and the rank. You can narrow results with YouTube's own upload date, duration and feature filters, sort by popularity, and pick the country and language YouTube ranks for. It needs no YouTube API key, no login and no cookies, which makes it a simple tool for keyword research, rank tracking and content discovery.

What data can I extract from YouTube search results?

FieldExampleNotes
id_9WBuCJMQs8Always an 11 character video ID
urlhttps://www.youtube.com/watch?v=_9WBuCJMQs8/shorts/ URL for Shorts
titleVideo titleAlways present
channelName, channelId, channelUrlExplore The World 4K
viewCount2360250Number. null for live streams
publishedText1 year agoAs YouTube shows it, in the chosen language
publishedDate2026-10-14Only when the text is in days or less ("3 days ago"); otherwise null
duration531Seconds. null for live streams
durationText8:51
thumbnailhttps://i.ytimg.com/vi/<id>/hqdefault.jpg
descriptionSnippetShort text under the title
isLive, isShortfalse
badges["4K", "CC"]Labels YouTube shows on the result
searchQuerydrone footage
rank1Position among the video results of that query

How do I use YouTube Search Scraper?

  1. Enter one or more search queries.
  2. Set Max results per query (default 50).
  3. Optionally pick filters, sort, country and language.
  4. Click Start and download the results as JSON, CSV, Excel or through the API.

Input

FieldTypeDefaultDescription
searchQueriesarray of stringsWhat to search on YouTube, one query per line
maxResultsPerQueryinteger50Videos per query (1 to 1000)
uploadDatestringhour, today, week, month or year
durationstringunder4, between4and20 or plus20 (minutes)
featuresarray of stringsAny of live, 4k, subtitles, 360, vr180
sortBystringrelevancerelevance or views (YouTube's popularity order)
glstringUSCountry code YouTube ranks results for
hlstringenInterface language code
maxConcurrencyinteger5Queries processed at the same time
maxRequestRetriesinteger5Attempts per results page, each on a new proxy IP
proxyobjectApify residentialProxy settings
{
"searchQueries": ["drone footage"],
"maxResultsPerQuery": 60,
"duration": "between4and20",
"features": ["4k"],
"gl": "US",
"hl": "en",
"proxy": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}

Output example

A real record from the test run with the input above (October 2026). That run returned 60 videos from several results pages, and every one of them was 4 to 20 minutes long and carried the 4K badge:

{
"id": "_9WBuCJMQs8",
"url": "https://www.youtube.com/watch?v=_9WBuCJMQs8",
"title": "Madeira 4K - Portugal's Paradise | Cinematic Drone Footage",
"channelName": "Explore The World 4K",
"channelId": "UCNQVrgPYmkm4KGElhWkepLg",
"channelUrl": "https://www.youtube.com/@exploretheworld4k",
"viewCount": 2360250,
"publishedText": "1 year ago",
"publishedDate": null,
"duration": 531,
"durationText": "8:51",
"thumbnail": "https://i.ytimg.com/vi/_9WBuCJMQs8/hqdefault.jpg",
"descriptionSnippet": "Experience the breathtaking beauty of Madeira, Portugal in stunning 4K drone footage! Soar over lush green mountains, dramatic ...",
"isLive": false,
"isShort": false,
"badges": ["4K"],
"searchQuery": "drone footage",
"rank": 1
}

FAQ

Do I need a YouTube API key?

No. The scraper reads the same public search results a logged-out visitor sees, so there is no API quota and nothing to log in to.

Can I get more than the first page of results?

Yes. YouTube shows about 20 results per page. The scraper follows YouTube's continuation pages until it has Max results per query videos or YouTube has no more results.

Which filters are supported?

Upload date (last hour, today, this week, this month, this year), duration (under 4 minutes, 4 to 20 minutes, over 20 minutes) and the features Live, 4K, Subtitles/CC, 360 degrees and VR180. Filters can be combined. Each one was checked against live YouTube results before it was added.

Is sorting by view count exact?

No. YouTube's popularity order puts the most viewed videos first but is not strictly sorted by views. Sort the dataset by viewCount yourself if you need a strict order.

Are playlists and channels in the results included?

No. Only video results are returned. Playlists, mixes, channel cards, ads and shelves such as "People also watched" are skipped, and rank counts videos only.

What happens when a page fails?

Each results page is retried on a fresh proxy IP up to Max request retries times. Videos already collected for the query are kept. Queries that stop early or return nothing are listed in the FAILED_ITEMS record of the run's key-value store.

Known limits

  • YouTube decides how many results a query has; very narrow filters can return fewer videos than requested.
  • publishedDate is derived from relative text and is only filled for English text in seconds, minutes, hours or days.
  • Live streams have no view count or duration in search results, so both are null.
  • Sorting by upload date and by rating, plus the HD, HDR, 3D, Creative Commons, location, purchased and movie filters, are not offered because their effect could not be confirmed.
  • The same video is returned once per query even if YouTube repeats it on a later page.