YouTube community post API
One YouTube community post by id or URL: text, images, poll, attached video, likes and comment count.
GET /v1/youtube/posts/{id}Beta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/posts/UgkxIkDHJ9iW7XmjtMbke3Ud7rEiV5jSHDnR",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "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": { "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s88-c-k-c0…", "width": 88, "height": 88 }, "medium": { "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s240-c-k-c…", "width": 240, "height": 240 }, "high": { "url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s800-c-k-c…", "width": 800, "height": 800 } } }, "text": "Hunger Games In Real Life drops on Saturday!\nWe designed custom suits that detect when they’re hit by magnetic foam weap…", "publishedAt": "2026-11-10T12:00:00.000Z", "publishedTimeText": "2 weeks ago", "likeCount": 309000, "likeCountIsApproximate": true, "images": [ { "url": "https://yt3.ggpht.com/-nihmRU8RGnrkkYNC73Y_eRRp03ReHeIdKSE8oqRy-HOu0dfZ-7Y5ND61lI9CS3Thlec0shis6WGXQ=s1400-c-fcrop64=1,0…", "width": 1400, "height": 1400 }, { "url": "https://yt3.ggpht.com/g2LFXicy-wjSH-5pvMPnOnp0YHZXO0VaOzf8Y9yws0OFoH2yQjx_1abszLqWNv6f7BoJ3VnXmB6S=s1400-c-fcrop64=1,000…", "width": 1400, "height": 1400 } ]}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | A post id (Ugkx…) or youtube.com/post/… URL. |
Response fields
200 with a YouTubePost, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#post" | |
id | string | |
url | string | |
channel | YouTubeChannelRef | The channel a video or post belongs to (not a Data API part). |
text | string | |
publishedAt | string | Posted (estimated from the label), ISO 8601 in UTC. |
publishedTimeText | string | |
likeCount | integer | |
likeCountIsApproximate | boolean | |
commentCount | integer | |
images | YouTubeThumbnail[] | |
video | object | |
poll | object | |
links | string[] | |
isMembersOnly | boolean |
Status codes
| Status | Meaning |
|---|---|
200 | The post. |
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
Deleted posts?
404 target_not_found, never charged.
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.