API reference

Comments

Sync, list and answer comments.

Sync comments

POST/api/comments/sync

Pulls the latest comments from every connected YouTube channel. Returns how many new comments were stored per account.

List comments

GET/api/comments

Newest first. Optional query parameters: accountId, limit (default 50, max 200) and offset. Returns { comments, total }.

Act on a comment

POST/api/comments

The action field picks what to do:

actionFieldsEffect
replycommentId, accountId, replyTextPosts a reply on YouTube.
spamcommentId, accountIdMarks it as spam and reports it to YouTube.
mark_readcommentIds (array)Marks comments as read.
curl -X POST https://rostido.com/api/comments \
  -H "X-API-Key: rostido_xxx" \
  -H "Content-Type: application/json" \
  -d '{"action": "reply", "commentId": "comment_id", "accountId": "account_id", "replyText": "Thank you!"}'