YouTube Search Scraper — Search Results & Video Data
Pricing
from $0.00075 / result scraped
YouTube Search Scraper — Search Results & Video Data
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.
YouTube Search Scraper — Export Search Results & Video Data by Keyword
Run any YouTube search and export the results as clean, structured data. Add one or more keywords, choose how to sort, and the YouTube Search Scraper returns one row per video — title, URL, channel, view count, published date, duration, a description snippet and thumbnail. Export to JSON, CSV, Excel or XML, or pull straight from the Apify API. It's the fast way to run keyword and topic research, track trends and competitors, source creators, and build video datasets for dashboards or LLMs.

What is the YouTube Search Scraper?
The YouTube Search Scraper turns YouTube's search results into a flat, analysis-ready dataset. For each keyword you supply, it runs the search, sorts it the way you choose (relevance, upload date, view count or rating), pages deep into the results, and returns a structured row per video with its channel, views, duration and thumbnail. Instead of scrolling results and copying links, you give it a list of terms and export a combined dataset. It's built for marketers researching keywords, analysts tracking a niche, and teams assembling video datasets for reporting or model training.
Features
- 🔎 Keyword search — run several search terms at once; results are combined into one dataset.
- 🔀 Sort control — order each search by relevance, upload date, view count or rating.
- 📊 View counts — numeric
viewCountplus the readableviewCountTextfor every video. - 📺 Channel details — channel name, ID and URL for each result.
- ⏱️ Duration & recency —
durationSecondsanddurationText, plus apublishedTextlike "4 years ago". - 🧾 Flat, one-row-per-video output — clean records with a description snippet and thumbnail.
- 📏 Deep paging — set a max and the scraper pages deep into each search; 0 for no limit.
- 📤 Clean exports — JSON, CSV, Excel or XML, or straight into the Apify API.
What you get

One flat, ready-to-use record per video result:
{"query": "python tutorial","videoId": "rfscVS0vtbw","title": "Learn Python - Full Course for Beginners","url": "https://www.youtube.com/watch?v=rfscVS0vtbw","channelName": "freeCodeCamp.org","channelId": "UC8butISFwT-Wl7EV0hUK0BQ","channelUrl": "https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ","viewCount": 49309271,"viewCountText": "49M views","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"}
Output schema
| Field | Type | Description |
|---|---|---|
query | string | The search keyword that produced the row. |
videoId | string | YouTube video ID. |
url | string (URL) | Watch link. |
title | string | Video title. |
channelName | string | Uploading channel name. |
channelId | string | Channel ID. |
channelUrl | string (URL) | Channel URL. |
viewCount | integer | View count as a number. |
viewCountText | string | View count as a readable label. |
publishedText | string | Relative publish time (e.g. "4 years ago"). |
durationText | string | Length as text (e.g. "4:26:52"). |
durationSeconds | integer | Length in seconds. |
description | string | Description snippet from the results page. |
thumbnail | string (URL) | Thumbnail image URL. |
collectedAt | string (ISO date) | When the row was scraped. |
How to scrape YouTube search results
- Open the YouTube Search Scraper and click Try for free.
- Add your search terms to
searchQueries— one per line. Each runs its own search and the results are combined. - Choose a
sort(relevance, date, views or rating) and setmaxItems(0 = no limit). - Click Run.
- Export the results as JSON, CSV, Excel or XML, or read them from the Apify API.
Input
{ "searchQueries": ["lofi hip hop", "python tutorial"], "sort": "views", "maxItems": 200 }
| Field | Type | Description |
|---|---|---|
searchQueries | array | Search terms to run; each keyword runs its own search, results combined. |
sort | string | relevance, date, views or rating. |
maxItems | integer | Maximum results across all keywords (0 = no limit). |
Use cases
- Keyword & topic research: see what ranks for a term, how it's framed and how popular it is.
- Trend & competitor analysis: track the top videos and channels in a niche over time.
- Content discovery: build watchlists and content ideas from high-performing videos.
- Influencer sourcing: find channels actively making videos on your topic.
- SEO & title research: study titles, durations and view counts of the videos ranking for a query.
- Dataset building: assemble clean, structured search result sets for analytics or model training.
- Pipelines: feed YouTube search data into dashboards and automated reporting on a schedule.
Pricing
Pay-per-event: you're billed a small amount per video result scraped — you only pay for the results you receive. See the Pricing tab for current rates.
FAQ
How do I scrape YouTube search results?
Add your search terms to searchQueries and run the actor. Each keyword runs its own search and you get one row per video, combined across all terms.
How many results can I get?
Set maxItems to whatever you need (0 = no limit) — the scraper pages deep into each search to reach the cap.
Can I sort by newest or most viewed?
Yes — set sort to date for newest, views for most viewed, rating, or relevance for YouTube's default order.
Can I run several searches at once?
Yes — add multiple keywords and the results are combined into one dataset, each row tagged with the query that produced it.
Does it include view counts and durations? Yes — each video comes back with numeric and text view counts, plus duration in both seconds and readable text.
What format is the data? A flat table you can export as JSON, CSV, Excel or XML, or fetch from the Apify API.
Can I connect this to other apps? The YouTube Search Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. It works with Make, Zapier, Slack, Airbyte, GitHub, Google Drive and many more, plus the Apify API, JavaScript/Python clients and MCP. Or use webhooks to trigger an action whenever a run finishes.
Related Actors
Building a YouTube research toolkit? Combine the Search Scraper with our other YouTube actors:
- YouTube Scraper — videos, channels, comments and transcripts in one actor.
- YouTube Comments Scraper — export comments from any video.
- YouTube Shorts Scraper — search Shorts by keyword or hashtag.
- YouTube Video Downloader — download videos as MP4 or MP3.
- Google Autocomplete Keyword Scraper — harvest autocomplete suggestions for keyword research.
Notes
Original clean-room implementation. Returns publicly available YouTube search results; you are responsible for complying with YouTube's terms. Not affiliated with, endorsed by or sponsored by YouTube or Google.