100 free credits. No credit card required. Get a key

YouTube channel podcasts API

A channel’s podcasts (each one a playlist) from its Podcasts tab.

GET /v1/youtube/channels/{channel}/podcastsBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/youtube/channels/@TheDiaryOfACEO/podcasts",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"kind": "youtube#playlistListResponse",
"items": [
{
"kind": "youtube#playlist",
"id": "PL22egh3ok4cP0T7UZRmP6TMLErZYWMN-l",
"snippet": {
"title": "The Diary Of A CEO",
"channelId": "UCGq-a57w-aPwyi3pW7XLiHw",
"channelTitle": "The Diary Of A CEO",
"thumbnails": {
"high": {
"url": "https://i.ytimg.com/pl_c/PL22egh3ok4cP0T7UZRmP6TMLErZYWMN-l/studio_square_thumbnail.jpg?sqp=CP-WmNgG-oaymwEICNAFENAFSFqi…",
"width": 720,
"height": 720
}
},
"publishedTimeText": "Updated yesterday"
},
"contentDetails": {
"itemCount": 557
}
}
],
"pageInfo": {
"resultsPerPage": 1
}
}

Parameters

NameTypeDescription
channelpath · requiredstringA channel id (UC…), a handle with or without the @, or any channel URL (/@handle, /channel/UC…, /c/name, /user/name). Example: @MrBeast.
afterquerystringThe previous page’s nextPageToken. Tokens last 6 hours.
Response fields

200 with a YouTubePlaylistList, in the shape of YouTube Data API v3 resources.

FieldTypeDescription
kind"youtube#playlistListResponse"
itemsYouTubePlaylist[]
nextPageTokenstringPass as after for the next page. Absent on the last page. Lasts 6 hours.
pageInfoobject
Status codes
StatusMeaning
200The podcasts.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The video, channel, playlist or post does not exist, was removed, or has nothing there.
429Too many requests. Wait for Retry-After seconds.
503YouTube is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

No Podcasts tab?

An empty list.

YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.