YouTube Search Scraper: Videos, Shorts, Channels, Playlists avatar

YouTube Search Scraper: Videos, Shorts, Channels, Playlists

Pricing

from $0.50 / 1,000 search results

Go to Apify Store
YouTube Search Scraper: Videos, Shorts, Channels, Playlists

YouTube Search Scraper: Videos, Shorts, Channels, Playlists

Search YouTube by keyword: videos, Shorts, channels, playlists, movies with exact views, length, channel and upload age. All YouTube filters, real date ranges, many keywords per run, optional exact date, likes and comment count. No API key or login.

Pricing

from $0.50 / 1,000 search results

Rating

0.0

(0)

Developer

ZH Tech

ZH Tech

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

What does YouTube Search Scraper do?

YouTube Search Scraper searches YouTube for any keyword and returns the results as clean, structured data, in the same order as the YouTube search page. It handles videos, Shorts, channels, playlists and movies, supports every filter of the YouTube Filters dialog (upload date, type, duration, features, popularity) plus country and language, and can add exact publish dates, likes and comment counts for each video.

Type one or many keywords, pick the filters you would use on YouTube, click Start, and download the results as JSON, CSV, Excel or HTML, or read them through the API. No YouTube API key, no Google Cloud project, no daily quota and no login.

Why use this YouTube search scraper?

  • Many keywords in one run. Each keyword is searched separately and every row says which keyword found it and its rank on the results page.
  • Every result type. Videos, Shorts, channels (with subscribers), playlists (with video count, kind and first video) and movies (with genre, year, cast and offer), or everything mixed like the All tab. Each row has a type.
  • The filters that YouTube still honours. Upload date (including the hidden last hour option), type, duration (under 3, 3 to 20, over 20 minutes), 11 features (Live, 4K, HD, Subtitles/CC, Creative Commons, 360, VR180, 3D, HDR, Location, Purchased), Prioritize (relevance or popularity), country and interface language.
  • Date filters you can trust. YouTube sometimes mixes older videos into a filtered search. The strict date check removes them before they reach your dataset, and Published after / Published before give you a real date range. Removed rows are never charged.
  • Exact numbers. Exact view counts straight from the search page. Turn on full details for the exact publish timestamp, likes, comment count, full description, tags and category.
  • Shorts with real data. The search page shows only a title and rounded views for Shorts, so by default the scraper fills in their channel, exact publish date, length and likes.
  • Clean and honest output. Duplicates that YouTube repeats while you scroll are removed and never charged. A query YouTube silently autocorrected shows correctedQuery, and Search the exact words turns autocorrect off. Empty or failed queries get a free notice row instead of failing silently.
  • Fast. No browser. The default 20 results arrive in about one second of scraping; a full 400 to 500 result query takes about 10 seconds.

What data can you get?

Videos, Shorts and movies

FieldExample
typevideo, short or movie
rank, page, searchQuery1, 1, latte art
videoId, url, titleNcP_b4_gDQk, https://www.youtube.com/watch?v=NcP_b4_gDQk, How To Make Latte Art with Handheld Frother
descriptionSnippetThe description excerpt shown in the results
channelName, channelHandle, channelId, channelUrlCoffee to Art, @CoffeetoArt, UCBv4GXtp6oRW4Elo4Jy0g9w
channelIsVerified, channelIsArtist, channelAvatarUrlfalse, false, avatar URL
viewCount, viewCountText2542614, 2,542,614 views
publishedTimeText, publishedAtEstimate3 years ago, 2023-11-19
durationSeconds, duration121, 2:01
thumbnailUrl, thumbnailsLargest thumbnail and all sizes
badges, hasCaptions, is4K, isNew, isMembersOnly["4K", "CC"], true, true, false, false
isLive, watchingNow, isUpcoming, scheduledStartAt, wasLiveStreamLive and premiere status
shelfShelf title when YouTube grouped the result, for example Shorts

With Extra details (detailsMode): publishedAt (exact timestamp), publishDate, likeCount, commentCount, commentCountText, commentsDisabled, description (full), tags, hashtags, category, isFamilySafe, isUnlisted, liveStartedAt, liveEndedAt, detailsFetched.

Channels: channelId, title, channelHandle, url, subscriberCount, subscriberCountText, descriptionSnippet, channelIsVerified, channelIsArtist, thumbnailUrl.

Playlists: playlistId, playlistKind (playlist, mix, podcast, course, album), title, channelName, channelHandle, channelId, videoCount, videoCountText, firstVideoId, firstVideoTitle, thumbnailUrl.

Movies add movieGenre, movieYear, movieActors, movieDirector and movieOffer (for example Free with ads).

