Skip to main content
This guide shows you how to send a synchronous request to each Bright Data YouTube Scraper API endpoint. It covers channels, videos, and comments.

Prerequisites

Request structure

Every synchronous request follows the same pattern:
The only thing that changes between endpoints is the dataset_id and the input URL format.
The /scrape endpoint is built for real-time, single-URL requests. Bright Data recommends 20 URLs or fewer per request, a best practice rather than a hard limit, and the endpoint waits up to 1 minute. If collection takes longer, the response is HTTP 202 with a snapshot_id instead of data, and collection continues asynchronously. Fetch the result with async requests or have it pushed to you with webhook delivery.

How to scrape YouTube channels

Dataset ID: gd_lk538t2k2p1k3oos71
You should see a 200 response. Processing time varies with target-site conditions and scraper workload.
Full Channels response schema

Which output fields does the YouTube channels scraper return?

The YouTube channels scraper (gd_lk538t2k2p1k3oos71, collect_by_url) returns 21 output fields.
Machine-readable version with the input schema: /scrapers/gd_lk538t2k2p1k3oos71.json

How to scrape YouTube videos

Dataset ID: gd_lk56epmy2i5g7lzu0k
Full Videos response schema

Which output fields does the YouTube videos scraper return?

The YouTube videos scraper (gd_lk56epmy2i5g7lzu0k, collect_by_url) returns 49 output fields.
Machine-readable version with the input schema: /scrapers/gd_lk56epmy2i5g7lzu0k.json

How to scrape YouTube comments

Dataset ID: gd_lk9q0ew71spt1mxywf
Full Comments response schema

Which output fields does the YouTube comments scraper return?

The YouTube comments scraper (gd_lk9q0ew71spt1mxywf, collect_by_url) returns 16 output fields. Machine-readable version with the input schema: /scrapers/gd_lk9q0ew71spt1mxywf.json

Quick reference: dataset IDs

Output formats

Control the response format with the format query parameter: These are the format values for /scrape. The full list, NDJSON (default), JSON, JSON lines, CSV and Parquet, and where each applies is in output formats.

Async batch requests

Scrape hundreds of URLs in a single batch job.

API reference

Full parameter and response field reference.