YouTube Search Scraper - Keyword to Videos & Shorts avatar

YouTube Search Scraper - Keyword to Videos & Shorts

Pricing

from $0.80 / 1,000 videos

Go to Apify Store
YouTube Search Scraper - Keyword to Videos & Shorts

YouTube Search Scraper - Keyword to Videos & Shorts

Search YouTube by keyword and get videos and Shorts as rows: title, channel, URL, views, publish date, duration, search term. Sort by relevance or views, or filter by upload date. No login. $1 per 1,000 results; no results and blocked searches are free.

Pricing

from $0.80 / 1,000 videos

Rating

0.0

(0)

Developer

Yukai Lin

Yukai Lin

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

4

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

What does YouTube Search Scraper do?

Type keywords, get YouTube's results as rows: title, channel, URL, views, publish date, duration and the search term, for $1 per 1,000 results, with no start fee. Keywords with no results, searches YouTube refuses and duplicates are free.

  • 🔎 Several keywords in one run, in any language, each with its own cap (up to 500 results per keyword).
  • 🎬 Videos and Shorts in YouTube's order, with isShort on every row. Choose Videos only or Shorts only.
  • ↕️ Sort by relevance or view count, or filter by upload date: last hour, today, this week, this month or this year.
  • 🗓️ Date filter and monitoring: only videos after a date, or only results your earlier scheduled runs have not returned.
  • 💸 $1 per 1,000 results. No login, no cookies, no browser, no proxy needed.

Use cases

  • Content and SEO research: which titles and channels rank for your keywords, and how many views they have.
  • Trend and competitor watch: schedule a run with Upload date "This week" and monitoring on, and get only the new videos for a topic.
  • Creator discovery: find the channels that publish on a topic, then read them with YouTube Channel Scraper.
  • Data for AI agents and dashboards: one clean JSON row per video, ready for Sheets, BigQuery or an LLM.

How much does it cost?

It uses the same events and prices as YouTube Channel Scraper:

Its shared price table also contains the private variant's channel-email event. Email mode is disabled for this public search Actor on Apify, so it cannot charge that event; existing video and channel event prices are unchanged.

EventPriceWhen
Video$1.00 / 1,000 results ($0.001 each)one result video or Short from the results page
Video with full details$2.00 / 1,000 results ($0.002 each)charged instead of "Video" when "Full video details" is on and the video's page was read

Free: keywords with no results, searches YouTube refuses, a video already returned for another keyword in the same run, videos older than your date filter or upload date, results returned by an earlier run in monitoring mode, and invalid inputs. No start fee. Larger Apify plans get the usual volume discount (Silver 10%, Gold and above 20%).

Example: 5 keywords with 100 results each: 500 x $0.001 = $0.50.

You stay in control: maxResultsPerKeyword caps each keyword and maxResults the run. Before reading, the run logs its worst-case plan; when the next row could pass your maximum charge per run, it stops with SUMMARY.status LIMIT_REACHED.

How to use it

  1. Search keywords: one search per line, as you would type it in YouTube's search box.
  2. Results per keyword: 20 by default, up to 500.
  3. Optional: Sort by, Upload date, Results to return, Full video details, Only videos published after, monitoring.
  4. Click Start. The Search results view shows the key columns, All fields everything (CSV, Excel, JSON).

Input example

{
"keywords": ["n8n tutorial", "教學 n8n"],
"maxResultsPerKeyword": 20,
"searchSort": "relevance",
"searchUploadDate": "any",
"searchType": "all"
}

Output example

One row, shortened. The values show the shape of a row and are not from a live run:

{
"type": "video",
"detailLevel": "list",
"searchQuery": "n8n tutorial",
"position": 1,
"videoId": "a0000000001",
"url": "https://www.youtube.com/watch?v=a0000000001",
"title": "Example video title",
"channel": "Example Channel",
"publishedAt": "2026-10-11T08:00:00.000Z",
"publishedText": "3 weeks ago",
"duration": "10:47",
"durationSeconds": 647,
"viewCount": 1234,
"viewCountText": "1,234 views",
"isShort": false,
"contentType": "video",
"channelId": "UC0000000000000000000000",
"channelHandle": "@example",
"thumbnailUrl": "https://i.ytimg.com/vi/a0000000001/hqdefault.jpg",
"source": "search",
"input": "n8n tutorial",
"success": true,
"charged": true
}

A keyword without results:

