template bg

YouTube Videos Scraper

YouTube Videos Scraper is a BrowserAct Bot template for collecting structured video records from public YouTube search results or public channel video pages.

Published by
Br
BrowserAct Team
August 21, 2026
Approx.Credits
33-63 Credits
Categories
BA
Youtube
Template ID
113863496535385511

Brief

YouTube Videos Scraper is a BrowserAct Bot template for collecting structured video records from public YouTube search results or public channel video pages. Configure a keyword or channel URL and the count, then run the Bot to return clean video metadata for research, content monitoring, creator discovery, competitive analysis, or downstream automation.

What Does BrowserAct YouTube Videos Scraper Do?

This template opens a public YouTube search results page when a keyword is provided, or a public channel videos page when a channel URL is provided. It reads individual video cards, scrolls to load more results, excludes non-video result types, and returns one structured record per video.

Key Features

  • Search YouTube videos by keyword.
  • Extract videos from a public channel videos page.
  • Configure keyword, channel URL, and result count.
  • Extract title, video URL, channel name, channel URL, views, published time, duration, description snippet, thumbnail URL, and rank.
  • Scroll public YouTube pages until the requested count is reached or no more videos load.
  • Return empty snippets when YouTube does not show descriptions, especially on channel video pages.

What Data Can I Extract from YouTube?

Field

Description

title

Video title shown in the YouTube result or channel video card.

video_url

Public YouTube watch URL.

channel_name

Channel name associated with the video.

channel_url

Public channel URL.

views

Visible view count text.

published_time

Visible published date or relative time.

duration

Video duration when shown.

description_snippet

Visible snippet in search results; often empty on channel video pages.

thumbnail_url

Thumbnail URL from the page or a canonical thumbnail fallback.

rank

Video rank in the returned order.

How to Use YouTube Videos Scraper

  1. Click Run task.
  2. Enter a keyword or a channel URL.
  3. Set the count of videos to collect.
  4. Run the Bot and review the structured video records.
  5. Export the result or connect it to an API, workflow builder, or agent workflow.

Input Parameters

Parameter

Required

Default

Description

keyword

No

browser automation

Search term used to build the YouTube search results page. Used when channel_url is empty.

channel_url

No

empty

Public YouTube channel URL. When provided, the Bot collects videos from that channel's public videos page instead of search.

count

Yes

20

Maximum number of public video records to return.

Example Output

{
"videos": [
{
"title": "Browser Automation in 2 minutes | ByteFlow Basics",
"video_url": "https://www.youtube.com/watch?v=EQNsKQwoKlE",
"channel_name": "Byteflow_",
"channel_url": "https://www.youtube.com/@byteflow_bot",
"views": "66 views",
"published_time": "1 month ago",
"duration": "2:35",
"description_snippet": "Automate repetitive browser tasks without writing...",
"thumbnail_url": "https://i.ytimg.com/vi/EQNsKQwoKlE/hqdefault.jpg",
"rank": 2
}
]
}

How Does it Work?

How YouTube Videos Scraper runs

BrowserAct builds the YouTube search URL from the keyword input when channel_url is empty. In the validated default run, the Bot opened the public YouTube search page for browser automation, read individual ytd-video-renderer video result cards, excluded playlist and course result containers, and scrolled until it collected the requested number of videos.

When channel_url is provided, the Bot opens the channel's public videos page and reads the channel video grid. Search pages usually expose description snippets; channel video pages usually do not, so description_snippet is returned empty when it is not visible. Thumbnail URLs are taken from the rendered page when available, with a canonical thumbnail URL fallback based on the visible video ID.

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. Paste a clear request that includes the website, the records to collect, the filters or search conditions, the fields to return, the result limit, and the inputs you want to reuse later.

Agent Built prompt templates

Step 2: Let BrowserAct Build and Test the Bot

BrowserAct explores the live website, works out the navigation and extraction path, and validates the result. If BrowserAct asks for clarification, reply in the same build conversation with the missing URL, condition, field, example, or expected output.

Agent Built exploration

Step 3: Run the Bot and Review the Result

When the build is complete, run the Bot with the default inputs first. Review the structured records, source URLs, missing fields, and row count before reusing the Bot with new inputs or connecting it to another workflow.

Agent Built run inputs

Agent Built run results

Why Scrape YouTube Video Results?

YouTube video metadata helps teams monitor content trends, find creators, compare topics, track competitors, research video formats, and build content intelligence feeds. A reusable BrowserAct Bot makes the workflow repeatable without maintaining a custom browser script.

Who Can Use This Template?

  • Content marketers researching video topics.
  • Creator partnership teams finding channels and videos.
  • SEO teams monitoring YouTube search results.
  • Market researchers tracking category conversations.
  • Automation builders sending video metadata into spreadsheets, CRMs, dashboards, or agents.

How Many Results Can You Scrape?

Use count to control the number of videos returned. YouTube loads more public videos as the page scrolls. If fewer public videos are available than requested, the Bot returns the available records.

Automation and Export

Automation and export flow

BrowserAct returns structured video data first. You can then use the output through API JSON responses, n8n workflows, Make scenarios, Zapier automations, MCP-based agent workflows, or manual CSV review depending on your downstream system.

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 Videos Scraper | Extract Video Titles, URLs, Channels, Views, Dates, Durations, and