YouTube youTube Channel API
Scrape a YouTube channel and its videos. Call the YouTube youTube Channel API and get JSON back in one request. 1 credit per call. Failed calls cost nothing.
Request
Exactly one ofchannelUrl or channelId is required. A request that sets both, or none, fails with invalidRequest.
Response
If successful, the response body contains the standard envelope.data contains the channel’s profile, and results lists the items on the tab requested.
The following example is a real response, truncated: each list shows one item and long strings are cut.
Optional parameters
Billing
Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.Pagination
Results are paginated. To retrieve the next page, pass the value ofdata.cursor as cursor in a subsequent request. A response that omits cursor is the last page. A cursor expires 6 hours after it is issued.
Related methods
- YouTube youTube Transcript: Accepts
videoUrl. Scrape a YouTube video’s transcript. - YouTube youTube Video: Accepts
videoUrl. Scrape a YouTube video page. - YouTube youTube Comments: Accepts
videoUrl. Scrape the comments of a YouTube video. - YouTube youTube Post: Accepts
postUrl. Scrape a YouTube community post and its comments.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.
x >= 1Body
Link to the YouTube channel, like https://www.youtube.com/@mkbhd. Send this or channelId.
YouTube channel handle or id, like @mkbhd. Send this or channelUrl.
YouTube's own channel tab. Releases are a music channel's albums.
videos, shorts, live, playlists, podcasts, releases, posts YouTube's own sort for the videos, shorts and live tabs.
latest, popular, oldest The cursor from the previous response. Send it as is.
1