Documentation has been updated: see help center and changelog in one place.

YouTube Channel

Learn how to scrape YouTube channel data and the channel's video list using Web Scraper API. Find out more about its parameters and practical examples.

The youtube_channel source gathers all key channel data, including subscriber, video, and view counts, general metadata, and a list of its videos by providing the YouTube channel_handle.

Request samples

The following example demonstrates how to retrieve channel information and a list of videos from a channel.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "youtube_channel",
        "channel_handle": "@Oxylabs",
        "parse": true,
        "limit": 10
    }'

Our examples use synchronous Realtime integration method. If you would like to use Proxy Endpoint, or asynchronous Push-Pull integration, refer to the Integration Methods section.

Request parameter values

Parameter
Description
Default Value

source

Sets the scraper.

youtube_channel

channel_handle

YouTube channel handle (@example)

parse

Specifies whether to parse the scraped data into a structured JSON format.

true

limit

Limits the number of videos returned in the videos array.

20

callback_url

URL to your callback endpoint. More info.

– mandatory parameter

Last updated

Was this helpful?