Skip to main content
POST
Get a YouTube community post and its comments
Returns a YouTube community post and its comments. The post is identified by its URL or ID.

Request

Exactly one of postUrl or postId is required. A request that sets both, or none, fails with invalidRequest.

Response

If successful, the response body contains the standard envelope. data contains the post’s text, images and likes, and results lists its comments. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

Results are paginated. To retrieve the next page, pass the value of data.cursor as cursor in a subsequent request. A response that omits cursor is the last page.
  • YouTube transcript: Accepts videoId. Returns what a YouTube video says, from its captions.
  • YouTube video: Accepts videoId. Returns a video’s stats, description, chapters and most replayed moments.
  • YouTube comments: Accepts videoId. Returns a video’s comments, or the replies to one comment.
  • YouTube related videos: Accepts videoId. Returns the videos YouTube suggests next to a video, equivalent to its Up next list.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
postUrl
string

Link to the YouTube community post, like https://www.youtube.com/post/UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ. Send this or postId.

postId
string

YouTube community post id, like UgkxX6gkDxQ0KRucvyG7NLui0LhjHp0CLlfZ. Send this or postUrl.

sort
enum<string>
default:top

YouTube's own comment sort.

Available options:
top,
newest
cursor
string

The cursor from the previous response. Send it as is.

Minimum string length: 1

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required