YouTube Search Scraper avatar

YouTube Search Scraper

Pricing

from $0.50 / 1,000 video (search results)

Go to Apify Store
YouTube Search Scraper

YouTube Search Scraper

YouTube search scraper: videos or Shorts for your keywords as JSON, with no Data API key or quota. Title, URL, views, publish date, duration, channel and thumbnail. Filter by sort, upload date and type. Pay per video. ScrapeMole is the maker.

Pricing

from $0.50 / 1,000 video (search results)

Rating

0.0

(0)

Developer

ScrapeMole

ScrapeMole

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

YouTube Search Scraper: videos and Shorts by keyword, as JSON

Need YouTube search results as structured data, with no Data API key and no quota? ScrapeMole takes one or more keywords and returns the videos or Shorts YouTube shows for that search, in result order: title, URL, views, publish date, duration, channel and thumbnail. Filter by sort, upload date and type (videos or Shorts). ScrapeMole is the maker of this Actor.

  • Keyword in, results out: one clean JSON row per video or Short, with the search term and position.
  • The same filters as YouTube: sort by relevance, upload date, view count or rating; last hour through this year; videos or Shorts only.
  • No API key, no quota. Works from servers and agents. Failed items and duplicates are never charged.
  • Switch without rewriting input: accepts search_keywords, max_results, sort_by, upload_date and other common field names (see below).

You only pay for videos delivered. Error rows are free.

One-command quickstart (for agents)

Set APIFY_TOKEN to your Apify API token. This one request runs the Actor and returns the rows.

curl -sS -X POST \
"https://api.apify.com/v2/acts/scrapemole~youtube-search-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN&memory=256&timeout=180" \
-H "Content-Type: application/json" \
-d '{"searchQueries":["espresso machine review"],"maxResultsPerSource":10}'

Expect a JSON array of objects like this (titles and views change; shape verified against live YouTube search):

[
{
"status": "ok",
"sourceType": "search",
"searchQuery": "espresso machine review",
"position": 1,
"videoId": "mAYbmcqPphc",
"url": "https://www.youtube.com/watch?v=mAYbmcqPphc",
"title": "The Fellow ES1 Espresso Machine Review",
"channelName": "James Hoffmann",
"channelHandle": "@jameshoffmann",
"channelId": "UCDaoN6x8FhYkIaEdsLcfmCQ",
"channelUrl": "https://www.youtube.com/channel/UCDaoN6x8FhYkIaEdsLcfmCQ",
"viewCount": 804647,
"viewCountText": "804K views",
"publishedText": "3 months ago",
"publishedAtApprox": "2026-08-13",
"durationSeconds": 2056,
"durationText": "34:16",
"isShort": false,
"thumbnailUrl": "https://i.ytimg.com/vi/mAYbmcqPphc/hqdefault.jpg"
}
]

For Shorts only, add "searchType": "shorts" (or "type": "shorts"). Each Short gets a /shorts/ URL.

What you get

FieldDescription
title, url, videoIdThe video, with a ready-to-open link (Shorts get a /shorts/ link)
channelName, channelHandle, channelId, channelUrlWho published it
viewCount, viewCountTextViews as a number and as YouTube shows them
publishedText, publishedAtApproxUpload time as YouTube shows it, plus an approximate date
durationSeconds, durationText, isShort, isLiveLength and format
thumbnailUrlPreview image
position, searchQueryWhere the video ranked for which keyword
likeCount, commentCount, publishDate, category, description, keywordsFull details mode only
status, errorCode, errorMessageok, or a free error row

A RUN_SUMMARY record in the key-value store has the counts, the events charged and HTTP stats.

  1. Add one or more search keywords.
  2. Set Max results per keyword (default 50).
  3. Optional: set Type to Shorts, sort and filter by upload date or duration, pick a country, or turn on Full video details.
  4. Click Start and download JSON, CSV or Excel, or use the API.

Input example

{
"searchQueries": ["espresso machine review", "best budget espresso machine"],
"maxResultsPerSource": 50,
"sortBy": "relevance",
"uploadDate": "year",
"searchType": "video"
}

Switching from another YouTube search Actor

