Social media comments API
Read every comment on your users' posts, reply in the thread, hide spam and delete what has to go, on X, Instagram, YouTube, Facebook and LinkedIn. Same calls for every network.
No card required.
northwind.run Spring trail shoes are in.2d
jess.runs Do these come in wide fit?
1d
northwind.run Yes, wide fit in sizes 7 to 13.now
deals.daily.88 🔥 Make $500 a day from home, link in bio
1d
marco.trails Ordered Tuesday, arrived Thursday. Love them.
20h4 likes
northwind.run Two days, nice. Enjoy the trails, Marco!now
{ "comments": [ …3 comments ], "nextCursor": null }0 credits · Click Reply, Hide or Delete in the thread to see its request.
Moderate a thread in three calls
Use the account id from the connection and the network's post id. Replies go out from your user's own account.
List the comments
Comments come back with their replies, author and like count, newest first. Page through long threads with the cursor.
GET /v1/comments ?platform=instagram&accountId=int_ig_123 &postId=17998412563201{ "comments": [ { "id": "18043…", "text": "Do these come in wide fit?", … } ], "nextCursor": "QVFIU…" }Reply
Send commentId to reply in the thread. Leave it out to comment on the post itself.
POST /v1/comments { "platform": "instagram", "accountId": "int_ig_123", "postId": "17998412563201", "commentId": "18043…", "text": "Yes, wide fit in sizes 7 to 13." }{ "success": true, "commentId": "18051…" }Hide or delete
Hide keeps the comment for its author but takes it off the post for everyone else. Delete removes it.
PATCH /v1/comments/18047… { "platform": "instagram", "accountId": "int_ig_123", "hidden": true }{ "success": true }
Comments endpoints
Same key, same connected accounts and same response shape on every network. Failed calls cost nothing.
| Call | What it does | Endpoint | Credits |
|---|---|---|---|
| List comments | Comments and replies on a post, with author, time and likes | GET /v1/comments | 0 (X: 2 per reply returned) |
| Comment or reply | Comment on a post, or reply to a comment with commentId | POST /v1/comments | 1 (X: 5, or 50 with a link) |
| Hide or unhide | Take a comment off the post without deleting it | PATCH /v1/comments/{commentId} | 0 (X: 4) |
| Delete | Remove a comment | DELETE /v1/comments/{commentId} | 0 (X: 3) |
| Google reviews | List reviews on a Google Business Profile | GET /v1/reviews | 0 |
| Reply to a review | Reply to a Google review, or delete your reply | POST /v1/reviews/reply | 1 |
Other agents
Comments API questions
Something not here? Email hello@postkey.dev. I answer every one myself.
Book a 15-minute callComments work on X, Instagram, YouTube, Facebook and LinkedIn. Google Business reviews have their own list and reply calls.
A hidden comment stays visible to the person who wrote it, so they don't notice and repost it. Delete removes it for everyone.
X charges developers for every read and write. Replies on X cost 5 credits (50 with a link) and listing costs 2 per reply returned. Everywhere else, listing is free and a reply is 1 credit.
Get your key and make the first call.
$ curl -X POST api.postkey.dev/v1/posts -H "x-access-key: …"
No card required.