How to scrape YouTube search results

  1. Open the Actor and click Try for free (a free Apify account is enough).
  2. In Search queries, enter one keyword or phrase per line. You can also paste a YouTube search URL.
  3. Set Max results per query and the filters you want.
  4. Click Start. The status line shows each query's progress.
  5. Open the Output tab or export the dataset as JSON, CSV, Excel or HTML.

Input examples

The top 20 videos for a keyword (the default)

{
"searchQueries": ["latte art"],
"maxResultsPerQuery": 20
}

This month's most popular 3 to 20 minute reviews with likes and comment counts

{
"searchQueries": ["iphone 17 review", "pixel 11 review"],
"uploadDate": "month",
"duration": "3to20",
"sortBy": "popularity",
"detailsMode": "all",
"maxResultsPerQuery": 50
}

Find creators: channels for several niches, searched from the UK

{
"searchQueries": ["home espresso", "pour over coffee", "coffee roasting"],
"resultType": "channel",
"country": "GB",
"maxResultsPerQuery": 40
}

Everything published in September 2026 with at least 1,000 views

{
"searchQueries": ["latte art"],
"publishedAfter": "2026-09-01",
"publishedBefore": "2026-10-01",
"minViews": 1000,
"detailsMode": "all",
"maxResultsPerQuery": 100
}

Shorts from the last 3 days

{
"searchQueries": ["meal prep"],
"resultType": "shorts",
"publishedAfter": "3 days",
"maxResultsPerQuery": 100
}

Input reference

FieldDefaultWhat it does
searchQueriesKeywords, phrases, YouTube search URLs or /hashtag/ URLs. Required.
maxResultsPerQuery20Results per query in YouTube's order. 0 = all YouTube shows (usually 400 to 600).
maxResultsTotal0Stop the run after this many results in total. 0 = no limit.
resultTypevideovideo, shorts, channel, playlist, movie or all.
uploadDateanyany, hour, today, week, month, year.
durationanyany, under3, 3to20, over20.
featuresnoneAny of live, 4k, hd, subtitles, creativeCommons, 360, vr180, 3d, hdr, location, purchased.
sortByrelevancerelevance or popularity.
countryUSTwo letter country you search from.
languageenInterface language. Keep en for parsed relative dates.
exactQueryfalseSearch the exact words, without YouTube's autocorrect.
detailsModeshortsshorts fills in Shorts, all adds exact date, likes, comments, tags and full description to every video, none is search page data only.
publishedAfter, publishedBefore2026-01-31, an ISO timestamp, or a period like 7 days, 2 weeks, 6 months.
minViews0Skip videos with fewer views.
strictDateFiltertrueRemove results that are clearly outside the upload date filter.
deduplicateAcrossQueriesfalseReturn each video, channel or playlist only once per run.
includeErrorItemstrueFree notice rows for empty or failed queries.
proxyConfigurationApify ProxyDatacenter proxy is enough for search; detail lookups fall back to residential if blocked.

Output example

A video row (default mode, thumbnails shortened):

{
"type": "video",
"status": "success",
"videoId": "NcP_b4_gDQk",
"url": "https://www.youtube.com/watch?v=NcP_b4_gDQk",
"title": "How To Make Latte Art with Handheld Frother | 2 MINUTES VIDEO TUTORIAL",
"descriptionSnippet": "Here's some tips to make latte art with a handheld frother. Easy, fast and clean !! ...",
"channelName": "Coffee to Art",
"channelId": "UCBv4GXtp6oRW4Elo4Jy0g9w",
"channelHandle": "@CoffeetoArt",
"channelUrl": "https://www.youtube.com/channel/UCBv4GXtp6oRW4Elo4Jy0g9w",
"channelIsVerified": false,
"viewCount": 2542614,
"viewCountText": "2,542,614 views",
"publishedTimeText": "3 years ago",
"publishedAtEstimate": "2023-11-19",
"durationSeconds": 121,
"duration": "2:01",
"thumbnailUrl": "https://i.ytimg.com/vi/NcP_b4_gDQk/hq720.jpg?...",
"badges": [],
"isShort": false,
"isLive": false,
"hasCaptions": false,
"rank": 1,
"page": 1,
"searchQuery": "latte art",
"scrapedAt": "2026-11-18T04:28:55+00:00"
}

A Short with details filled in (shortened):

{
"type": "short",
"videoId": "0tN2XVfV_iY",
"url": "https://www.youtube.com/shorts/0tN2XVfV_iY",
"title": "Latte Art Tutorial: Mixing #shorts #latteart #tutorial #tips",
"channelName": "Newbie.Barista",
"channelHandle": "@Newbie.Barista",
"viewCount": 24023,
"publishedAt": "2026-11-16T01:45:00-08:00",
"durationSeconds": 24,
"likeCount": 363,
"commentCount": 2,
"category": "Howto & Style",
"hashtags": ["#shorts", "#latteart", "#tutorial"],
"shelf": "Shorts",
"rank": 3,
"searchQuery": "latte art course"
}

