Instagram comment moderation through the API
Instagram's API lets a professional account read the comments on its posts and Reels, reply in public, reply in private with one DM per comment within 7 days, hide a comment or show it again, and delete it. Reading returns top-level comments, newest first, up to 50 per request, with replies available by field expansion.
easyCoexistence reads comments with list_social_comments, replies in public or by private DM with reply_to_comment, and hides or shows them with hide_comment, from Claude, ChatGPT or your own code.
Comments returned per request on a post: top-level only, newest first.
How long after a comment a private reply can still be sent to its author.
Private replies to post and Reel comments an app can send per Instagram professional account.
The comments the API replies to; a reply to a reply is added to the top-level comment.
How are comments read?
Through GET /<IG_MEDIA_ID>/comments, which returns top-level comments in reverse chronological order, up to 50 per request; replies come with them only when you ask for the replies field. Comments cannot be filtered by timestamp. Comments on age-gated media are not returned, nor are comments from people the account has restricted, unless they are unrestricted and the comments approved, and Live comments can be read only during the broadcast.
For new comments, Meta strongly recommends the comments webhook over polling, since it keeps the app clear of rate limits.
How do public replies work?
POST /<IG_COMMENT_ID>/replies with the message text posts a reply under the comment. Only top-level comments take replies: replying to a reply adds yours to the top-level comment's thread. Hidden comments cannot be replied to, and comments on a Live video cannot get a public reply; a private reply is the route there.
How do private replies work?
A private reply turns a comment into a DM. POST /<IG_ID>/messages with recipient.comment_id set to the comment, and the commenter receives your text in their inbox if they follow the account, or in message requests if they do not, with a link to the post.
- One private reply per comment.
- Sent within 7 days of the comment; on a Live, only during the broadcast.
- A follow-up only after the person answers, and within 24 hours of their response.
- Up to 750 an hour per account on posts and Reels, and 100 a second on Live comments.
How are comments hidden and shown again?
POST /<IG_COMMENT_ID> with hide set to true hides a comment, and hide set to false shows it again; the comment's hidden field reports which state it is in. Comments the account posts on its own media always stay visible, whatever hide says, and comments on a Live video cannot be hidden. The call needs a token from the account that owns the media.
Can comments be deleted or turned off?
Yes. DELETE /<IG_COMMENT_ID> removes a comment, and only the owner of the media can do it through the API, even when the request comes from the comment's author. POST /<IG_MEDIA_ID> with comment_enabled set to false turns comments off on a post, and true turns them back on. Comments on a Live video can be neither deleted nor hidden through the API.
Which permissions and events does it use?
With Instagram Login, comment moderation needs instagram_business_basic and instagram_business_manage_comments, the same pair that covers private replies. New comments arrive on the comments webhook field, which with Instagram Login also carries mentions of the account. Comment notifications are sent only for media owned by public accounts, which professional accounts always are.
Common mistakes
- Replying to a hidden comment. The API refuses it, so show the comment again first or leave it unanswered.
- Expecting replies in the comment list. The comments edge returns top-level comments; request the replies field to get the threads.
- Trying to hide the account's own comment. Comments the media owner posts on its own media stay visible regardless.
- Polling every post for new comments. The comments webhook delivers them as they arrive and spares the rate limit.
Comment-to-DM rules and automations reply to comments around the clock, and automations can hide them too. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Can I reply to a hidden Instagram comment?
No. The API refuses replies to hidden comments, so show the comment again first or leave it unanswered.
How many private replies can one comment get?
One. Any further message waits until the person answers, and then has to go out within 24 hours of their response.
Can I reply to comments on an Instagram Live?
Only privately. Live comments can be read during the broadcast and get a private reply while it lasts, but not a public one.
Can Instagram comments be filtered by date through the API?
No. GET /<IG_MEDIA_ID>/comments takes no timestamp filter and returns top-level comments newest first, up to 50 per request, so use the comments webhook to catch new ones.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on