Skip to content

YouTube create comment thread API: POST /youtube/v3/commentThreads

When PubNio calls YouTube's create comment thread request, POST /youtube/v3/commentThreads: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

PubNio calls YouTube’s POST /youtube/v3/commentThreads (youtube.commentThreads.insert) to post a video’s first comment.

How PubNio calls it

  • First comments: a post created with POST /api/v1/posts or sent with POST /api/v1/posts/{postId}/publish that carries a first comment gets it after the post publishes.
  • PubNio sends the comment as snippet.topLevelComment.snippet.textOriginal for the video it uploaded, and keeps the returned top-level comment ID.

Scopes

  • The pinned spec accepts any one of one scope: https://www.googleapis.com/auth/youtube.force-ssl.
  • PubNio’s Google sign-in requests https://www.googleapis.com/auth/youtube.force-ssl, which satisfies it.
  • Before a first comment goes out, PubNio checks that the account granted https://www.googleapis.com/auth/youtube.force-ssl.

Errors

PubNio has no YouTube error code pages yet. Provider error codes covers the providers that have them.

Spec and changes

youtube.commentThreads.insert in the pinned spec, revision 20261124. YouTube reference: youtube.commentThreads.insert reference.

Checked weekly; no change to POST /youtube/v3/commentThreads recorded since this revision. Change tracker.

Limits

Sources

Type to search…

↑↓ navigate↵ selectEsc close