YouTube Search Scraper avatar

YouTube Search Scraper

Pricing

from $2.80 / 1,000 result items

Go to Apify Store
YouTube Search Scraper

YouTube Search Scraper

YouTube search scraper with no API key and no login: videos, Shorts, channels or playlists for any keyword, with views, duration, upload date, channel and position. Filters for type, upload date, duration and popularity. Monitor mode alerts on new videos for a saved search.

Pricing

from $2.80 / 1,000 result items

Rating

0.0

(0)

Developer

Viktor Dubnytskiy

Viktor Dubnytskiy

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

Search YouTube by keyword and get one flat row per result: video id, URL, title, channel, views, duration, upload date, live and Shorts flags, thumbnail and position in the results. No API key, no quota, no login. The actor asks YouTube search the same way a logged-out visitor does, with YouTube's own filters for type, upload date, duration and popularity.

Try it: the prefilled example returns 20 rows in about 5 seconds and costs about $0.07. Results cost $3.50 per 1,000.

What you get

Real rows from the example dataset (the prefilled run, queries: ["python tutorial"], 20 rows):

positiontitlechannelviewsdurationpublished
1Python Full Course for free 🐍Bro Code13,252,03012:00:002 years ago
2Python for Beginners - Learn Coding with Python in 1 HourProgramming with Mosh25,801,8171:00:066 years ago
3Learn Python in Less than 10 Minutes for Beginners (Fast & Easy)Indently1,892,30810:305 years ago
4Python Tutorial for Beginners - Learn the basics in 20 MinTech With Tim89,45619:393 months ago
5Python Full Course for BeginnersProgramming with Mosh49,502,0736:14:077 years ago

Full row: id, url, resultType (video, short, channel, playlist), videoId, title, channelName, channelId, channelUrl, channelHandle, publishedText, publishedAt, viewCountText, viewCount, durationSeconds, isLive, isShort, thumbnailUrl, descriptionSnippet, badges, playlistId, videoCount, subscriberCount, query, position, scrapedAt.

Rows describe public videos and the channel that uploaded them. Nothing about viewers or commenters is collected.

Use cases

  • Keyword research for creators and marketers. See what ranks for a phrase, who made it, how many views it has and how long it is, for many phrases in one run.
  • Brand and competitor watch. Save a search for your brand or product name in monitor mode and get only the new videos on every run, by webhook or Telegram.
  • Lead lists of channels in a niche. Switch the type to Channels and get channel names, handles and subscriber counts for a topic.
  • Fresh content feeds. Combine a query with Upload date "Today" or "Last hour" for a live feed of new uploads.

Try it in 10 seconds

One-off search. Press Start: the prefilled input searches python tutorial and returns the top 20 videos.

Monitor mode. Save a task with this input and put it on a schedule (Apify, Schedules, e.g. daily):

{
"mode": "monitor",
"monitorStateId": "brand-watch",
"queries": ["your brand name"],
"uploadDate": "week",
"webhookUrl": "https://your-endpoint.example.com/hook"
}

Each monitor run charges one monitor-check event and returns only videos that were not in the previous run's results, each billed as one change event. Monitor mode compares video ids only, so a view count moving on a known video does not count as a change.

Input

FieldMeaningDefault
queriesSearch phrases, one per line["python tutorial"]
typevideo, shorts, channel or playlistvideo
uploadDateany, hour, today, week, month, yearany
durationany, short (under 3 min), medium (3 to 20 min), long (over 20 min)any
sortByrelevance or views (YouTube's "Popularity")relevance
maxItemsPerQueryRows per query, 1 to 100050 (prefilled 20)
maxItemsRows per run in total200 (prefilled 20)
strictQueryMatchDrop YouTube's filler rows for a query it found nothing fortrue
tier, proxyCountryProxy tier (auto climbs only on a bot check) and regionauto, US
mode, monitorStateId, webhookUrl, telegramBotToken, telegramChatIdMonitor mode and alertsscrape

How it works

  1. Each query is sent to YouTube search with the filters you picked, encoded exactly as YouTube's own filter menu encodes them.
  2. Further pages follow the results list's own "load more" continuation until the list ends, every result was already seen, or maxItemsPerQuery is reached.
  3. If YouTube answers with a bot check, the request is retried on a stronger proxy tier. A run where every request was refused ends as blocked, never as an empty "no results".

Pricing

EventPrice
result$0.0035 per row ($3.50 per 1,000)
monitor-check$0.005 per monitor run
change$0.0035 per new video in monitor mode

Store discounts: SILVER plan -10%, GOLD and above -20% on every event.

You pay only for rows that are pushed. Filler rows dropped by strictQueryMatch are never pushed and never charged. Platform usage is billed by Apify on top. Most runs need no proxy at all.

Limits

  • viewCount is exact on video rows. On Shorts grid rows YouTube shows a rounded figure ("1.7M views") and no channel, so those fields are rounded or empty.
  • publishedAt is computed from YouTube's relative label ("13 hours ago") and is approximate. Labels in months or years are too coarse, so publishedAt stays empty and publishedText keeps the label.
  • Live streams show "N watching" instead of a view count, so viewCount is empty and isLive is true.
  • YouTube removed sorting by upload date and by rating from its search. Use the Upload date filter for fresh videos.
  • For a typo or a nonsense query YouTube searches a "corrected" query and pads the list with unrelated videos. With strictQueryMatch on (the default) only rows containing a word of your query are kept, which can mean zero rows; the query is then listed under skippedQueries in the run's ADAPTER_STATS record.

FAQ

Does it need a YouTube API key or account? No. The actor never asks for a YouTube login, cookies or an API key. The only token field is the optional Telegram bot token for monitor-mode alerts.

Why did a run return nothing? The RUN_SUMMARY record in the run's key-value store has emptyReason. A bot check is reported as blocked, an empty search as no_matches.

Changelog

  • 0.1: initial release. Keyword search for videos, Shorts, channels and playlists with YouTube's type, upload date, duration and popularity filters, continuation paging, filler filter (strictQueryMatch), proxy ladder on a bot check, monitor mode for new videos.

If this actor saved you time, a short review on its Store page helps other people find it. Missing a field? Open an issue on the Issues tab.