YouTube Channel Posts API
YouTube Channel Posts. HTTPS resource URLs are preferred where supported. Empty results and failures are free.
YouTube Channel Posts. HTTPS resource URLs are preferred where supported. Empty results and failures are free.
Open product page and API TesterEndpoint and authentication
POST https://api.goanyapi.com/api/v1/youtube/channel/postsSynchronous 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 | string | 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 | null | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].content | 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[].publishedTimeText | string / null | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].likeCountText | string / null | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].imageUrls | array | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.items[].author | string / object / null | 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[].authorChannelId | 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/posts' -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": "4qmFsgKBARIYVUNoWFpwckRUNi1RUFRST3gxbXB1eUlBGkxFZ1Z3YjNOMGM2b0RLQW9rVVRKb1ExSkdVbGRSYTA1clpXMVNWMVZxUWxkVU1rWlpXbnBHV2swd05VUlNWVVpDS0FyeUJnUUtBa29BmgIWYmFja3N0YWdlLWl0ZW0tc2VjdGlvbg%3D%3D",
"hasMore": true,
"items": [
{
"type": "post",
"id": "Ugkxy876EkaaJVeVFiJfDl1pUdS1BcpRvfE3",
"title": null,
"content": "🔥Claude Project 刚刚更新!千万别乱点升级!10个实用方法让新版变成 AI 项目经理,关了电脑还在帮你干活(2026 最新教程)⬇️:\nhttps://www.youtube.com/watch?v=MZ63H...\n记得订阅新频道哦✅",
"url": "https://www.youtube.com/post/Ugkxy876EkaaJVeVFiJfDl1pUdS1BcpRvfE3",
"publishedTimeText": "3 weeks ago",
"likeCountText": "3",
"imageUrls": [
"https://yt3.ggpht.com/w_Zp6UJQUfBYnKfeQ5JNZ9GSfvXNI7-nMyaCZNob1P7D5wB828j-VohszEeuU97KhZTr3B2YeM7LQsA=s640-c-fcrop64=1,00000000ffffffff-nd-v1-rwa"
],
"author": "DAOJIE"
},
{
"type": "post",
"id": "UgkxRrIQQhwBim0myaoX3T44W2QZWREo1fG5",
"title": null,
"content": "最近Claude Opus5.5太强了,完全可以用它投放广告和社交媒体,\n如果你不知道怎么用,一定要学啊!我把最近新用法和实操放到了这期视频里:\nhttps://www.youtube.com/watch?v=_lrvo...",
"url": "https://www.youtube.com/post/UgkxRrIQQhwBim0myaoX3T44W2QZWREo1fG5",
"publishedTimeText": "1 month ago",
"likeCountText": "13",
"imageUrls": [
"https://yt3.ggpht.com/F6hmyyOrUczOz7zOEhCyXZSxT4r7V-BAMqeF2x3rlFyVa4OpX57g1_khMNULuBd9uL6ZA2TdQ4es3VI=s640-c-fcrop64=1,00000000ffffffff-nd-v1-rwa"
],
"author": "DAOJIE"
},
{
"type": "post",
"id": "UgkxN08YL0HeHoxB-yfi4aPygSp4AYdTSXHd",
"title": null,
"content": "Claude destop 崩了?有人跟我一样吗",
"url": "https://www.youtube.com/post/UgkxN08YL0HeHoxB-yfi4aPygSp4AYdTSXHd",
"publishedTimeText": "8 months ago",
"likeCountText": "6",
"imageUrls": [
"https://yt3.ggpht.com/v3wwTm5poZtRTYWeYop8XS78aR_LbIZQNyFfVpDbscal-dNcNJrMOJCOXGbqGWD_PG3Wpti0Ki4vfA=s640-c-fcrop64=1,20000000dfffffff-rw-nd-v1"
],
"author": "DAOJIE"
},
{
"type": "post",
"id": "UgkxgJFDfW1OEljqOKlO5-rhiCCi_22xemYr",
"title": null,
"content": "全球谷歌云和Cloudflare用户,今天谷歌云服务器outrage, \n影响97%的云端服务,我们的系统网站一样\n谷歌说正在检查和抢修,后续的情况我们会及时通知大家👊",
"url": "https://www.youtube.com/post/UgkxgJFDfW1OEljqOKlO5-rhiCCi_22xemYr",
"publishedTimeText": "1 year ago",
"likeCountText": "6",
"imageUrls": [
"https://yt3.ggpht.com/oOlgqSsbBF_KHQrXfR7VnjA_Ydt1zgzYff8zthwW8uuItbR-5bDyo0CU2PRTRWizma_T1dHJfUNCkHE=s640-c-fcrop64=1,023e0000fdc1ffff-rw-nd-v1",
"https://yt3.ggpht.com/rGvYm_N1ova4uhttu3rMXKcAAhWWhJVz_J1jKN9bnz3aBQ6ISODPjFabEFtJW2o8Fm6M8SQAPsB3=s640-c-fcrop64=1,45050000bafaffff-rw-nd-v1"
],
"author": "DAOJIE"
},
{
"type": "post",
"id": "Ugkx2bNJ2wQv4h5v39JSYhIZ4aXp75Mnc_UC",
"title": null,
"content": "2025年最新YouTube视频广告投放,让你的订阅,观看,销量3增长\n全实操视频",
"url": "https://www.youtube.com/post/Ugkx2bNJ2wQv4h5v39JSYhIZ4aXp75Mnc_UC",
"publishedTimeText": "1 year ago",
"likeCountText": "3",
"author": "DAOJIE"
},
{
"type": "post",
"id": "UgkxYx99_GVqtCVAAK3XZpQarhtM8i2PaCy6",
"title": null,
"content": "对Ai创业的朋友们注意啦!Daojie团队的Ai和自动化工程师做的AI健康项目,非常有价值!\nhttps://www.youtube.com/watch?v=ehToK...",
"url": "https://www.youtube.com/post/UgkxYx99_GVqtCVAAK3XZpQarhtM8i2PaCy6",
"publishedTimeText": "1 year ago",
"likeCountText": "3",
"author": "DAOJIE"
},
{
"type": "post",
"id": "Ugkxr8S_saWADx8PT899EDstQaKcNXVQZLXQ",
"title": null,
"content": "作为一名产品经理和企业主,我会改用DeepSeek吗?答案是不会!\n这是我的AI广告系统:https://leadsale.io/business-plan-hom... API。\n\n我问DeepSeek:“金正恩是独裁者吗?” DeepSeek给我讲了一个故事和一个理论,\n然后说**“我们不要谈这个问题。”**\n\n但当我问ChatGPT同样的问题,它直接回答:“是!”\n\n如果你要雇人,你是想要一个诚实的人,还是一个回避问题的人?",
"url": "https://www.youtube.com/post/Ugkxr8S_saWADx8PT899EDstQaKcNXVQZLXQ",
"publishedTimeText": "1 year ago",
"likeCountText": "1",
"author": "DAOJIE"
},
{
"type": "post",
"id": "Ugkxqh_ditS2AAx7NaXxk4f5Rb_cyPvaajAi",
"title": null,
"content": "多账户运营社交媒体矩阵!解决方案来了\n想每天节省3小时社交媒体运营时间吗?2024年最新「多账户运营系统」\n让您告别繁琐的切换平台,只需3步,轻松管理10个社交账号!\n今天我将揭秘,为什么月入10万的社交媒体运营总监是怎么做的",
"url": "https://www.youtube.com/post/Ugkxqh_ditS2AAx7NaXxk4f5Rb_cyPvaajAi",
"publishedTimeText": "1 year ago",
"likeCountText": "3",
"author": "DAOJIE"
},
{
"type": "post",
"id": "UgkxUixlgj2UwxT1p9tzyLkx83MIu71LZHkK",
"title": null,
"content": "谷歌评价在海外做生意太重要了,评价=排名=引流=客户\n如果有一种方法和工具能引导更多评价,只!注意⚠️只留下好的评价\n自动回复,自动邀请评价!\n是的解决评价数量的问题,同时过滤不好的评价,今天这一集我来教你操作\nhttps://youtu.be/bdFLON0Q3aI",
"url": "https://www.youtube.com/post/UgkxUixlgj2UwxT1p9tzyLkx83MIu71LZHkK",
"publishedTimeText": "2 years ago",
"likeCountText": "5",
"author": "DAOJIE"
},
{
"type": "post",
"id": "UgkxbQJaEuGASFC4LGtlQp7anD7TXGWoPXnh",
"title": null,
"content": "历经3个月整理的网络营销百科全书,操作步骤SOP基本完成\n所有社群新老朋友本周全部开放权限\n后面会继续增加以及持续更新\n月底会完整AI 搜索工具,配合百科全书,搜索的所有问题,\n立即出详细的说明和操作指示图\n产品,社群,工具-全面AI化\n最好的会给我们的社群和学员\n感谢支持",
"url": "https://www.youtube.com/post/UgkxbQJaEuGASFC4LGtlQp7anD7TXGWoPXnh",
"publishedTimeText": "2 years ago",
"likeCountText": "4",
"author": "DAOJIE"
}
]
}
}
}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 |