
YouTube Search Scraper
hipersoft/youtube-search-scraper
Search YouTube by keyword and export the results: video title, URL, channel, view count, published date, duration, description snippet and thumbnail. Sort by relevance, date, views or rating. One clean row per video as JSON, CSV or Excel.
Total users
1Monthly users
1Total runs
43Per result scraped
$0.0015Last rebuilt
Oct 26, 2026Overview
Run any YouTube search and export the results as clean, structured data. Add one or more keywords, choose how to sort, and get one row per video — title, URL, channel, view count, published date, duration, a description snippet and thumbnail. Export to JSON, CSV or Excel, or pull straight from the API.
Perfect for keyword and topic research, competitor and trend analysis, content discovery, influencer sourcing, SEO, and building video datasets for dashboards or LLMs.
What you get
One flat, ready-to-use record per video result:
| Field | Description |
|---|---|
query |
The search keyword that produced the row |
videoId / url |
The video and its watch link |
title |
Video title |
channelName / channelId / channelUrl |
The uploading channel |
viewCount / viewCountText |
Views (number + label) |
publishedText |
When it was published (e.g. "4 years ago") |
durationText / durationSeconds |
Length |
description |
Description snippet from the results page |
thumbnail |
Thumbnail image URL |
collectedAt |
When the row was scraped |
How to use
1. Add keywords
{
"searchQueries": ["lofi hip hop", "python tutorial"],
"sort": "views",
"maxItems": 200
}
2. Sort & limit
- Sort results by — Relevance (YouTube default), Upload date, View count, or Rating.
- Max results — cap the total across all keywords (0 = no limit; the scraper pages deep into the results).
Example output
{
"query": "python tutorial",
"videoId": "rfscVS0vtbw",
"title": "Learn Python - Full Course for Beginners",
"url": "https://www.youtube.com/watch?v=rfscVS0vtbw",
"channelName": "freeCodeCamp.org",
"viewCount": 49309271,
"publishedText": "6 years ago",
"durationText": "4:26:52",
"durationSeconds": 16012,
"description": "This course will give you a full introduction into all of the core concepts…",
"thumbnail": "https://i.ytimg.com/vi/rfscVS0vtbw/hq720.jpg",
"collectedAt": "2026-09-20T06:00:00.000Z"
}
Common use cases
- Keyword & topic research — see what ranks for a term and how it's framed.
- Competitor & trend analysis — track the top videos and channels in a niche.
- Content discovery — build watchlists and content ideas at scale.
- Influencer sourcing — find channels making videos on your topic.
- Datasets — build clean, structured result sets for analysis or model training.
Frequently asked questions
Do I need any login, account or key? No. Just add keywords and run.
How many results can I get? Set Max results to whatever you need (0 = no limit) — the scraper pages deep into each search.
Can I sort by newest or most viewed? Yes — use the Sort option (relevance, upload date, view count, rating).
Can I run several searches at once? Yes — add multiple keywords and the results are combined.
What format is the data? A flat table you can export as JSON, CSV or Excel, or fetch from the Apify API.
Related scrapers
Building a YouTube toolkit? Pair this with our YouTube channel scraper, YouTube comments scraper and YouTube video downloader — all with the same clean, one-row-per-item output.
Input
| Field | Type | Description |
|---|---|---|
searchQueriesSearch keywords | array | One or more search terms to run on YouTube — e.g. 'lofi hip hop', 'python tutorial', 'iphone 17 review'. Each keyword runs its own search and the results are combined. |
sortSort results by | string · relevance, date, views, rating | Relevance (YouTube default), upload date, view count, or rating. Default: "relevance" |
maxItemsMax results | integer | Maximum number of results to collect across all keywords (0 = no limit). Default: 100 |
API
curl -X POST "https://api.apify.com/v2/acts/hipersoft~youtube-search-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"searchQueries": [
"lofi hip hop"
]
}'from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("hipersoft/youtube-search-scraper").call(run_input={
"searchQueries": [
"lofi hip hop"
]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('hipersoft/youtube-search-scraper').call({
"searchQueries": [
"lofi hip hop"
]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);Pricing
| Event | Price | Paid plans from |
|---|---|---|
| Result scraped Charged for each YouTube search result returned. | $0.0015 | $0.0008 |
You pay only for what the run returns. Set a maximum cost per run and it stops cleanly at that limit.
Related scrapers
Website Contact Scraper
Extract business emails, phone numbers and social media profiles from any list of websites. De-obfuscates emails, reads Organization schema, and optionally crawls contact/about pages. Bulk-ready.
1,576 runs · 69 users · $0.0024 / website scrapedThreads Downloader
Download Threads photos, videos and carousel posts by URL. Paste threads.net or threads.com links and get ready-to-use download links plus direct media URLs, a thumbnail, media type and count — one row per URL as JSON, CSV or Excel. Cheap, bulk, built for creators and n8n.
799 runs · 4 users · $0.003 / post downloadedTikTok Video Downloader
Download TikTok videos without watermark in bulk. Paste video or photo-slideshow URLs and get a clean HD MP4 download link plus full metadata: caption, author, play/like/comment/share counts, sound and cover — one row per post as JSON, CSV or Excel. For creators, research and n8n.
678 runs · 9 users · $0.0035 / video downloadedReddit Scraper
Scrape Reddit posts and comments by subreddit, keyword, author or thread URL. Get titles, self-text, scores, upvote ratio, comment counts, comment trees and permalinks — one clean row per post or comment. Export as JSON, CSV or Excel.
568 runs · 15 users · $0.0034 / post scrapedSpotify Scraper
Search Spotify and scrape public metadata for tracks, artists, albums and playlists: names, artists, popularity, followers, genres, release dates, duration, ISRC, preview URL and more. No Spotify login or API key required. For music research, catalogs and analytics.
478 runs · 9 users · $0.0034 / item scrapedReddit Video, Image & GIF Downloader
Download Reddit videos, images and GIFs by post URL. Paste reddit.com or redd.it links and get ready-to-use download links — videos as a single playable MP4 with audio, images and galleries as direct links — one row per URL as JSON, CSV or Excel. Cheap, bulk, built for creators and n8n.
453 runs · 16 users · $0.003 / item scrapedSend the site and the fields. We build it and you get it first.