YouTube Search Scraper: Videos, Shorts & Channels avatar

YouTube Search Scraper: Videos, Shorts & Channels

Pricing

from $0.18 / 1,000 results

Go to Apify Store
YouTube Search Scraper: Videos, Shorts & Channels

YouTube Search Scraper: Videos, Shorts & Channels

YouTube search results in YouTube's own order: videos, Shorts, channels, playlists, movies. $0.25 per 1,000 results. Each typed, with YouTube's search filters.

Pricing

from $0.18 / 1,000 results

Rating

0.0

(0)

Developer

Luzi

Luzi

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Get YouTube search results for any words, in the order YouTube shows them: videos, Shorts, channels, playlists and movies in one list, each marked with its type and its place. Set the same filters as on YouTube's search page. No YouTube account, login or cookies needed.

Tested daily. Latest checks: three searches, 815 results in under 4 minutes; 180 results filtered to 4K videos from this month, by popularity, in German; and 40 of 40 for each type: Shorts, movies, channels and playlists.

What does this Actor do?

You give it searches (the words you would type in YouTube's search box) or links to YouTube search results. For each search it reads the results page after page, as you would by scrolling, and saves one row per result until it reaches your limit. YouTube stops one list of results after a few hundred, however many the search has, so when that list ends the search goes on through YouTube's own filters: videos under 3 minutes, 3 to 20 and over 20, each again by upload date (today, this week, this month, this year). Each of those lists holds results the others do not.

Each row comes with:

  • its type (video, short, channel, playlist or movie) and its place in the list it was found in (1 = the top result)
  • the id, link, title, description snippet and thumbnail, with every size of the thumbnail YouTube offers and the moving preview when there is one
  • for a video: views (exact, as a number), when it was posted ("3 days ago"), duration, badges such as "4K" or "New", whether it is live now (and how many are watching) or an upcoming premiere (and when it starts), its chapters, and the short summary YouTube shows under some results
  • the channel behind it: id, name, @ handle, link, picture, verified or official-artist mark, and the other channels of a collaboration
  • for a channel: its subscribers
  • for a playlist: its kind (playlist, mix or podcast), its video count and the first videos it lists
  • for a movie: the facts and credits the results show
  • the search it came from, the corrected search when YouTube fixed a typo, YouTube's estimate of how many results the search has, and the filtered list it was found in when it came from past the search's own list

Two options add more, each off by default:

  • Include video details: for each video and Short, from its own page, the exact upload date, exact view count, likes, comment count (exact up to 999; above that as YouTube rounds it, such as "7.7K") or whether comments are turned off, the full description with its links, the hashtags, and its channel's name, handle and subscribers
  • Include channel details: for each result from a channel, that channel's subscribers, exact total views, video count, joined date, description, country and links, from its About page

Why use it?

  • Everything a search shows, in one list. Videos, Shorts, channels, playlists and movies come together in YouTube's order, each typed, so the dataset matches what a person sees on the results page.
  • YouTube's filters. Type, upload date, duration, sort order and the features (4K, HD, subtitles, live, Creative Commons, 360°, VR180, 3D, HDR, location, purchased), or paste a results link with the filters you already picked.
  • Another language and country. Search YouTube as it appears in another country and language (English works best; see Good to know).
  • More per row. Exact view counts, chapters, YouTube's summary of the video, collaborations, and the channel's verified mark, at no extra cost.
  • Use the data anywhere. Download as JSON, CSV or Excel, or send it to your own tools through Apify's API and integrations.

How to use it

  1. Type one or more searches into Searches (or paste YouTube search results links into Search links).
  2. Optionally, set Max results per search and the filters.
  3. Turn on Include video details or Include channel details if you need each video's exact date, likes and description, or each channel's facts.
  4. Click Start. When the run ends, open the Output tab to view the results or download them.

Run it with no input to see a sample: up to 50 results each for "space documentary" and "lofi beats", charged as usual.

Input

FieldWhat it doesDefault
Searches (searchQueries)Words to search for, one search each—
Search links (startUrls)YouTube search results links; each keeps its own filters—
Max results per search (maxResultsPerSearch)Stop each search after this many results (1 to 5,000)100
Type (resultType)all, video, short, channel, playlist or movieall
Upload date (uploadDate)any, today, week, month or yearany
Duration (duration)any, under3, 3to20 or over20 (minutes)any
Sort by (sortBy)relevance or popularityrelevance
Features (features)Any of live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchasednone
Language (language)The language YouTube answers in ("en", "de", "pt-BR")en
Country (country)The country YouTube searches for ("US", "DE", "VN")US
Include video details (includeVideoDetails)Also read each video's and Short's own page (see below)false
Include channel details (includeChannelDetails)Also read the About page of each channel in the results (see below)false

Give at least one search or one link. Example input:

{
"searchQueries": ["space documentary", "lofi beats"],
"maxResultsPerSearch": 200,
"resultType": "video",
"uploadDate": "month",
"features": ["4k"],
"includeVideoDetails": true,
"includeChannelDetails": true
}

Output

One row per result. An example, with made-up values:

{
"id": "AbCdEfGhIjK",
"result_type": "video",
"position": 1,
"url": "https://www.youtube.com/watch?v=AbCdEfGhIjK",
"title": "A video title",
"description_snippet": "The first words of the description …",
"view_count": 1677620,
"view_count_text": "1,677,620 views",
"concurrent_viewers": null,
"published_time_text": "3 months ago",
"is_live": false,
"scheduled_start_at": null,
"duration_text": "1:02:15",
"duration_seconds": 3735,
"badges": ["4K"],
"thumbnail_url": "https://i.ytimg.com/vi/AbCdEfGhIjK/hq720.jpg?…",
"thumbnails": [
{ "url": "https://i.ytimg.com/vi/AbCdEfGhIjK/hq720.jpg?…", "width": 720, "height": 404 }
],
"animated_thumbnail_url": "https://i.ytimg.com/an_webp/AbCdEfGhIjK/mqdefault_6s.webp?…",
"ai_summary": "A short summary of the video.",
"chapters": [
{
"title": "Intro",
"time_text": "0:00",
"start_seconds": 0,
"thumbnail_url": "https://i.ytimg.com/…"
}
],
"channel_id": "UC1111111111111111111111",
"channel_name": "A Channel",
"channel_handle": "@achannel",
"channel_url": "https://www.youtube.com/channel/UC1111111111111111111111",
"channel_avatar_url": "https://yt3.ggpht.com/…",
"channel_verified": true,
"channel_is_artist": false,
"collaborators": [],
"subscriber_count": null,
"subscribers_text": null,
"video_count": null,
"video_count_text": null,
"playlist_kind": null,
"playlist_updated_text": null,
"playlist_videos": [],
"movie_info": null,
"movie_credits": [],
"shelf_title": null,
"search_query": "space documentary",
"search_corrected_query": null,
"search_url": "https://www.youtube.com/results?search_query=space+documentary&hl=en&gl=US",
"search_total_estimate": 69222317,
"search_slice": null,
"search_slice_url": null
}
FieldWhat it holds
idThe video, channel or playlist id
result_typevideo, short, channel, playlist or movie
positionIts place in the list it was found in (search_slice), 1 = the top result
urlA link to it (a /shorts/ link for a Short)
titleThe title, or the channel's name
description_snippetThe description's first words, as the results show them
view_countViews as a number (exact for videos; rounded as YouTube rounds it for Shorts)
view_count_textViews as YouTube shows them
concurrent_viewersFor a video live now: people watching
published_time_textWhen it was posted, as YouTube shows it ("3 months ago")
is_liveWhether it is live now
scheduled_start_atFor an upcoming premiere or stream: when it starts (ISO date and time)
duration_textThe duration as shown ("1:02:15")
duration_secondsThe same in seconds
badgesBadges shown on the result, such as "4K", "New" or "CC"
thumbnail_urlThe largest thumbnail shown
thumbnailsEvery size of the thumbnail shown, each with url, width and height
animated_thumbnail_urlThe moving preview, when YouTube has one
ai_summaryThe short summary YouTube shows under some results
chaptersThe video's chapters shown in the results (title, start time, thumbnail)
channel_idThe channel's id
channel_nameThe channel's name
channel_handleThe channel's @ handle
channel_urlA link to the channel
channel_avatar_urlThe channel's picture
channel_verifiedWhether the channel has the verified mark
channel_is_artistWhether it is an official artist channel
collaboratorsA collaboration's other channels (name, handle, id, link, subscribers, picture); empty otherwise
subscriber_countFor a channel: subscribers as a number (rounded as YouTube rounds it)
subscribers_textFor a channel: subscribers as shown
video_countFor a playlist: its number of videos
video_count_textThe same as shown
playlist_kindFor a playlist: playlist, mix or podcast
playlist_updated_textFor a playlist: when it was last updated, as shown
playlist_videosFor a playlist: the first videos it lists (id, title, duration)
movie_infoFor a movie: the line of facts shown (such as its year and genre)
movie_creditsFor a movie: the credit lines shown (actors, director)
shelf_titleWhen the result came in a titled group of results (such as a row of Shorts): that group's title
search_queryThe search it came from
search_corrected_queryThe search YouTube ran instead, when it corrected a typo
search_urlThe YouTube results link for the search
search_total_estimateYouTube's estimate of how many results the search has
search_sliceThe filtered list it was found in ("videos, under 3 minutes"); empty for the search's own list
search_slice_urlThe YouTube results link for that filtered list

With Include video details or Include channel details on, each row also holds that option's fields, and with video details on view_count is a video's or Short's exact count (a stream live now keeps the results' count). Without the option its fields are left out. An example with both on, with made-up values:

