YouTube Search Scraper - Views & Strict Date Filter, $0.09/1K avatar

YouTube Search Scraper - Views & Strict Date Filter, $0.09/1K

Pricing

from $0.05 / 1,000 videos

Go to Apify Store
YouTube Search Scraper - Views & Strict Date Filter, $0.09/1K

YouTube Search Scraper - Views & Strict Date Filter, $0.09/1K

YouTube search scraper and YouTube search API alternative: extract videos for any keyword with title, URL, channel, view count, duration, publish date, live and Shorts flags. Filter by upload date, duration, type and country. Fast InnerTube access, flat JSON, no login or YouTube API key.

Pricing

from $0.05 / 1,000 videos

Rating

0.0

(0)

Developer

CrawlKit

CrawlKit

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Search YouTube by keyword and get one flat JSON row per video result: exact view count, duration, channel, publish date, description snippet, badges, live and Shorts flags. Filters for upload date, duration, popularity, country and language. No API key or login.

What it does

  • Takes one or more search terms (searchQueries) and returns up to maxItems videos for each, in YouTube's order.
  • Reads YouTube's own search API (the one used by youtube.com), page by page, until maxItems or the end of YouTube's results.
  • Each row carries the exact view count (58,483,417 views becomes 58483417), the duration in seconds, the channel id, handle, URL and verified flag, the description snippet shown under the result, and the badges (LIVE, New, 4K, CC, 3 products...).
  • Applies YouTube's search filters: upload date, duration, popularity ranking, videos or Shorts, country, interface language.
  • Removes duplicate videos within a query and returns the rank of each video (position).
  • Fails with an explicit message (blocked, or no results for these filters) instead of returning an empty dataset.

Input

ParameterTypeRequiredDefaultDescription
searchQueriesarray of stringsYes—Search terms, one per line (e.g. lofi hip hop). A single string is also accepted. Duplicates are removed.
maxItemsintegerNo20Maximum videos per query (1 to 5,000).
sortBystringNorelevancerelevance (YouTube's default ranking) or popularity (most viewed first).
uploadDatestringNoanyany, today, week, month or year.
durationstringNoanyany, short (under 3 min), medium (3 to 20 min), long (over 20 min).
typestringNovideovideo (regular videos and live streams) or shorts.
countrystringNoUSTwo-letter country code whose results are returned (US, GB, DE, IN...).
languagestringNoEnglishYouTube interface language (fr, es, de, pt-BR...). Results are ranked for speakers of that language and texts come back in it. Exact view counts are still parsed; see Limitations for what changes.

Example:

{
"searchQueries": ["lofi hip hop", "python tutorial"],
"maxItems": 50,
"sortBy": "popularity",
"uploadDate": "month",
"duration": "long"
}

Output

One dataset item per video (real item from a run on 2026-11-02):

{
"videoId": "CLeZyIID9Bo",
"url": "https://www.youtube.com/watch?v=CLeZyIID9Bo",
"title": "Chill Lofi Mix [chill lo-fi hip hop beats]",
"descriptionSnippet": "YouTube Playlists: http://listen.settle.fm/youtube Listen on Spotify, Apple Music & more: https://listen.settle.fm/playlists Tracklist ...",
"channelName": "Settle",
"channelId": "UCkKT4qf-TcPFOmpqhTawrGA",
"channelHandle": "@settlefm",
"channelUrl": "https://www.youtube.com/@settlefm",
"channelVerified": false,
"channelIsArtist": false,
"channelAvatarUrl": "https://yt3.ggpht.com/89HydDCrVDqoTZbqoXQHr7HkQjDnvDrkkUyBFh_wP3dWm0RYHj6QtlDOvV9dcZgYEJFareVIBg=s68-c-k-c0x00ffffff-no-rj",
"viewCount": 35171113,
"viewCountText": "35,171,113 views",
"liveViewerCount": null,
"publishedText": "4 years ago",
"publishedAt": "2022-11-03T20:21:55+00:00",
"durationSeconds": 6292,
"durationText": "1:44:52",
"thumbnailUrl": "https://i.ytimg.com/vi/CLeZyIID9Bo/hq720.jpg?sqp=-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhDIGQoZTAP&rs=AOn4CLCljfsoUy4QvdaH9IydXKSjwkcbgg",
"isLive": false,
"isUpcoming": false,
"isShort": false,
"badges": ["4K"],
"position": 8,
"query": "lofi hip hop",
"scrapedAt": "2026-11-02T20:21:55+00:00"
}

Field notes:

  • viewCount is null for streams that are live now; their current audience is in liveViewerCount.
  • publishedAt is computed from the relative text YouTube shows (4 years ago) and the scrape time, counting a month as 30 days and a year as 365 days: it is approximate. publishedText keeps the original text.
  • channelName is the byline shown by YouTube; for a video published by several channels it reads A and B, and channelId is the first one.
  • descriptionSnippet is the excerpt YouTube shows under the result, not the full description.

Pricing

Pay-per-event, no start fee: $0.09 per 1,000 videos (event VIDEO) on the Apify Free plan, lower on paid plans. You only pay for results pushed to the dataset.

Apify planPrice per 1,000 videos
Free$0.09
Starter$0.08
Scale$0.07
Business$0.05

Set a maximum cost per run in the run options: the Actor stops cleanly when it is reached.

Limitations

  • YouTube no longer offers a sort by upload date (only Relevance and Popularity). To get recent videos, use uploadDate.
  • YouTube's upload date filter lets some older videos through; the Actor drops results whose displayed age is older than the chosen period. Streams that are live now have no date and are kept.
  • With type: shorts, YouTube's search shows only the title, a rounded view count and the thumbnail: channel, date, duration and description are null.
  • YouTube search returns a limited number of results per query: on 2026-11-02, 325 videos for lofi hip hop and 400 for how to tie a tie before YouTube stopped returning new ones. A higher maxItems returns what YouTube provides; split broad topics into several queries to get more.
  • Exact publish dates, like counts, comment counts and full descriptions are not part of search results.
  • Texts are read in English by default; country changes which results are returned, not the language of the dates.
  • With a language other than English (for example fr): exact viewCount is still parsed from the localized text (1 330 vues gives 1330), but publishedAt is null (publishedText keeps the localized text such as il y a 13 jours), the Actor's extra check on uploadDate is skipped (YouTube's own filter still applies), and the rounded view counts of Shorts cards and texts such as Aucune vue give viewCount: null.

Feedback

Found a bug or need a field? Open an issue on the Issues tab; if the Actor helps you, a review on the Reviews tab helps others find it.