Introducing the Instagram APIRead more →

Instagram Comment API. Send a post or video link, or an ID.

Text, exact likes and author, from its link. We handle the proxies, blocks and platform changes.

Instagram Comment API at a glance

Returns one public top-level comment on an Instagram post, reel or carousel, from its link or the post's link and comment_id. You get its text, exact like count, posting time, the GIF when it is one, whether the post's author wrote it, and the commenter's username, ID, picture and verified badge.

GET /v1/instagram/comment

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 16 typed fields null when unknown
  • url is all it needs, e.g. https://www.instagram.com/p/DeuOR-CjKE9/c/18172542484466705/
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 16 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.instagram.com/p/DeuOR-CjKE9/c/18172542484466705/
GET /v1/instagram/commentTry in
const params = new URLSearchParams({
  comment_id: "18201877798382683",
  url: "https://www.instagram.com/natgeo/p/DeuOR-CjKE9/",
});
const res = await fetch(`https://socialtap.dev/v1/instagram/comment?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/instagram/commentLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 9 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Instagram doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The comment's permalink (instagram.com/p/<code>/c/<comment ID>/, also on /reel/, /reels/, /tv/ and /<username>/p/ links, m.instagram.com and instagr.am, and a reply's /c/<comment ID>/r/<reply ID>/), or the post the comment is on: a post, reel or carousel link, a share link (instagram.com/share/…), a raw shortcode or a numeric media ID.

  • Write one parser

    Instagram, TikTok, Facebook and 6 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native comment ID (string; Reddit with its t1_ prefix).
post_idstring
ID of the post commented on (equals post.id).
parent_idstring
ID of the comment this replies to; null for top-level comments.
urlstring
Permalink, when the platform has one.
textstring
Comment body as plain text.
authorobject
The commenting account. An account the platform no longer names (a deleted account) has a null id and username and the platform's label as display_name (Reddit: [deleted]).
published_atstring
When the comment was posted, RFC 3339 UTC. Where the platform shows only a relative time ("3 weeks ago"), the latest time that label allows (the fetch time minus the stated amount), listed in approximate_fields.

What teams build with the Instagram Comment API.

  • Check the likes on a comment you track

  • Resolve a shared comment link to its author

  • Verify that a comment is still up

Good to know before you build.

  • Logged out, Instagram shows a post's comments only as a list, newest first, so an older comment on a busy post returns private_or_unavailable.
  • A reply's link also returns private_or_unavailable, because Instagram shows replies only to signed-in visitors.
  • A deleted or hidden comment, one that isn't on the post given, and a reply's ID sent with the post's link return not_found.
  • reply_count, is_pinned, is_liked_by_author and the commenter's display name are null: Instagram doesn't show them logged out.

1 credit per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Any source1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Instagram Comment API.

More in the API reference.

Why is an older comment private_or_unavailable?
Because Instagram has no logged-out lookup by comment ID. We read the post's comments newest first, down to a fixed depth, so a comment further down is reported as unavailable, not deleted.
Does not_found always mean the comment was deleted?
No. A reply's ID sent with the post's link also returns not_found, because logged out Instagram shows only top-level comments, so a reply looks the same as a deleted comment. A reply's own link (/c/<comment ID>/r/<reply ID>/) returns private_or_unavailable.
How much does the Instagram Comment API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs