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 failureimport 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
| Name | Type | Description |
|---|---|---|
channelpath · required | string | A channel id (UC…), a handle with or without the @, or any channel URL (/@handle, /channel/UC…, /c/name, /user/name). Example: @MrBeast. |
afterquery | string | The previous page’s nextPageToken. Tokens last 6 hours. |
Response fields
200 with a YouTubePlaylistList, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#playlistListResponse" | |
items | YouTubePlaylist[] | |
nextPageToken | string | Pass as after for the next page. Absent on the last page. Lasts 6 hours. |
pageInfo | object |
Status codes
| Status | Meaning |
|---|---|
200 | The podcasts. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | YouTube 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.