Social media5 min readBy Purrkey teamUpdated

How to list Instagram comment replies by comment ID

Get the replies to a specific Instagram comment with text, author, timestamp, likes, and a cursor for the next page

On this page

You have three Instagram post URLs and one comment ID for each, and you need the replies to those comments for a moderation review. The deliverable is a table with one row per reply and columns for the comment ID you add, reply id, author, text, verified, createdUtc, likes, userId and avatarUrl, plus data.nextCursor for paging. No run has been executed for this guide, so the values below are placeholders showing the shape

Example input and table design

Example inputs, with invented comment IDs and sample post URLs. Replace them with your own values

commentIdurl
17912345678901234Full Instagram post or reel URL 1
17912345678901235Full Instagram post or reel URL 2
17912345678901236Full Instagram post or reel URL 3

The agent fills this design. Values here are placeholders showing the shape

commentIdidauthortextverifiedcreatedUtclikesuserIdavatarUrldata.nextCursor
17912345678901234(reply id)(username)(reply text)true or false(epoch seconds)(count or empty)(user id)(avatar URL)(cursor or null)

The commentId column is one you add; the other fields come from the response. Keep data.nextCursor beside the rows it belongs to because it controls whether another call is needed for that comment

What the tool takes

anyapi.instagram.comment_replies is called through POST /v1/runs with toolId anyapi.instagram.comment_replies. The input contract includes commentId, url and cursor. commentId is required and is an Instagram comment ID, and the contract describes it as a comment's id from the Instagram Post Comments endpoint. url is required and is the full Instagram post or reel URL the comment belongs to. cursor is optional and comes from a previous response's nextCursor

If you still need the comment IDs, the companion guide at https://purrkey.app/blog/export-instagram-post-comments covers exporting Instagram post comments

First page and paging limit

The limit sits at the call step: one comment per call. Replies come back oldest first. data.nextCursor is an opaque cursor for the next page of replies, or null when this lane has no more. To continue to another page for the same comment, pass data.nextCursor back as cursor

How to read the reply fields

Read found first. If found is false, reason carries not_found and there are no reply rows; the contract says a found: false answer is a successful call, not an error. If data is present, data.comments holds the replies and data.nextCursor tells you whether another page exists

Use these fields to fill the moderation table. id is the reply's Instagram comment ID. author is the username without the @ prefix. text is the reply content. verified is whether the author has a verified badge. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. likes is the like count and is omitted when no like count is reported. userId and avatarUrl identify the replying account

The decision column is yours, not the tool's; text, createdUtc and likes give the facts for it

The agent prompt

The prompt below asks the agent to check the current inputs and price before running and to return the table. Replace the example values with your own

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list Instagram comment replies for the three example comment IDs and post URLs below. Check the current inputs and price of anyapi.instagram.comment_replies before running anything. Call the tool once per comment for the first page. If data.nextCursor is not null, call again with that value as cursor for the same commentId and url. Return a table with commentId, id, author, text, verified, createdUtc, likes, userId, avatarUrl and data.nextCursor. Keep rows grouped by commentId. Do not post replies or send messages.

Example inputs, replace with your own:
commentId 17912345678901234, url Full Instagram post or reel URL 1
commentId 17912345678901235, url Full Instagram post or reel URL 2
commentId 17912345678901236, url Full Instagram post or reel URL 3

Estimated tool cost

The catalog lists the unit as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The price is up to $0.0024 per call, read through the Purrkey catalog on November 12, 2026. The totals below are ceilings, not settled charges. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
First page for one commentcalls x max price$0.0024 per call1$0.0024
First page for three commentscalls x max price$0.0024 per call3$0.0072

The one-comment run is 1 call. The three-comment run is 3 calls. Each extra page for a comment is another call at the same ceiling

Run the first page

Start with the first page for your three comments at https://purrkey.app/tools/instagram?q=comment_replies. Keep the run to three calls before you decide whether to page through longer threads

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Instagram.
Explore Instagram tools and pricing

FAQ

How do I list replies to an Instagram comment?

Call the Instagram comment replies tool with the comment ID and the full post or reel URL. The response returns data.comments with the replies and data.nextCursor for the next page.

What inputs does the Instagram comment replies tool take?

The input contract includes commentId, url and cursor. commentId and url are required; cursor is optional and comes from a previous response's nextCursor.

What does data.nextCursor mean?

It is an opaque cursor for the next page of replies, or null when this lane has no more. Pass it back as cursor to continue.

What does found false mean?

It means there is no result, and the reason field indicates that the target was not found. The contract says an answer with found set to false is a successful call, not an error.

How much does it cost to list replies for three comments?

At $0.0024 per call, the first page for three comments is 3 calls and $0.0072. Successful runs settle at the actual AnyAPI charge.

Are replies returned oldest first?

Yes. The contract says data.comments is populated oldest first, and data.nextCursor controls the next page.

What fields describe each reply?

Each reply has id, author, text, verified and createdUtc. The response can also include likes, userId and avatarUrl; likes is omitted when no like count is reported.

Next step

Try this with Instagram

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Instagram tools

Share this article