YouTube Channel Playlists API
Query public YouTube channel playlists. Returns items, next_cursor and hasMore. Empty results and failures are free.
Query public YouTube channel playlists. Returns items, next_cursor and hasMore. Empty results and failures are free.
Open product page and API TesterEndpoint and authentication
POST https://api.goanyapi.com/api/v1/youtube/channel/playlistsSynchronous response, without tasks or polling. Use an API Key or supported OAuth Bearer credential. No Path or Query parameters.
Input parameters
| Parameter | Location | Type | Required | Default | Constraints and meaning |
|---|---|---|---|---|---|
| Authorization | Header | string | Yes | — | Bearer YOUR_API_KEY |
| Content-Type | Header | string | Yes | application/json | application/json |
| url | JSON body | string | Yes | — | YouTube channel HTTPS URL, @handle or UC-prefixed channel ID. No prerequisite lookup or separate charge. pattern: ^(?:@[^\s/?#]+|UC[A-Za-z0-9_-]{22}|https://(?:www.|m.)?youtube.com/(?:@[^\s/?#]+|channel/UC[A-Za-z0-9_-]{22}|(?:c|user)/[^\s/?#]+)/?(?:[?#][^\s]*)?)$ minLength: 1 |
| cursor | JSON body | string | No | — | Omit initially. Pass data.result.next_cursor from this same endpoint unchanged. Stop when hasMore is false or the cursor is missing, empty or unchanged. maxLength: 16000 |
Lists expose business items only; raw response and item data are not public fields. Items may include channel/channelId, description and subscriberCountText; comments may include author (string), authorChannelId, publishedTimeText, likeCountText and reply_cursor. Optional fields may be null, empty or absent. Legacy saved responses may use author objects, channel objects, publishedTime or likeCount; do not require those legacy fields in new results.
Output fields
| Field | Type | Meaning |
|---|---|---|
| code | string | ok on success; public error code on failure |
| message | string | Status message |
| data.result | object / null | Public result; null, empty and absent values are preserved |
| data.creditsUsed | integer | Actual configured charge; zero for empty results |
| data.remainingCredits | number | Balance after settlement |
| data.result.next_cursor | null | Next-page cursor; pass unchanged as cursor |
| data.result.hasMore | boolean | More results may exist; a usable different next_cursor is also required |
| data.result.items | array | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].type | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].id | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].title | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].url | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].thumbnailUrl | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].videoCountText | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].channel | string / object / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].channelId | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].description | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].subscriberCountText | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].author | string / object / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].authorChannelId | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].publishedTimeText | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].likeCountText | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
| data.result.items[].videoId | string / null | May appear for the corresponding item type; preserved as returned, not guaranteed. |
Channel lists return items, next_cursor and hasMore. Course items use type course; playlists use type playlist. If a channel does not provide the requested content tab, the request returns HTTP 502 / request_failed without a charge; this differs from an HTTP 200 empty list.
List length is the current page count, not a total. Page size is not fixed. Continue only when hasMore is true and next_cursor is nonempty and differs from the current cursor. Reply queries start with reply_cursor and continue with next_cursor.
Request example
curl -X POST 'https://api.goanyapi.com/api/v1/youtube/channel/playlists' -H 'Authorization: Bearer YOUR_API_KEY' -H 'Content-Type: application/json' --data '{"url":"https://www.youtube.com/@daojie"}'Real response example
This real sample was captured with an earlier response version and may contain legacy field names. It has not been recaptured or rewritten for this update.
Captured from a real request. Only live data.creditsUsed and data.remainingCredits are omitted. Media and caption URLs may have expired.
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"next_cursor": null,
"hasMore": false,
"items": [
{
"type": "playlist",
"id": "PLQ_kQhEjwMWk",
"title": "用AI打造5个100万数字产品",
"url": "https://www.youtube.com/playlist?list=PLQ_kQhEjwMWk",
"thumbnailUrl": "https://i.ytimg.com/vi/bxoYaYIUVUI/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCp98eVlqyz1RBfADG8DWwBAoXqpA",
"videoCountText": "6 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQZ2pJTEPPsxD9A9_wycvnVy",
"title": "AI电商创业",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQZ2pJTEPPsxD9A9_wycvnVy",
"thumbnailUrl": "https://i.ytimg.com/vi/NeA7VjWLBi4/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBmZTxkzxwJv25n0axMrkPurCPLLA",
"videoCountText": "1 video"
},
{
"type": "playlist",
"id": "PLxVm5249zXQZxdtrsYE8DOyBJSiMrspij",
"title": "Claude 打造A营销团队",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQZxdtrsYE8DOyBJSiMrspij",
"thumbnailUrl": "https://i.ytimg.com/vi/IulwLx9729I/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLChtMrMKLMZH68NDLop0GPdP0KISA",
"videoCountText": "15 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQbXPD21ke985LIx8fZHWf6S",
"title": "AI图片视频制作教学",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQbXPD21ke985LIx8fZHWf6S",
"thumbnailUrl": "https://i.ytimg.com/vi/7r4zxBy1ylE/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDUAhu1qOfOVnab_jtPnY_FbAa3kg",
"videoCountText": "6 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQY2sQQC25ZNUhfYbQnt4QjK",
"title": "2026年AI数字产品创意系列教学",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQY2sQQC25ZNUhfYbQnt4QjK",
"thumbnailUrl": "https://i.ytimg.com/vi/OpgRK3TKDKk/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDbvX8esHk72jlX70XwkBhTqcn-Wg",
"videoCountText": "24 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQaEilR3d8i2lEA7BB4nRSal",
"title": "5美金广告打造7位数生意",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQaEilR3d8i2lEA7BB4nRSal",
"thumbnailUrl": "https://i.ytimg.com/vi/K6d3IYkyRA8/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDg6K1hm2uCtFSGoPnufjNT6TfOng",
"videoCountText": "16 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQb1cG8k2ke4PqQ_E7D0znOl",
"title": "Facebook广告2026",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQb1cG8k2ke4PqQ_E7D0znOl",
"thumbnailUrl": "https://i.ytimg.com/vi/iqArxRXw3aI/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBxJ7IJ6mjyVaAEG6QMQjZkZYAvAQ",
"videoCountText": "23 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQaqLnfG7RE2VrT6bO8Lqx88",
"title": "2025 谷歌广告投放教学",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQaqLnfG7RE2VrT6bO8Lqx88",
"thumbnailUrl": "https://i.ytimg.com/vi/0_LK3f-DGvY/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBcbOPINBwk0NA87PJnV1XiAao1Mg",
"videoCountText": "11 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQZXrJHHIDIlJYNaVTEeZl-c",
"title": "用Ai和自动化打造100万网络生意1人运行模式",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQZXrJHHIDIlJYNaVTEeZl-c",
"thumbnailUrl": "https://i.ytimg.com/vi/OpgRK3TKDKk/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDbvX8esHk72jlX70XwkBhTqcn-Wg",
"videoCountText": "34 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQYs-AyrBjGC3YFPm7gI7t8q",
"title": "Shorts-短视频",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQYs-AyrBjGC3YFPm7gI7t8q",
"thumbnailUrl": "https://i.ytimg.com/vi/0RdLHcDbp-Q/hqdefault.jpg?sqp=-oaymwExCOADEI4CSFryq4qpAyMIARUAAIhCGAHwAQH4AbYIgAKAD4oCDAgAEAEYZSBUKEwwDw==&rs=AOn4CLAoVqcLz8dnW4nQpU7rMrZ6397WAg",
"videoCountText": "1 video"
},
{
"type": "playlist",
"id": "PLxVm5249zXQaxmaZJSkhTA_9EX33kC3mz",
"title": "AI赚钱-2025AI创业",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQaxmaZJSkhTA_9EX33kC3mz",
"thumbnailUrl": "https://i.ytimg.com/vi/b2UWx-6QTNQ/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAM0EIDaB6aOO8JVIlcTYFYYeExUA",
"videoCountText": "74 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQablTXOMSd50aMKqN21PPU5",
"title": "知识付费",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQablTXOMSd50aMKqN21PPU5",
"thumbnailUrl": "https://i.ytimg.com/vi/GZ06AwVx_8o/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLB6XkEaXD-FadE6-FIrBHzJIKfTQQ",
"videoCountText": "55 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQa5XsLXnUtIAlacOAUdZ1Ch",
"title": "电商2022",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQa5XsLXnUtIAlacOAUdZ1Ch",
"thumbnailUrl": "https://i.ytimg.com/vi/RTP64qEmqVQ/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBS1yukMuySBCTrPjVSP6EgBkrj3A",
"videoCountText": "4 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQawACFPWdJIfV0ANqktT1K-",
"title": "网络CEO-开启网络创业智慧",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQawACFPWdJIfV0ANqktT1K-",
"thumbnailUrl": "https://i.ytimg.com/vi/nzL6TXSXXoU/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLATUg1e-GB7jw72vc7njWiloIneMg",
"videoCountText": "52 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQaRxZEyY0MKs6KwVa9uAlFH",
"title": "Manychat教学",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQaRxZEyY0MKs6KwVa9uAlFH",
"thumbnailUrl": "https://i.ytimg.com/vi/y_CY09raMt8/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCcyhYRqNwXO3lFYNAJsNuR1szc0Q",
"videoCountText": "8 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQZtEV-R-7T3Ii38qiRABUCt",
"title": "Facebook广告投放(2021)",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQZtEV-R-7T3Ii38qiRABUCt",
"thumbnailUrl": "https://i.ytimg.com/vi/5B5zbHqN1MM/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAXyL2TYoGFVKTDJW1ZPzt7_-dolg",
"videoCountText": "16 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQZ2utMVTCc-ZT8l5--9uRDA",
"title": "自动行销-邮件系统",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQZ2utMVTCc-ZT8l5--9uRDA",
"thumbnailUrl": "https://i.ytimg.com/vi/7kZZEGcZNtU/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDLdMnpudXaQSRoTvzLauBiS3T7-Q",
"videoCountText": "4 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQbWp80-wiDGmFmihOPYqPIv",
"title": "YouTube广告|谷歌视频广告",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQbWp80-wiDGmFmihOPYqPIv",
"thumbnailUrl": "https://i.ytimg.com/vi/IMKNV4Awoyw/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLA4RtWRvvT6q3W9b_Mh4cs7hXeb-g",
"videoCountText": "13 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQYRrVnmHhkmeGfyqF0YFJr8",
"title": "网络创业",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQYRrVnmHhkmeGfyqF0YFJr8",
"thumbnailUrl": "https://i.ytimg.com/vi/cyUBhSPRc0Y/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLC88IMveGTJ2eJs6609178qRQBrQw",
"videoCountText": "92 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQaqzl7MW7Gx0Y3d_AzLP8mi",
"title": "谷歌分析全教程",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQaqzl7MW7Gx0Y3d_AzLP8mi",
"thumbnailUrl": "https://i.ytimg.com/vi/2dnOEFVHMI0/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDQZ7cf6lsByXT1SwDzxUD3aYL9zA",
"videoCountText": null
},
{
"type": "playlist",
"id": "PLxVm5249zXQa7ODovwVqEHX0g7gL1OvbZ",
"title": "YouTube电商",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQa7ODovwVqEHX0g7gL1OvbZ",
"thumbnailUrl": "https://i.ytimg.com/vi/0csqvNEnFXc/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDBoTYI8GxWy4B9kkkugLLZ_Ut0Vw",
"videoCountText": "14 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQYEUwq8dIYfA2pHLJuK8PpI",
"title": "youtube排名首页秘籍",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQYEUwq8dIYfA2pHLJuK8PpI",
"thumbnailUrl": "https://i.ytimg.com/vi/FP0tYI9ud_Q/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLA9G8Jl2D5w9keTvMuo9mngD2HAMg",
"videoCountText": "9 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQaHalF-VV0e8wk9TQa1rDp_",
"title": "谷歌广告推广YouTube秘籍",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQaHalF-VV0e8wk9TQa1rDp_",
"thumbnailUrl": "https://i.ytimg.com/vi/UR0T-xrkjuI/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBDY5X_Bm-NEpLdqTB7ivbdJmHUbw",
"videoCountText": "10 videos"
},
{
"type": "playlist",
"id": "PLxVm5249zXQa7ohJjiSREcsG8X90pA6vH",
"title": "Youtube赚钱攻略",
"url": "https://www.youtube.com/playlist?list=PLxVm5249zXQa7ohJjiSREcsG8X90pA6vH",
"thumbnailUrl": "https://i.ytimg.com/vi/uVRoJcoHMJ4/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAAdiZIuH6jiOc4VtkhmVdh7Y1R6g",
"videoCountText": "16 videos"
}
]
}
}
}Billing and status codes
…
Each endpoint uses its own database-configured price. Only nonempty successful results are charged; empty results and failures are free. Pages are billed separately. Missing optional titles or descriptions do not invalidate a record. Media results are empty when both video and captions are empty.
| HTTP | Meaning |
|---|---|
| 200 | Query completed; may be empty |
| 400 | Invalid JSON or parameters |
| 401 | Authentication failed |
| 402 | Insufficient credits |
| 429 | Rate limited; honor Retry-After |
| 502 | Data request failed |
| 503 | API or pricing not configured |