YouTube Search Scraper - Views & Strict Date Filter, $0.09/1K
Pricing
from $0.05 / 1,000 videos
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
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 tomaxItemsvideos for each, in YouTube's order. - Reads YouTube's own search API (the one used by youtube.com), page by page, until
maxItemsor the end of YouTube's results. - Each row carries the exact view count (
58,483,417 viewsbecomes58483417), 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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
searchQueries | array of strings | Yes | — | Search terms, one per line (e.g. lofi hip hop). A single string is also accepted. Duplicates are removed. |
maxItems | integer | No | 20 | Maximum videos per query (1 to 5,000). |
sortBy | string | No | relevance | relevance (YouTube's default ranking) or popularity (most viewed first). |
uploadDate | string | No | any | any, today, week, month or year. |
duration | string | No | any | any, short (under 3 min), medium (3 to 20 min), long (over 20 min). |
type | string | No | video | video (regular videos and live streams) or shorts. |
country | string | No | US | Two-letter country code whose results are returned (US, GB, DE, IN...). |
language | string | No | English | YouTube 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:
viewCountisnullfor streams that are live now; their current audience is inliveViewerCount.publishedAtis 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.publishedTextkeeps the original text.channelNameis the byline shown by YouTube; for a video published by several channels it readsA and B, andchannelIdis the first one.descriptionSnippetis 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 plan | Price 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 arenull. - YouTube search returns a limited number of results per query: on 2026-11-02, 325 videos for
lofi hip hopand 400 forhow to tie a tiebefore YouTube stopped returning new ones. A highermaxItemsreturns 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;
countrychanges which results are returned, not the language of the dates. - With a
languageother than English (for examplefr): exactviewCountis still parsed from the localized text (1 330 vuesgives 1330), butpublishedAtisnull(publishedTextkeeps the localized text such asil y a 13 jours), the Actor's extra check onuploadDateis skipped (YouTube's own filter still applies), and the rounded view counts of Shorts cards and texts such asAucune vuegiveviewCount: 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.
Related Actors
- YouTube Channel Scraper - Videos, Shorts & Stats, $0.91/1K — YouTube channel scraper and YouTube Data API alternative: list a channel's videos, Shorts or live streams with exact view counts, duration and publish date, plus subscribers, video count, total views and country.
- YouTube Comments Scraper - Replies, Likes, Dates, $0.36/1K — YouTube comments scraper and API alternative: extract comments and replies from YouTube videos and Shorts with text, like and reply counts, pinned and hearted flags and date.
- YouTube Transcript Scraper - Bulk, Any Language, $1.10/1K — Scrape YouTube video transcripts (captions and auto-generated subtitles) with timestamps, video metadata and optional comments.