Already calling delicious_zebu/youtube-video-scraper-by-keyword, streamers/youtube-scraper or a similar search Actor from code, a schedule or Make/Zapier? Change the Actor ID and keep your input JSON: this Actor accepts the same field names.

Their inputHere
search_keywords, searchKeywords, searchQuery, keywords, querySame as searchQueries
max_results, maxResults, maxItems, limitSame as maxResultsPerSource
type / searchType (videos, shorts)Same (searchType: video or shorts)
sort_by / sortingOrder (relevance, popularity, views, date, rating)Same values (sortBy; popularity and views map to view count, date to upload date)
upload_date / dateFilter (today, this_week, week, this_month, month, this_year, year, hour)Same values (uploadDate)
duration / lengthFilter (under_3, under4, 3_to_20, between420, over_20, plus20)Same values (duration: short / medium / long)
fetch_video_details, fetchVideoDetailsSame as scrapeVideoDetails
country, regionCode, glSame (country)
A youtube.com/results?search_query= URLTreated as a keyword
Transcripts, subtitles, AI summaries, feature flags (4k, hd, …)Ignored; use the ScrapeMole YouTube Transcript Scraper for transcripts

Need channel uploads, playlists or a single video by URL? Use the YouTube Scraper. For every Short from a channel or hashtag, use the YouTube Shorts Scraper.

Pricing

Pay per event, no start fee beyond Apify's standard $0.00005 run start:

EventFreeStarter (Bronze)Scale (Silver)Business (Gold)
video: one search result$0.001$0.0008$0.0006$0.0005
video-details: search result with full details$0.003$0.002$0.0016$0.0012

1,000 videos cost $1.00 on the Free plan, under the $1.20 charged by the leading keyword-search Actor. Errors and duplicates are free. Set a maximum cost per run and the Actor stops cleanly at that budget.

Use cases

  • YouTube keyword research: what ranks for a phrase, who publishes it, and how it performs (views, date, duration).
  • Competitor and trend monitoring: daily or weekly searches for your terms, newest or most-viewed first.
  • Shorts discovery: the same keywords, with Type set to Shorts, for short-form ideas and creators.
  • Datasets for AI agents: titles, channels, dates and thumbnails as flat JSON, ready for a prompt or a spreadsheet. Pair with the ScrapeMole YouTube Transcript Scraper for the spoken text.

API, Python and AI agents

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("scrapemole/youtube-search-scraper").call(run_input={
"searchQueries": ["espresso machine review"],
"maxResultsPerSource": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["title"], item.get("viewCount"), item.get("url"))

You can also run it from n8n, Make, Zapier, or the Apify MCP server. Agents without an Apify account can pay per use via Apify AGI.

The same YouTube search data is also sold per call over x402 (USDC on Base or Solana, no account): YouTube search.

FAQ

Do I need a YouTube API key? No. There is no Data API quota to manage.

Is this personal data? No. The Actor returns public video metadata (title, URL, views, date, duration, channel, thumbnail). It does not collect viewer identities or private accounts.

Can I get Shorts only? Yes. Set searchType to shorts (or type to shorts). The Actor uses YouTube's own Shorts search filter, not "videos that happen to be short". Shorts cards on the search page often omit channel, date and duration; turn on Full video details to fill those fields.

Why are some dates approximate? Search results show relative times ("3 days ago"). Turn on Full video details for an exact publishDate (charged as video-details).

How is this different from the ScrapeMole YouTube Scraper? This listing is search-only: keyword in, videos or Shorts out. The YouTube Scraper also does channels, playlists and individual video URLs.

Do I need a paid proxy? No. Apify's datacenter proxy is enough. This Actor does not switch to paid residential IPs.

More from ScrapeMole

ScrapeMole builds focused, reliable scrapers for public data: pay per result, no start fees, clear error rows that are never charged, and a RUN_SUMMARY on every run.

Building an AI agent with its own wallet? The YouTube and Google Trends data is also sold per call over x402 (USDC on Base, no account): see scrapemole.com or all ScrapeMole scrapers. Questions or a missing field? Open an issue on this Actor. ScrapeMole is the maker of this Actor.