{ "type": "search", "input": "zzz nothing", "searchQuery": "zzz nothing", "success": false, "charged": false, "errorType": "no_results", "error": "YouTube has no results for \"zzz nothing\" (not charged)" }

What the fields mean

  • searchQuery: the keyword that found this row. A video found by two keywords is returned once, under the first.
  • position: the result's rank for that keyword, counting videos and Shorts. Parallel reading can change the order of rows in the Dataset, so sort by this field.
  • channel: the channel's name (the same value as channelName).
  • publishedAt: an estimate from the age YouTube shows ("3 weeks ago") on detailLevel: "list" rows, the same value as publishedAtApprox. It is exact on Shorts and other results whose page was read, and with full details on.
  • duration: 10:47 or 1:02:03; durationSeconds is the same in seconds.
  • isShort: true for a YouTube Short (contentType: "short"). contentType can also be video or live.
  • viewCount: from the results page; viewCountIsApproximate is true when it comes from a rounded label like "5.1K views".
  • errorType on free rows: no_results, blocked (YouTube refused the page or a further result page, or sent it to its bot check; the error text says which), invalid_input, parse_error, http_error, network, and charge_limit or max_results for a keyword the run did not reach because it stopped at your maximum charge or maxResults.
  • SUMMARY (key-value store): search.perKeyword gives rows, Shorts and result pages read per keyword. noResults counts keywords with no results apart from failed: a run where every keyword had none ends as NO_RESULTS, not FAILED.

Next step: the spoken words

Send the url values to YouTube Transcript Scraper by TidyTools (tidytools/youtube-transcript) to get captions with timestamps for the videos you found. Full channel statistics come from YouTube Channel Scraper (tidytools/youtube-channel-scraper), comments from YouTube Comments Scraper (tidytools/youtube-comments).

Use it from code

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

Limitations

  • No "newest first" order. YouTube ignores that sort (tested 1 November 2026), so we do not offer it: use Upload date for recent videos. YouTube does not combine an upload date with the view-count sort either: the upload date is used and SUMMARY.inputNotes says so; sort the rows by viewCount yourself.
  • Not guaranteed to return every result. YouTube decides how many results a search has and may end the list early, so a keyword can return fewer rows than your cap (this is not an error).
  • Searches need Apify's network or your proxy. Our backend servers cannot return YouTube's search pages at the moment, so keep "Plain HTTP requests from" on Auto: with httpVia: "backend" every keyword gets a free row (usually parse_error). If YouTube refuses a further result page, you keep and pay for the rows so far and get one free blocked row for that keyword.
  • Many keywords at once can meet YouTube's bot check. A search or result page YouTube sends to its bot check (google.com/sorry) is asked again twice, a few seconds apart; the Actor never opens or solves the check. If it still refuses, that keyword gets a free blocked row and the rows so far are kept. Fewer "Pages in parallel" or a proxy help.
  • Three consecutive first-page search refusals pause the remaining keywords. Skipped keywords get free blocked rows. Network, HTTP and parsing errors get free rows with their own error types and reset the refusal count.
  • Dates and views on list rows are what YouTube shows. Turn on full details for exact values. A Short whose page cannot be read keeps its row at the list price, with an empty channel, date or duration.
  • Members-only, private and age-restricted videos are not read (no login).

Responsible use

The Actor reads only public pages, with an honest user agent (TidyToolsYouTube). It does not log in, use cookies, solve CAPTCHAs or bypass bot checks: a page YouTube refuses is reported, not forced. Note that youtube.com/robots.txt disallows search pages for crawlers: this Actor reads them anyway, so decide whether that fits your own policy. Follow YouTube's Terms of Service and the laws that apply to you.

FAQ

Why did I get fewer rows than my cap? YouTube's results for that keyword ended, some results were duplicates of an earlier keyword, older than your date filter or returned by an earlier monitoring run. SUMMARY.search.perKeyword shows the count per keyword; only delivered rows are charged.

Can I search and read channels in one run? This form is for keywords. urls from YouTube Channel Scraper is also accepted through the API.

What happens with a mistake in the input? A value that is not text, a search link without search words or more than 200 characters gives a free invalid_input row and the run ends normally. An unknown sort or type value falls back to the default and is listed in SUMMARY.inputNotes.

Does the Actor collect usage data? The Actor sends one anonymous usage counter per run (input type, item count range, outcome) to improve the tool; no URLs, content or account data.

Support

Open an issue in the Issues tab with your input and the run link. Issues are checked regularly.