---
title: "YouTube Community Post Details API"
method: GET
path: "/v1/youtube/community-post-details"
tags: ["YouTube"]
---

# YouTube Community Post Details API

`GET /v1/youtube/community-post-details`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/youtube/community-post-details`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

One community post — list schema + commentCount trio + isEdited.

Paste a YouTube community post URL (/post/Ugkx… or /community?lb=) and get the same clean shape as Community Posts list items: text, images[], postType, pollOptions + totalVotes when poll (omitted on non-polls), likeCount trio, publishedTimeApprox vocabulary with isEdited (no "(edited)" in the time label), channel{}, linkedVideos[], and commentCount + commentCountText + commentCountIsApproximate. Trailing whitespace / newlines from a curl or clipboard paste are stripped — they are not a 500. A watch URL or a URL that still contains a control character is 400. Flat 1 credit.

Docs: https://captapi.com/apis/youtube-community-post-details

## Query parameters

- `url` string, required
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `platform` string: Platform identifier for this response (matches the endpoint's platform).
    - `id` string: Stable platform ID for the item.
    - `url` string: Canonical URL of the item.
    - `text` string: Text content.
    - `publishedAt` string: Publish date (ISO 8601) when the platform exposes an absolute timestamp.
    - `channelName` string: Name of the channel.
    - `channelUrl` string: URL of the channel.
    - `likes` string: Like count as a number when YouTube exposes it — prefer likeCount + likeCountText on this endpoint.
    - `comments` integer: Comment count.
    - `images` string[]: Image URLs attached to the community post.
    - `publishedTimeText` string: Original relative publish label from the platform when an exact timestamp was not available (e.g. "1 year ago").

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
