YouTube Search & Comments Scraper avatar

YouTube Search & Comments Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
YouTube Search & Comments Scraper

YouTube Search & Comments Scraper

Search YouTube videos and extract public comments, replies, and video metadata. Export results to CSV, Excel, or JSON.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

devcake

devcake

Maintained by Community

Actor stats

1

Bookmarked

1

Total users

1

Monthly active users

3 days ago

Last modified

Share

YouTube search, channel, Shorts, and comments scraper

Choose one clear workflow: search standard YouTube video results by keyword, collect the Videos, Shorts, or Live tab from known channels, or extract comments from specific video URLs. Results are saved as structured Dataset rows.

Try the YouTube Search & Comments Scraper on Apify.

πŸ”Ž What can you do with this YouTube scraper?

  • πŸ”Ž Search YouTube for up to 20 topics, keywords, or phrases in one run.
  • πŸ“Ί Collect public videos, Shorts, or live entries from channel URLs and @handles.
  • πŸ”— Scrape comments directly from YouTube watch, Shorts, live, or youtu.be URLs.
  • 🎬 Save up to 1,000 unique video results across all searches.
  • πŸ“‹ Collect video titles, URLs, channel names, durations, publish information, and displayed view counts.
  • πŸ’¬ Optionally collect up to 2,000 public comments per video.
  • ↩️ Optionally include up to 500 public replies per comment.
  • πŸ”— Keep replies connected to their original comments.
  • πŸ“₯ Download results in CSV, Excel, JSON, and other common formats.
  • πŸ“… Schedule repeat runs or connect the results to other apps through Apify.

Comments and replies are turned off by default, making it easy to create a simple YouTube search-results dataset. Turn them on only when you need them.

Choose the right workflow

WorkflowWhat you provideWhat it returns
Search videos by keywordTopics, keywords, or phrasesStandard YouTube video search results, with optional comments and replies
Collect a known channelChannel URL, @handle, or channel IDEntries from that channel's Videos, Shorts, or Live tab, with optional comments and replies
Comments from video URLsWatch, Shorts, live, youtu.be URLs, or video IDsPublic comments and optional replies from those exact videos

Keyword search currently targets standard video results. It does not search for channels by keyword and it does not provide a Shorts-only keyword filter. To collect channel Shorts, provide the channel directly and select the Shorts tab.

πŸ‘₯ Who is this Actor for?

  • πŸŽ₯ Content creators researching videos and audience reactions around a topic.
  • πŸ“£ Marketing teams comparing channels, content, and viewer discussions.
  • πŸ”¬ Researchers building datasets for text analysis or academic work.
  • 🏒 Agencies collecting public comments for qualitative review.
  • πŸ“° Media teams tracking which videos appear for selected keywords.
  • πŸ“Š Analysts exporting structured YouTube search and comment data.

This Actor collects source data. It does not generate sentiment scores, summaries, transcripts, or engagement predictions.

πŸš€ How to run the Actor

  1. Open the Actor's Input tab.
  2. Choose a workflow.
  3. Open the matching source section and enter search queries, channels, or video URLs.
  4. Choose the maximum number of videos to process.
  5. For search and channel workflows, turn on Include comments when needed.
  6. Turn on Include replies to preserve public discussion threads.
  7. Click Start, then open Output to review or download the Dataset.

Enabling replies also enables comments because every reply belongs to a comment thread.

βš™οΈ Input

SettingWhat it controlsStarting value
WorkflowSelects keyword search, known-channel collection, or direct commentsSearch videos by keyword
Search queriesTopics, keywords, or phrases for standard video searchOpenAI Codex tutorial
Channel URLsKnown channel URLs, @handles, or channel IDs@OpenAI example
Channel tabVideos, Shorts, or live-stream entries from known channelsVideos
Video URLs or IDsExact videos or Shorts whose comments should be collectedExample video URL
Maximum videosTotal unique videos saved across all queries20
Include commentsWhether public top-level comments are collectedOff
Maximum comments per videoComment limit for each video100
Include repliesWhether public replies are collectedOff
Maximum replies per commentReply limit for each top-level comment50
Language codeYouTube interface language used for requestsen
Country codeCountry context used to localize resultsUS

Only the source section matching the selected workflow is used. For a quick first run, keep Search videos by keyword, replace the example query, and leave comments and replies turned off.

πŸ“¦ What data does the Actor return?

Results are stored in an Apify Dataset. Depending on your choices, the Dataset contains video rows, comment rows, and reply rows.

🎬 Video results

DataDescription
Search queryThe query that found the video
Video titleThe title shown in YouTube search
Video ID and URLThe video's identifier and direct link
ChannelThe channel name shown with the result
PublishedThe publication information displayed by YouTube
DurationThe displayed video length
ViewsThe displayed view-count text
Collected atWhen the result was saved

πŸ’¬ Comments and replies

DataDescription
Video ID and URLThe video connected to the comment
Comment IDThe unique comment or reply identifier
Parent comment IDThe original comment connected to a reply
AuthorThe displayed author name and channel ID
TextThe public comment or reply text
PublishedThe publication information displayed by YouTube
LikesThe displayed like count
Reply countThe number of replies shown for a top-level comment
Collected atWhen the result was saved

You can download the Dataset as CSV, Excel, JSON, JSONL, XML, HTML, or RSS from the Apify Console.

πŸ§ͺ Example

Suppose you want to research videos about home coffee brewing:

  • Enter home coffee brewing as the search query.
  • Set Maximum videos to 10.
  • Turn on Include comments.
  • Leave Include replies off.

The result will contain up to 10 matching video rows plus the requested public comments for each video. You can then export the Dataset to Excel or CSV for review.

🎯 Use cases

πŸ“Š Build a YouTube search-results dataset

Search for one or more topics and export video titles, channels, links, durations, publish information, and displayed views.

πŸ“€ Export YouTube comments

Collect public comment text with author details, likes, publication information, and the source video link. Download the results for research or review.

πŸ—£οΈ Study audience discussions

Include replies to preserve public conversations and the relationship between a reply and its original comment.

πŸ”„ Compare content across keywords

Run several search queries together to see which unique videos and channels appear for different topics.

πŸ“Ί Export videos from a known channel

Provide a channel URL, @handle, or channel ID and select its Videos, Shorts, or Live tab. This is direct channel collection, not channel discovery by keyword.

πŸ“± Collect Shorts and Shorts comments

Select a known channel's Shorts tab to export its public Shorts. To collect comments from exact Shorts, use the direct video-comments workflow with Shorts URLs and optionally enable replies.

πŸ’΅ Pricing

This Actor is free to use. Standard Apify platform usage charges may still apply based on your Apify plan and the resources used by each run. See the Pricing tab for current details.

⚠️ Limitations

  • 🌐 Only public information available without signing in can be collected.
  • πŸ”’ Private, members-only, age-restricted, or otherwise unavailable content is not supported.
  • πŸ’¬ Videos with comments turned off cannot return comments.
  • πŸ‡ΊπŸ‡Έ Search results default to an English-language, United States context.
  • 🌍 Language and country context can be changed in the Actor input.
  • πŸ”„ Titles, view counts, comments, and rankings can change between runs.
  • πŸ“š The Actor searches standard YouTube video results; it is not a complete archive of every video on YouTube.
  • πŸ”Ž Channel discovery by keyword and Shorts-only keyword search are not supported.

Please use collected data responsibly and follow applicable laws and platform rules.

❓ Frequently asked questions

πŸ’¬ Can I scrape YouTube comments?

Yes. Enter a search query and turn on Include comments. The Actor will first find matching videos and then collect the public comments available for those videos. Comments that are disabled, private, or unavailable cannot be returned.

↩️ Can I collect replies to YouTube comments?

Yes. Turn on Include replies and choose the maximum number of replies per comment. Replies are saved with the ID of their original comment so the conversation can be reconstructed after export.

πŸ“₯ Can I export YouTube comments to Excel or CSV?

Yes. When the run finishes, open the Dataset in the Output tab and select the format you want. Apify supports Excel, CSV, JSON, and several other export formats.

🚫 Why did a video return no comments?

The video's comments may be disabled, restricted, unavailable without signing in, or temporarily missing from the public page. Other successfully collected videos remain available in the same Dataset.

πŸ”‘ Do I need a YouTube API key?

No. Enter your search queries directly in the Actor input and start the run.

πŸ“… Can I run the same search regularly?

Yes. Apify lets you schedule Actor runs. This is useful when you want to refresh a search-results or comments dataset on a recurring basis.