{
"view_count": 1677620,
"published_date": "2026-01-02",
"published_date_text": "Jan 2, 2026",
"like_count": 40321,
"comment_count": 876,
"comment_count_text": "876",
"comments_turned_off": false,
"description": "A video about space.\n\nNotes: https://example.com/space #space",
"description_links": [
{ "text": "https://example.com/space", "url": "https://example.com/space" }
],
"hashtags": ["#space"],
"channel_subscribers_text": "2.89M subscribers",
"channel_subscriber_count": 2890000,
"channel_description": "Videos about space.",
"channel_country": "Canada",
"channel_country_code": "CA",
"channel_view_count": 98765432,
"channel_joined_date": "2014-03-05",
"channel_video_count": 412,
"channel_links": [{ "title": "Shop", "url": "https://shop.example.com/" }]
}
FieldWhat it holds
published_dateWith video details on: the exact upload (or premiere, or stream) date, as YYYY-MM-DD
published_date_textWith video details on: the date as the video's page shows it ("Premiered Mar 5, 2024")
like_countWith video details on: likes, exact; empty when the channel hides them
comment_countWith video details on: comments, as a number only when YouTube shows it in full (up to 999)
comment_count_textWith video details on: comments as YouTube shows them ("312", "7.7K")
comments_turned_offWith video details on: whether comments are turned off
descriptionWith video details on: the full description
description_linksWith video details on: the links in the description (text and url, YouTube's redirect removed)
hashtagsWith video details on: the hashtags, from the title, the line above it and the description
channel_subscribers_textWith either option on: the channel's subscribers as shown ("2.89M subscribers")
channel_subscriber_countWith either option on: the same as a number (rounded as YouTube rounds it)
channel_descriptionWith channel details on: the channel's description
channel_countryWith channel details on: the channel's country, when it shows one
channel_country_codeWith channel details on: the same as a two-letter ISO code ("CA")
channel_view_countWith channel details on: the channel's total views, exact
channel_joined_dateWith channel details on: when the channel joined YouTube, as YYYY-MM-DD
channel_video_countWith channel details on: the video count on the channel's About page
channel_linksWith channel details on: the links on the channel's About page

Video details apply to videos and Shorts; channels, playlists and movies get those fields empty. A Short shown in a row of Shorts names no channel in the results: video details fill in its channel's name, id, handle and subscribers, but channel details are not read for it. A page or About panel that cannot be read keeps its rows, with that option's fields empty.

Not included: tags. Without Include video details, an exact upload date (results show only "3 months ago"), likes, comment counts and full descriptions are not included either, and Shorts shown in a row of Shorts carry no channel.

How much does it cost?

No surcharges and no paid options; an item that fails is not charged.

You pay for what you get:

  • $0.25 per 1,000 results ($0.00025 a result). Videos, Shorts, channels, playlists and movies cost the same. Each is charged once per run.
  • $0.0002 per run start, charged by Apify once a run at the default 1 GB of memory (once per GB for a run given more). Nothing per search.

So a run that saves 1,000 results costs $0.2502: $0.25 for the results and $0.0002 for the run start. If you set a maximum cost for a run, the Actor stops when it reaches it and keeps every result saved so far.

How long does a run take?

About 10 seconds for the first 50 results of two searches. A broad search read past YouTube's one list takes longer: 1,500 results for "minecraft" in about 6 minutes.

The options make a run much slower: Include video details reads each video's page, about 20 to 25 more minutes per 1,000 videos, and Include channel details reads each channel's About page, about 8 more minutes per 1,000 results.

Good to know

  • A search reads past YouTube's one list. YouTube stops one list after a few hundred results (a broad search like "minecraft": about 360), however many it has. The Actor asks that last page again, then reads the search's videos by duration and by upload date, which YouTube lists separately. Your own filters stay on every list; a duration you set is kept and only upload dates cut it. Results come in YouTube's order within each list, and search_slice names the list. Shorts, channels, playlists and movies come from the search's own list only (those filters do not apply to them), so a search for one of those types may end below your maximum.
  • Details cost nothing extra. A result costs the same with either option on; the run only takes longer.
  • A result found by two searches is saved and charged once, under the search that reached it first, so two searches can save fewer rows than their two maximums.
  • English gives the fullest rows. With another language, a video's views are still read when YouTube writes them in full ("1.677.620 Aufrufe"), but rounded counts ("1,2 Mio."), a channel's subscribers and a playlist's update date are left empty.
  • A pasted link keeps its own settings. Its filters, and its language and country when it names them, win over the fields below it.
  • Check your links first. A link that is not a YouTube search results link stops the run before anything is read, and the message names it.
  • One search that cannot be read does not stop the run. The others carry on, and the run's status lists the searches that could not be read.
  • A search with no results is not an error. It saves nothing.

More Actors from us

Use it from an AI agent or the API

One call starts a run and returns its items (Apify waits up to 300 seconds; for a longer run, start it with POST /v2/acts/…/runs and read its dataset):

POST https://api.apify.com/v2/acts/luzivanlt~youtube-search-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>

With the sample input as its JSON body:

{
"searchQueries": ["space documentary", "lofi beats"],
"maxResultsPerSearch": 50,
"resultType": "all",
"uploadDate": "any",
"duration": "any",
"sortBy": "relevance",
"language": "en",
"country": "US"
}

Its inputs, in the order of the input form:

InputWhat it takesDefault
searchQueries (Searches)Words to search YouTube for, one search per line, as you would type them in YouTube's search box, up to 200 characters each.—
startUrls (Search links)YouTube search results links (https://www.youtube.com/results?search_query=…), with any filters you picked on YouTube.—
maxResultsPerSearch (Max results per search)Stop each search after this many results, from 1 to 5,000 (100 by default).100
resultType (Type)Keep only results of this type."all"
uploadDate (Upload date)Keep only videos posted in this period: any time, today, this week, this month or this year."any"
duration (Duration)Keep only videos of this length: any, under 3 minutes, 3–20 minutes or over 20 minutes."any"
sortBy (Sort by)The order YouTube lists the results in: relevance or popularity."relevance"
features (Features)Keep only videos with every feature picked: Live, 4K, HD, Subtitles/CC, Creative Commons, 360°, VR180, 3D, HDR, Location or Purchased.—
language (Language)The language YouTube answers in, as a code such as "en", "de" or "pt-BR"."en"
country (Country)The country YouTube searches for, as a two-letter code such as "US", "DE" or "VN"."US"
includeVideoDetails (Include video details)Also read each video's and Short's own page: its exact upload date, exact like and view counts, the full description with its links and hashtags, the comment count, and its channel's name, handle and subscribers.—
includeChannelDetails (Include channel details)Also read the About page of each channel in the results: its subscribers, exact total views, video count, joined date, description, country and links, added to every result from that channel (Shorts from a Shorts shelf do not name their channel, so they get none).—

Apify's MCP server, https://mcp.apify.com, lists it as luzivanlt/youtube-search-scraper. To give an AI agent this Actor as a tool, add the server to the agent's MCP config:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=luzivanlt/youtube-search-scraper"
}
}
}

The client signs in with OAuth, or add "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }.

Charged per result delivered; the sample input above costs at most $0.03.

FAQ

Do I need a YouTube account or cookies? No. The Actor reads what anyone can see on YouTube's search page.

Can I get only videos, or only channels? Yes. Set Type. With all, every result is kept and typed, so you can filter the dataset later.

Can I run it from my own code, on a schedule, or with other apps? Yes. Like any Apify Actor, you can start it through the Apify API, run it on a schedule, and connect it to other apps with Apify's integrations and webhooks.

This Actor reads only what anyone can see on YouTube's search page without logging in. Check YouTube's terms and the laws that apply to you before you use the data, and only collect personal data when you have a legitimate reason to. If you are unsure, ask a lawyer.

Support

Found a problem or missing a feature? Open an issue on the Issues tab and include the run's link.


This Actor is not affiliated with, endorsed by or sponsored by YouTube or Google.