template bg

YouTube Comments Scraper

YouTube Comments Scraper is a reusable BrowserAct template for collecting structured records from public YouTube pages.

Published by
Br
BrowserAct Team
August 21, 2026
Approx.Credits
32-62 Credits
Categories
BA
Youtube
Template ID
113862683031243687

Brief

YouTube Comments Scraper is a reusable BrowserAct template for collecting structured records from public YouTube pages. Configure the run inputs, start the Bot, and receive consistent output for research, monitoring, enrichment, or downstream automation without writing selectors or scraper code.

What Does BrowserAct YouTube Comments Scraper Do?

The Bot starts from your configured inputs, opens the relevant public YouTube page, loads the requested records, extracts the visible fields, and returns structured results. The default example uses https://www.youtube.com/watch?v=_ba9kScc85M for Video URL, but the input can be changed before each run.

Key Features of YouTube Comments Scraper

  • Configurable public-page inputs without rebuilding the Bot.
  • Structured records returned in a consistent results array.
  • Public, non-login extraction path.
  • Reusable runs for new keywords, URLs, locations, or limits.
  • Output ready for review, export, API use, or automation.

What Data Can I Extract from YouTube?

Field Description
comment_author Publicly visible comment author value for the record, when available.
author_channel_url Publicly visible author channel url value for the record, when available.
comment_text Publicly visible comment text value for the record, when available.
published_time Publicly visible published time value for the record, when available.
like_count Publicly visible like count value for the record, when available.
reply_count Publicly visible reply count value for the record, when available.
comment_url Publicly visible comment url value for the record, when available.
is_pinned Publicly visible is pinned value for the record, when available.
creator_hearted Publicly visible creator hearted value for the record, when available.
video_title Publicly visible video title value for the record, when available.
video_url Direct public video URL.
rank Record position in the collected result order.

How to Use YouTube Comments Scraper

Quick Start Guide

  1. Click Run task.
  2. Keep the default inputs for a first test or enter your own public-page values.
  3. Click Run.
  4. Review the structured records after the run completes.
  5. Download the result or connect it to another workflow.

Input Parameters

Parameter Required Default Description
Video URL Yes https://www.youtube.com/watch?v=_ba9kScc85M Controls the video url used for this run.
Max Comment Count Yes 10 Controls the max comment count used for this run.

Example Output

{
  "results": [
    {
      "comment_author": "Example value",
      "author_channel_url": "https://example.com/public-record",
      "comment_text": "Example value",
      "published_time": "Example value",
      "like_count": null,
      "reply_count": null,
      "comment_url": "https://example.com/public-record",
      "is_pinned": false,
      "creator_hearted": "Example value",
      "video_title": "Example value",
      "video_url": "https://example.com/public-record",
      "rank": 1
    }
  ]
}

How Does it Work?

How YouTube Comments Scraper works

  1. Open the configured public YouTube video URL.
  2. Scroll to the comments section and load comments until Count is reached.
  3. Read each visible comment, author link, engagement, state, video context, and source URL.
  4. Return comments in collection order with rank.

How to Build a New Scraper Bot with Agent Built

Step 1: Describe the data you need

Open BrowserAct and start Agent Built from the Home prompt box or from Create -> Build with Agent. Describe the public website, records, inputs, fields, and result limit.

Start Agent Built

Step 2: Let BrowserAct build and test the Bot

BrowserAct explores the live website, determines the navigation and extraction path, and validates the result. Reply in the same build conversation if the Agent requests a missing public URL, field, or expected output.

BrowserAct building the Bot

Step 3: Run the Bot and review the result

Run the completed Bot with default inputs. Check record count, source URLs, and required fields before reusing it with new inputs.

Run the completed Bot

Review structured results

Why Use YouTube Comments Scraper?

  • Replace repetitive copying from public YouTube pages.
  • Keep the same output structure across repeated runs.
  • Send public records into research, reporting, enrichment, or monitoring workflows.

Who Can Use YouTube Comments Scraper?

  • Researchers and analysts collecting public web data.
  • Marketing, sales, and operations teams preparing structured datasets.
  • Automation builders connecting BrowserAct output to other tools.
  • Developers who need reusable browser-collected JSON records.

Automation and Export

BrowserAct automation and export workflow

BrowserAct returns structured records first. You can then use that output through API JSON responses, n8n workflows, Make scenarios, Zapier automations, MCP-based agent workflows configured from the Bot's Integrations tab, or manual spreadsheet export.

Need Help?

Contact us at

Discord: Discord Community

E-mail: service@browseract.com

What can we do for youWhat can we do for you

FAQ About the template

Your next scraper starts here.

YouTube Comments Scraper