YouTube community posts API
A channel’s community posts: text, images, polls, attached videos, likes and comment counts, about 10 a page.
GET /v1/youtube/channels/{channel}/postsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/channels/@MrBeast/posts",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "kind": "youtube#postListResponse", "items": [ { "kind": "youtube#post", "id": "UgkxIkDHJ9iW7XmjtMbke3Ud7rEiV5jSHDnR", "url": "https://www.youtube.com/post/UgkxIkDHJ9iW7XmjtMbke3Ud7rEiV5jSHDnR", "channel": { "id": "UCX6OQ3DkcsbYNE6H8uQQuVA", "title": "MrBeast", "handle": "@MrBeast", "url": "https://www.youtube.com/@MrBeast", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" } } }, "text": "Hunger Games In Real Life drops on Saturday!\nWe designed custom suits that detect when the…", "publishedAt": "2026-11-10T12:00:00.000Z", "publishedTimeText": "2 weeks ago", "likeCount": 309000, "likeCountIsApproximate": true, "commentCount": 6400, "images": [ { "url": "https://yt3.ggpht.com/-nihmRU8RGnrkkYNC73Y_eRRp03ReHeIdKSE8oqRy-HOu0dfZ-7Y5ND61lI9CS3Thlec…", "width": 1400, "height": 1400 }, { "url": "https://yt3.ggpht.com/g2LFXicy-wjSH-5pvMPnOnp0YHZXO0VaOzf8Y9yws0OFoH2yQjx_1abszLqWNv6f7BoJ…", "width": 1400, "height": 1400 } ] }, { "kind": "youtube#post", "id": "Ugkx2lkCYp85jak0n5z7-bq_4ug2Rntk9iWT", "url": "https://www.youtube.com/post/Ugkx2lkCYp85jak0n5z7-bq_4ug2Rntk9iWT", "channel": { "id": "UCX6OQ3DkcsbYNE6H8uQQuVA", "title": "MrBeast", "handle": "@MrBeast", "url": "https://www.youtube.com/@MrBeast", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" } } }, "text": "These last two videos are the best content we’ve ever made and somehow our next 3 uploads …", "publishedAt": "2026-10-25T12:00:00.000Z", "publishedTimeText": "1 month ago", "likeCount": 176000, "likeCountIsApproximate": true, "commentCount": 5000, "images": [ { "url": "https://yt3.ggpht.com/9davaq2roo2vRpZ80IIGBiCAy6CmeYfm17AkJbLofKYVreyWRk9Y3SF2tcHwTpdGSzRX…", "width": 988, "height": 988 } ] }, "… 1 more" ], "pageInfo": { "resultsPerPage": 6 }}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 YouTubePostList, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#postListResponse" | |
items | YouTubePost[] | |
nextPageToken | string | Pass as after for the next page. Absent on the last page. Lasts 6 hours. |
pageInfo | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of posts. |
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
Members-only posts?
They are flagged isMembersOnly; their content is not shown to logged-out visitors.
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.