YouTube Search Scraper
Pricing
from $0.50 / 1,000 video (search results)
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Features
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_dateand 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
| Field | Description |
|---|---|
title, url, videoId | The video, with a ready-to-open link (Shorts get a /shorts/ link) |
channelName, channelHandle, channelId, channelUrl | Who published it |
viewCount, viewCountText | Views as a number and as YouTube shows them |
publishedText, publishedAtApprox | Upload time as YouTube shows it, plus an approximate date |
durationSeconds, durationText, isShort, isLive | Length and format |
thumbnailUrl | Preview image |
position, searchQuery | Where the video ranked for which keyword |
likeCount, commentCount, publishDate, category, description, keywords | Full details mode only |
status, errorCode, errorMessage | ok, or a free error row |
A RUN_SUMMARY record in the key-value store has the counts, the events charged and HTTP stats.
How to scrape YouTube search
- Add one or more search keywords.
- Set Max results per keyword (default 50).
- Optional: set Type to Shorts, sort and filter by upload date or duration, pick a country, or turn on Full video details.
- 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 input | Here |
|---|---|
search_keywords, searchKeywords, searchQuery, keywords, query | Same as searchQueries |
max_results, maxResults, maxItems, limit | Same 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, fetchVideoDetails | Same as scrapeVideoDetails |
country, regionCode, gl | Same (country) |
A youtube.com/results?search_query= URL | Treated 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:
| Event | Free | Starter (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 ApifyClientclient = 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.
- YouTube Transcript Scraper
- YouTube Scraper
- YouTube Shorts Scraper
- YouTube Channel Scraper
- YouTube Comments Scraper
- Keyword Autocomplete Scraper
- Google Trends Scraper
- Amazon Product Scraper
- App Store & Google Play Reviews Scraper
- Telegram Channel Scraper
- ATS Jobs Scraper
- Google Jobs Scraper
- US Federal Contracts Scraper
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.