YouTube Search Scraper (videos, Shorts, channels, details) avatar

YouTube Search Scraper (videos, Shorts, channels, details)

Pricing

from $0.10 / 1,000 search result rows

Go to Apify Store
YouTube Search Scraper (videos, Shorts, channels, details)

YouTube Search Scraper (videos, Shorts, channels, details)

Scrape YouTube search results by keyword with YouTube's own filters (type, upload date, duration, features, sort): title, exact view count, duration, channel, thumbnails, rank. Optional video details: publish date, likes, comments, full description. No login. Failed searches are free.

Pricing

from $0.10 / 1,000 search result rows

Rating

0.0

(0)

Developer

Adam Rudd

Adam Rudd

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Features

Limited permissions

Share

YouTube Search Scraper: search results with YouTube's own filters + optional video details

Scrape YouTube search results by keyword: videos, Shorts, channels, playlists or movies, using the same filters as YouTube's own search page. Add video details if you need them: publish date, likes, comment count, full description, hashtags, links and the channel's subscribers. No login, no cookies, no YouTube Data API key, so no API quota.

  • Input: search terms, YouTube search-results links (youtube.com/results?search_query=..., filters in the link are kept), or video links and ids (watch?v=, youtu.be/, /shorts/, /live/) for one details row per video.
  • Filters (YouTube's own): type (videos, Shorts, channels, playlists, movies, or all), prioritize (relevance or popularity), upload date (last hour, today, this week, this month, this year), duration (under 3 minutes, 3-20 minutes, over 20 minutes) and features (Live, 4K, HD, Subtitles/CC, Creative Commons, 360°, VR180, 3D, HDR, Location, Purchased). There is also an optional country (gl).
  • Search fields: id, url, title, viewCount (exact for regular videos; flagged by viewCountIsApprox when YouTube rounds it), duration (HH:MM:SS), durationSeconds, publishedTimeText (for example 2 years ago), type, isShort, isLive, thumbnailUrl, thumbnails, channelName, channelId, channelUrl, channelHandle, channelAvatarUrl, badges, query, rank (position in the results), fromYTUrl.
  • Video details (optional): date (YYYY-MM-DD), likes, commentsCount, commentsTurnedOff, text (full description), hashtags, descriptionLinks, numberOfSubscribers.
  • Pagination: results continue past the first page (about 20 per page) up to your maxResultsPerQuery.
  • Failures are free: a search with no results, a video id that does not exist, or a link that is not YouTube returns a row with status empty, failed or rejected and the reason. That row is not charged.

How to use it

  1. Type one or more search terms (the form is pre-filled with python tutorial), or paste video or search links.
  2. Pick filters: Type, Prioritize, Upload date, Duration, Features.
  3. Set Max results per search (default 20, one page).
  4. Turn on Add video details if you need dates, likes, comment counts and descriptions.
  5. Start, then export the dataset as JSON, CSV or Excel. You can also call the Actor from the API on a schedule (for example, "bitcoin" uploaded today, every morning).

Use cases

  • Keyword research: which videos and channels rank for a term, and how many views they have.
  • Monitoring: new uploads for a topic (uploadDate: today or hour) on a schedule.
  • Lead lists: channels for a niche (searchType: channel) with subscriber and video counts.
  • Content pipelines: find videos, then get transcripts with YouTube Transcript, comments with YouTube Comments Scraper or a channel's uploads with YouTube Channel Scraper.

Input

FieldDefaultNotes
searchQueriessearch terms, as typed in YouTube's search bar
startUrlsvideo links or ids (details rows) and youtube.com/results?... links (searches); {"url": ...} objects are accepted
maxResultsPerQuery20results per search term or search link
searchTypevideovideo, shorts, channel, playlist, movie or all
sortByrelevancerelevance or popularity (the two orders YouTube's search page offers)
uploadDateanyany, hour, today, week, month, year
durationanyany, under3, 3to20, over20
features[]any of live, 4k, hd, subtitles, creativeCommons, 360, vr180, 3d, hdr, location, purchased
includeVideoDetailsfalsedate, likes, comment count, description, hashtags, links, subscribers (one extra request per video)
searchCountryemptytwo-letter country code sent as gl

Output example (search row with video details)

{
"input": "python tutorial",
"status": "ok",
"query": "python tutorial",
"rank": 1,
"type": "video",
"id": "ix9cRaBkVe0",
"url": "https://www.youtube.com/watch?v=ix9cRaBkVe0",
"title": "Python Full Course for free 🐍",
"viewCount": 13561756,
"viewCountIsApprox": false,
"date": "2024-08-20",
"publishedTimeText": "2 years ago",
"duration": "12:00:00",
"durationSeconds": 43200,
"channelName": "Bro Code",
"channelId": "UC4SVo0Ue36XCfOyb5Lh1viQ",
"channelUrl": "https://www.youtube.com/@BroCodez",
"channelHandle": "@BroCodez",
"numberOfSubscribers": 3450000,
"likes": 379552,
"commentsCount": 23000,
"commentsCountIsApprox": true,
"hashtags": ["#python", "#tutorial", "#beginners"],
"descriptionLinks": ["https://www.python.org/", "https://www.jetbrains.com/pycharm/"],
"fromYTUrl": "https://www.youtube.com/results?search_query=python+tutorial&sp=EgIQAQ%3D%3D"
}

Channel rows add numberOfSubscribers and channelTotalVideos. Playlist rows add videoCount.

How much does it cost to scrape YouTube search results?

You pay per search result row, plus a video details event for each video whose details are read, plus a small Actor-start event per run. The current prices for every Apify plan are on the Pricing tab. On the Free plan on 2026-11-18 they were: $0.0001 per search result row, $0.0002 per video details event and $0.0009 per Actor start. Example: 1,000 search results in one run cost $0.10; with video details on for all of them, $0.30.

Failed, rejected and empty rows are free. The run stops when your maximum charge is reached.

Measured (local test runs, 2026-11-18)

  • 3 searches x 50 results: 150/150 rows, ranks 1-50 with no gaps or duplicates, 9 requests. 147/150 view counts were exact. The other 3 were live streams, which show "watching" counts.
  • One search x 200 results: 200/200 rows in 13 requests.
  • With video details (2 runs, 300 videos): likes 299/300, publish date 294/300 (videos streamed in the last day show "Streamed live 12 hours ago" instead of a date), comment count 291/300, description 299/300.

What it does not do (yet)

  • Sort by upload date or rating: YouTube's search page no longer offers these, and in our test the old values gave the same order as relevance. Use the upload-date filter for recent videos.
  • No subtitles or transcripts (use YouTube Transcript), no comments (use YouTube Comments Scraper), no channel About data (join date, total views, country: use YouTube Channel Scraper).
  • Comment counts are rounded by YouTube above 1,000 (commentsCountIsApprox: true).
  • Search rows for a video made by several channels together ("X and Y") have no channelId unless video details are on.
  • Live streams have no view count (YouTube shows "N watching") and no duration.

FAQ

Do I need a YouTube API key or my own proxies? No. The Actor uses Apify Proxy itself, and its cost is included in the prices.

Can I paste a YouTube search URL? Yes. Put youtube.com/results?search_query=... links in startUrls. Any filters in the link (sp=) are kept.

Can I call it from code or an AI agent? Yes, like any Apify Actor: the Apify API, the Python and JavaScript clients, the Apify MCP server, and the Make, Zapier and n8n integrations.

Found a problem or want a field? Tell us on the Issues tab.

Responsible use

You are responsible for how you use the data, including personal data and YouTube's terms.