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

Channel

Retrieve YouTube channel data by channel handle, including subscriber, video, and view counts, general metadata, and a list of the channel's videos.

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 Realtimearrow-up-right integration method. If you would like to use Proxy Endpointarrow-up-right, or asynchronous Push-Pullarrow-up-right integration, refer to the Integration Methodsarrow-up-right 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?