SocialHolmes
Instagram

How to get Instagram comments with an API

Get the comments on any public Instagram post in four steps, with the exact request, the fields that come back, and a no-code route through a CSV.

The short answer

  1. With code: POST the post's shortcode to the comments endpoint, wait for the run to finish, then read the comments as JSON.
  2. Without code: open New run in the dashboard, pick Instagram and Comments, paste the shortcode, and download a CSV. Or ask Claude through our MCP server.
  3. Meta's Graph API only returns comments on accounts connected to your app, so it can't do this for other people's posts.
$0.50
per 1,000 comments returned
100
comments per page when you read a run
40
comments billed when you ask for 400 and get 40
$0
for a post with comments turned off

Read this as

Developer

Start the run with one POST, then poll the run or register a webhook. Read the result from GET /runs/<id>/comments, up to 100 comments per page. Deduplicate on the comment id.

Example A limit of 2,000 on a busy post costs at most $1. If 1,450 come back, you pay $0.73.

Marketer

Paste the post into the dashboard form, choose how many comments you want, and download the CSV when the run finishes. Read it in any spreadsheet.

Example Comments on your top 10 posts from a campaign, 300 each, is 3,000 rows: $1.50.

Agency

Use comments to check giveaway entries, read how an audience reacts to a sponsored post, or compare reactions across creators in a campaign.

Example 40 sponsored posts, up to 250 comments each, is 10,000 rows: $5.

Researcher

Comment text is public but commenters are people. Decide what you keep before you collect. Most analysis needs the text and time more than the username.

Example A corpus of 100,000 comments for a discourse study costs $50.

To get the comments on an Instagram post, send the post's shortcode to a comments API and read back a list of comments, each with its text, author, likes and time. Meta's own Graph API only does this for accounts connected to your app, so for anyone else's post you need a third-party API.

Step 1: Find the post's shortcode

The shortcode is the part of the post link after /p/. In instagram.com/p/C1a2B3cDEfG/ the shortcode is C1a2B3cDEfG.

Step 2: Start a run

Part of the request Value
Method and path POST /api/public/v1/scrape/instagram/comments
Header Authorization: Bearer followed by your API key
Body { "parameters": { "shortcode": "C1a2B3cDEfG" }, "limit": 500 }
Response 202 Accepted, with a run id. The comments come later.

The limit is the most comments you want. You pay for the comments that come back, never more than the limit. The full reference is in our API docs.

Step 3: Wait for the run to finish

Runs are asynchronous. Either poll GET /api/public/v1/runs/<id> until the status is succeeded or empty, or register a webhook once and we'll send a signed event when each run succeeds or comes back empty. Polling is fine for a one-off script. A webhook is better for anything on a schedule.

Step 4: Read the comments

Author Text Likes Posted
user_a Does this come in other colours? 214 2026-09-18T10:12:40Z
user_b Ordered last week, arrived in two days 57 2026-09-18T11:03:09Z
user_c @user_a the site has three 9 2026-09-18T11:20:51Z
[
  {
    "id": "18000000000000001",
    "username": "user_a",
    "text": "Does this come in other colours?",
    "like_count": 214,
    "reply_count": 3,
    "parent_id": null,
    "created_at": "2026-09-18T10:12:40Z"
  },
  {
    "id": "18000000000000002",
    "username": "user_b",
    "text": "Ordered last week, arrived in two days",
    "like_count": 57,
    "reply_count": 0,
    "parent_id": null,
    "created_at": "2026-09-18T11:03:09Z"
  },
  {
    "id": "18000000000000003",
    "username": "user_c",
    "text": "@user_a the site has three",
    "like_count": 9,
    "reply_count": 0,
    "parent_id": "18000000000000001",
    "created_at": "2026-09-18T11:20:51Z"
  }
]
Source: Illustrative: example rows, not a real run Shown flat here. In the API the author sits under author: author.username and author.id. The third row is a reply: its parent_id points at the first.

GET /api/public/v1/runs/<id>/comments returns the comments as JSON, up to 100 per page. Use offset to page through the rest. Each comment has an id, the text, the time it was posted, its like count, its reply count, and the author (author.username, author.id).

Can I do this without code?

Yes. In the dashboard, open New run, pick Instagram and Comments, paste the shortcode and set how many comments you want. When the run finishes, the comments show as a table, and Download CSV gives you a spreadsheet. If you use Claude or another assistant that supports MCP, connect our MCP server with your API key and ask in plain words, for example "get the first 200 comments on instagram.com/p/C1a2B3cDEfG". It costs the same as the API.

Why do I get fewer comments than the post shows?

The count on a post and the comments you can retrieve rarely match. Instagram hides comments from blocked accounts, filters some by region, holds some back for moderation, and counts replies in the total in some places but not others. Plan around the number you got. A script that retries until the two numbers match will never stop.

Why do I see duplicate comments?

New comments arrive and moderation moves others while you page through a busy post, so pages can overlap. Deduplicate on the comment id. For a complete snapshot of a busy post, ask for it in one run with a higher limit, not several small runs.

How do I get replies to a comment?

Instagram has no separate replies endpoint here. Replies that the run picks up come in the same list as the comments, and each one carries a parent_id that points at the comment it answers. Top-level comments have no parent_id and show a reply_count. TikTok and YouTube work differently: each has its own replies endpoint.

Can I store commenters' usernames?

Comments are public, but a stored record of who said what is personal data in most places. Under GDPR and similar laws you need a lawful basis, a retention period, and a way to answer someone who asks what you hold. Most analysis needs the text and the time, not the username, and storing less makes all of that easier.

What SocialHolmes costs

Campaign comment pull

40 posts
250 comments each
10,000 rows
$5 at $0.50 per 1,000

An illustrative job. The cost comes from the rate card. Posts with fewer comments bill less.

$0.50 per 1,000 comments, with no monthly minimum. New accounts get 1,000 free results, enough to try this on a few of your own posts.

Questions people ask

Can I get Instagram comments without logging in?

Yes, through a third-party API. Meta's Graph API only returns comments on accounts connected to your app, so it can't get comments on posts you don't control.

Why do I get fewer comments than the post says it has?

The count on the post includes comments you can't retrieve: ones hidden from blocked accounts, filtered by region or held for moderation. Replies are also counted differently in different places. Plan around the number you got.

How do I get replies to an Instagram comment?

There is no separate Instagram replies endpoint. Replies the run picks up come in the same list as the comments, each with a parent_id pointing at the comment it answers.

Is storing Instagram comments covered by GDPR?

Usually, yes. A stored record of who said what is personal data, so you need a lawful basis, a retention period and a way to answer access requests. Keeping the text without the username is often enough.

How much does it cost to get Instagram comments?

You set a limit and pay only for the comments that come back: 10,000 comments cost $5, so a post with no comments costs nothing.

Posts are published in English only. The rest of the site reads in ten languages; these do not, because a translated archive is one nobody keeps current.

Try it on your own targets

The only comparison that settles anything is your own. A new account gets 1,000 credits, needs no card, and runs on the same endpoints and rate as a paying one.