Skip to content

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

  • deals.daily.88 🔥 Make $500 a day from home, link in bio

    1d

  • marco.trails Ordered Tuesday, arrived Thursday. Love them.

    20h4 likes

GET /v1/comments?platform=instagram&postId=1799…200 OK
{ "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.

  1. 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…" }
  2. 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…" }
  3. 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.

Comments endpoints: endpoints and credit costs
CallWhat it doesEndpointCredits
List commentsComments and replies on a post, with author, time and likesGET /v1/comments0 (X: 2 per reply returned)
Comment or replyComment on a post, or reply to a comment with commentIdPOST /v1/comments1 (X: 5, or 50 with a link)
Hide or unhideTake a comment off the post without deleting itPATCH /v1/comments/{commentId}0 (X: 4)
DeleteRemove a commentDELETE /v1/comments/{commentId}0 (X: 3)
Google reviewsList reviews on a Google Business ProfileGET /v1/reviews0
Reply to a reviewReply to a Google review, or delete your replyPOST /v1/reviews/reply1

Comments is one of 6 APIs

Every API uses the same key, profiles and connected accounts.

Which networks each Postkey API supports
APIXInstagramYouTubeFacebookTikTokLinkedInPinterestGoogle Business
Publishing
Scheduling
Analytics
CommentsYou're here
Comment to DM
Reviews

Comments API questions

Something not here? Email hello@postkey.dev. I answer every one myself.

Book a 15-minute call
  • Comments 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.