A channel and a playlist (shortened):

{
"type": "channel",
"channelId": "UCQj3jQmocVfIujft3LdlsKw",
"title": "latteartcity",
"channelHandle": "@latteartcity",
"url": "https://www.youtube.com/@latteartcity",
"subscriberCount": 1720000,
"subscriberCountText": "1.72M subscribers",
"channelIsVerified": true
}
{
"type": "playlist",
"playlistId": "PL225Xev4ehjMr-p3_I6--HMQJLtb3qzdl",
"playlistKind": "playlist",
"title": "Master of Milk - Latte Art Course",
"channelName": "Barista & Co",
"videoCount": 8,
"firstVideoTitle": "Master of Milk Latte Art Course Introduction | Learn from 6x Latte Art Champion Dhan Tamang"
}

The Output tab offers three views: Overview (all rows), Video details and Channels. The key-value store record RUN_SUMMARY lists, per query, the results returned, pages read, YouTube's estimated total, any autocorrection, rows filtered out, duplicates skipped and why the query stopped.

How much does it cost?

The Actor uses pay per event pricing, shown on the Pricing tab:

  • actor-start: a small fee once per run.
  • search-result: once per result row (video, Short, channel, playlist or movie) delivered to your dataset.

You are never charged for duplicates, for results removed by your filters (date range, strict date check, minimum views), or for notice rows about empty or failed queries. Extra details cost nothing extra per result; they only make the run slower. Set Max results per query or a Maximum cost per run in the run options and the Actor stops exactly there. The Apify free plan's monthly credit is enough to try it.

Tips and limitations

  • YouTube stops after a few hundred results per query (we measured 380 to 530 unique videos). For more, add related keywords or split one keyword by upload date or duration.
  • Sort by upload date is gone from YouTube. For the newest videos use Upload date (for example Today) or Published after, then sort by publishedAt or publishedAtEstimate.
  • Dates on the search page are relative ("3 weeks ago"). publishedAtEstimate is precise to the unit shown. For exact timestamps and exact date ranges, use detailsMode: "all".
  • Subscriber counts are rounded the way YouTube shows them publicly (1.72M becomes 1720000). Comment counts above 1,000 are rounded by YouTube too (9.5K).
  • Results depend on country and language, like on youtube.com. With a language other than English, relative dates stay in that language and publishedAtEstimate is empty; counts and everything else still work.
  • Shorts without details (detailsMode: "none") have only title, rounded views and thumbnail.
  • Only public data is collected. No login, no cookies, nothing behind a sign in.

Use it through the API, integrations and AI agents

Run it from the Apify API, the Python or JavaScript client, the CLI, or integrations such as Make, Zapier, n8n and Google Sheets. Synchronous example that returns the dataset items directly:

curl -X POST "https://api.apify.com/v2/acts/zhtech~youtube-search-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries": ["latte art"], "maxResultsPerQuery": 20}'

Python:

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("zhtech/youtube-search-scraper").call(run_input={
"searchQueries": ["latte art", "cold brew"],
"resultType": "video",
"uploadDate": "week",
"maxResultsPerQuery": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["rank"], item["title"], item["viewCount"])

LLM and MCP use: the Actor works as a YouTube search tool for AI agents through the Apify MCP server. Keep maxResultsPerQuery small (10 to 20) so an agent gets a predictable, compact list, and use detailsMode: "none" for the fastest answers.

Scheduled monitoring: schedule a run daily with uploadDate: "today" (or publishedAfter: "1 day") to track new videos for a topic, brand or competitor.

FAQ

Do I need a YouTube API key? No. The Actor reads the same data the YouTube website shows. There is no quota to manage.

Are the results in the same order as on YouTube? Yes. rank is the position among results of the requested type for that query, in YouTube's order. Gaps in rank mean results were removed by your filters.

Why did I get fewer results than I asked for? YouTube shows a limited number of results per search, and fewer with filters. RUN_SUMMARY tells you why each query stopped (end of results, your limit, or filters).

Why does a row show correctedQuery? YouTube decided your query was misspelled and searched for something else. Turn on Search the exact words to search exactly what you typed.

Do I pay for duplicates or filtered results? No. Only result rows that reach your dataset are charged.

Can I scrape comments, transcripts or a whole channel? This Actor focuses on search. For a channel's uploads, comments or transcripts, use the sibling ZH Tech YouTube Actors listed on our Store profile.

Is it legal to scrape YouTube search results? The Actor only collects data YouTube shows publicly to any visitor, without logging in. You are responsible for how you use the data and for complying with the laws that apply to you, such as copyright and data protection rules. If you are unsure, consult a lawyer.

Support

Found a problem or need a field? Open an issue on the Issues tab with the run link and we will look at it quickly.