YouTube
YouTube channel API
Get a channel’s profile and one tab of videos, shorts, live, playlists, podcasts or posts. Call the YouTube channel API for JSON. 1 credit per call.
POST
Get a channel's profile and one tab of videos, shorts, live, playlists, podcasts or posts
Returns a channel’s profile and one tab of videos, shorts, live, playlists, podcasts or posts. The channel is identified by its URL or ID.
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.
For every field, see the response schema on this page.
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 channel search: Accepts
channelUrlandquery. Searches one channel’s videos, equivalent to the search box on its YouTube page. - YouTube transcript: Accepts
videoUrl. Returns what a YouTube video says, from its captions. - YouTube video: Accepts
videoUrl. Returns a video’s stats, description, chapters and most replayed moments. - YouTube comments: Accepts
videoUrl. Returns a video’s comments, or the replies to one comment.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
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.
Available options:
videos, shorts, live, playlists, podcasts, releases, posts YouTube's own sort for the videos, shorts and live tabs.
Available options:
latest, popular, oldest The cursor from the previous response. Send it as is.
Minimum string length:
1