100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
idpath · requiredstringA post id (Ugkx…) or youtube.com/post/… URL.
Response fields

200 with a YouTubePost, in the shape of YouTube Data API v3 resources.

FieldTypeDescription
kind"youtube#post"
idstring
urlstring
channelYouTubeChannelRefThe channel a video or post belongs to (not a Data API part).
textstring
publishedAtstringPosted (estimated from the label), ISO 8601 in UTC.
publishedTimeTextstring
likeCountinteger
likeCountIsApproximateboolean
commentCountinteger
imagesYouTubeThumbnail[]
videoobject
pollobject
linksstring[]
isMembersOnlyboolean
Status codes
StatusMeaning
200The post.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The video, channel, playlist or post does not exist, was removed, or has nothing there.
429Too many requests. Wait for Retry-After seconds.
503YouTube 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.