Docs
YouTube

Comments

List and create comments on published YouTube videos.

Manage comments on a published YouTube destination.

Requires youtube.force-ssl.

List

curl "https://api.onepostly.com/v1/posts/POST_ID/comments?destinationId=DEST_ID&limit=25" \
  -H "x-api-key: op_YOUR_KEY"

Create

curl -X POST https://api.onepostly.com/v1/posts/POST_ID/comments \
  -H "x-api-key: op_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "destinationId": "DEST_ID",
    "text": "Thanks for watching",
    "parentCommentId": "OPTIONAL_PARENT_COMMENT_ID"
  }'

Optional parentCommentId nests the reply under another comment.

Delete

curl -X DELETE "https://api.onepostly.com/v1/posts/POST_ID/comments/COMMENT_ID?destinationId=DEST_ID" \
  -H "x-api-key: op_YOUR_KEY"

Idempotent if the comment is already gone.

See also