YouTube Search Results Scraper: Filters, Views, Duration avatar

YouTube Search Results Scraper: Filters, Views, Duration

Pricing

from $0.40 / 1,000 search results

Go to Apify Store
YouTube Search Results Scraper: Filters, Views, Duration

YouTube Search Results Scraper: Filters, Views, Duration

Search YouTube by keyword and get one row per result: videos, Shorts, live streams, channels or playlists, with views, duration, date as shown and channel. Filters for upload date, type, duration, 4K, subtitles and popularity. No login, no API key.

Pricing

from $0.40 / 1,000 search results

Rating

0.0

(0)

Developer

SKILLMERC

SKILLMERC

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Categories

Features

Limited permissions

Share

For marketers, researchers and creators who need YouTube search results in a spreadsheet: give keywords, get one row per result (video, Short, live stream, channel or playlist) with views, duration, date as shown and channel, using YouTube's own search filters.

What it does

  • Searches YouTube for each of your keywords, logged out, the way a visitor in the US sees the results.
  • One row per result, in YouTube's order, with its position on the results list.
  • Uses YouTube's own filters: result type, upload date, duration, popularity and features such as 4K or subtitles.
  • Pages through the results until it has as many as you asked for, or YouTube has no more.
  • Skips ads and the shelves YouTube mixes in ("Shorts", "People also watched"). They are never charged.
  • No login, no YouTube API key, no browser.

It does not fetch transcripts, comments or the video files. To list one channel's uploads, our YouTube Channel Videos Scraper actor on Apify does that; for transcripts, our "YouTube Transcript Scraper: Subtitles & Captions" actor.

Input

FieldWhat it means
searchQueriesKeywords, one per line, as you would type them into YouTube. Each query is searched on its own.
maxResultsPerQueryMost results per query. Default 50. 0 means as many as YouTube shows (capped at 5,000). YouTube often stops after a few hundred.
typevideo (default), short, live (live now), channel or playlist.
uploadDateany (default), hour, today, week, month, year.
durationany (default), under3 (under 3 minutes), 3to20, over20.
sortByrelevance (default) or popularity.
featuresOptional: 4k, hd, subtitles, creativeCommons. A video must have all you pick.

Example:

{
"searchQueries": ["home espresso", "rust programming"],
"maxResultsPerQuery": 100,
"type": "video",
"uploadDate": "month",
"duration": "3to20",
"sortBy": "relevance"
}

Filters

All filters are YouTube's own: the actor sends the same filter code YouTube's filter menu sends, so you get what YouTube would show you. We checked each one against live searches on 20 Nov 2026:

  • Type: video, Shorts, live now, channel and playlist each return only that kind of result. video includes past live streams and Shorts that YouTube lists as videos (they come with type set to live or short).
  • Upload date: last hour, today, this week, this month and this year. "Last hour" is no longer in YouTube's menu, but YouTube still honours it.
  • Duration: under 3 minutes, 3 to 20 minutes, over 20 minutes. These are YouTube's current lengths (it used to offer under 4 and 4 to 20 minutes).
  • Sort: relevance or popularity. YouTube's popularity order is its own and is not strictly by view count. YouTube no longer offers sorting by upload date or rating, so neither is offered here; use the Upload date filter for fresh results.
  • Features: 4K, HD, subtitles/CC and Creative Commons change the results the way YouTube's menu does. We do not check each video's licence or subtitles ourselves.
  • Duration and features apply to videos. YouTube may ignore them for channel and playlist results; the run says so in its warnings.

Output

One row per result in the default dataset. A video:

{
"query": "rust programming",
"position": 1,
"type": "video",
"videoId": "flS3cmjcows",
"channelId": "UCSp-OaMpsO8K0KkOqyBl7_w",
"channelHandle": "@letsgetrusty",
"playlistId": null,
"url": "https://www.youtube.com/watch?v=flS3cmjcows",
"title": "How to Learn Rust in 2027 (Step by Step Roadmap)",
"channelTitle": "Let's Get Rusty",
"publishedText": "2 days ago",
"publishedAt": "2026-11-18T03:00:00.000Z",
"publishedAtApproximate": true,
"durationText": "5:51",
"durationSeconds": 351,
"viewCount": 30405,
"viewCountApproximate": false,
"viewCountText": "30,405 views",
"watchingCount": null,
"subscriberCountText": null,
"subscriberCount": null,
"videoCountText": null,
"descriptionSnippet": "Join the Rust Live Accelerator waitlist: ...",
"thumbnailUrl": "https://i.ytimg.com/vi/flS3cmjcows/hq720.jpg",
"badges": ["New", "4K"],
"isLive": false,
"isUpcoming": false,
"isShort": false,
"upcomingStartTime": null,
"scrapedAt": "2026-11-20T15:00:00.000Z"
}
  • type is video, short, live, channel or playlist. Every row has the same fields; the ones a result card does not show are null.
  • Videos: views are exact when YouTube shows the full number ("30,405 views"). Rounded numbers ("1.1M views", shown on Shorts) are converted and flagged viewCountApproximate: true.
  • Live now: isLive: true, watchingCount as shown, no view count or date. Upcoming streams have isUpcoming: true and upcomingStartTime.
  • Shorts: YouTube's Shorts tiles show only a title and views, so Shorts rows have no channel, date or duration.
  • Channels: title, channelHandle, subscriberCountText and subscriberCount as shown, descriptionSnippet (the short text on the card), avatar in thumbnailUrl.
  • Playlists: playlistId, title, the channel, videoCountText ("7 videos") and the cover image.
  • descriptionSnippet is the text YouTube shows under the result, not the full description.
  • badges are the labels on the card, such as "New", "4K", "CC" or "LIVE".
  • The OUTPUT record in the key-value store holds the run summary: counts per query, ads and shelves skipped, failures and warnings.

How dates work

YouTube search shows relative dates such as "2 days ago". We never pass those off as exact.

  • publishedText holds the text as YouTube showed it.
  • publishedAt is the middle of the window the text allows, always flagged publishedAtApproximate: true. "2 days ago" means between 2 and 3 days ago; "3 years ago" can be a year off.
  • Live streams that are on air now have no date.

Pricing

Pay per event: you pay for each result row delivered.

Apify planPrice per 1,000 results
FreeUSD 0.60
BronzeUSD 0.50
SilverUSD 0.45
Gold and aboveUSD 0.40

Plus USD 0.00005 per run start. Ads, shelves, duplicates and failed queries are free. The run stops when it reaches the maximum cost you set.

When something fails

A query that is empty, finds no results with your filters, or that YouTube refuses goes into the free named dataset youtube-search-failed and the OUTPUT record, with the reason. Nothing is charged for it and the run still finishes as succeeded.

ReasonWhat it means
empty_queryThe query line was empty.
no_resultsYouTube found nothing for this query with these filters.
blockedYouTube refused the request even through a fresh IP. Try again later.
errorSomething else went wrong; the message says what.

If YouTube corrects the spelling of a query and shows results for another phrase, the results are delivered and the OUTPUT warnings name the phrase YouTube used. The same query given twice is searched once. The same result appearing twice in one query's pages is delivered once.

Speed and limits

  • One request at a time, at least 300 ms apart, with backoff when YouTube asks us to slow down. A page holds about 20 results, so 1,000 results take about 50 requests.
  • We read YouTube in English from the US. Results, counts and texts follow that.
  • If YouTube refuses Apify's own IP, the run switches to Apify's datacenter proxy. It never uses residential proxies or logs in.
  • Private, members-only and age-restricted content is not opened. The actor only reads the search results page.

This actor reads only YouTube's public search results, which anyone can see without an account. It does not open videos, download them, collect comments or look for emails or phone numbers. Titles, channel names, handles and description snippets are copied as YouTube shows them; channel names and handles can be personal data. You need a lawful basis to collect and use them (for example under GDPR or POPIA), and you are responsible for how you use the results. Respect YouTube's terms and the creators' rights.

This actor is not made, endorsed or sponsored by YouTube or Google.