API · YouTube
GET /youtube/posts/{id}
One YouTube community post: text, images, poll, attached video, likes.
| Request | GET /v1/youtube/posts/{id} |
| Operation id | youtube.community_post.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One YouTube community post: text, images, poll, attached video, likes.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | A post id (Ugkx…) or youtube.com/post/… URL. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The post. | YouTubePost |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. | Error |
YouTubePost fields
| 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 |
Errors use one shape everywhere; see Errors for every code and what to do.