Instagram Comment API reference
Your first 10 calls are free, no card needed. Pricing and FAQ
Get a free API keycurl "https://api.insightsocial.app/v1/instagram/comment?comment_url=https%3A%2F%2Fwww.instagram.com%2Fp%2FCnpPou9hWqq%2Fc%2F18007013966365752%2F" \ -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
Returns one comment's current text, like count, reply count, author, and timestamp, plus the post's total comment count for context.
Use it when you already know which comment you want, so you do not have to page through post/comments to find it again.
Metered: 50–150 credits. We reserve the ceiling when the call starts and charge what it actually used when it finishes.
Authorization
apiKey Your key from the dashboard. It starts with isk_.
In: header
Query Parameters
An Instagram comment permalink: https://www.instagram.com/p/{shortcode}/c/{commentId}/ (or a reply permalink .../c/{parent}/r/{reply}/, best-effort). Mutually exclusive with post_url+comment_id. Provide at least one of: comment_url, post_url.
The post URL (a /p/, /reel/, /reels/, or /tv/ link). Combine with comment_id, or with author_username/text_contains for a search. Provide at least one of: comment_url, post_url.
The target comment's numeric id (pk). Requires post_url.
Return up to max comments whose text contains this snippet (case-insensitive). Mutually exclusive with author_username and any comment id.
Widen the scan budget for deeply-buried comments (raises the per-chain page ceiling and deadline).
Opaque token from a prior lookup's lookup.position_hint. Passing it back replays just the last-known sort chain first, making a re-check of an already-found comment cheap.
For author_username/text_contains search: max matches to return (1-20, default 5).
Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.
Value in
- "1"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.insightsocial.app/v1/instagram/comment"{ "success": true, "platform": "string", "endpoint": "string", "schema_version": "2", "pagination": { "next_cursor": "string", "has_more": true, "page_size": 0, "stopped_at": "since" }, "unavailable": [ "string" ], "credits_used": 0, "credits_remaining": 0, "request_id": "string", "cached": true, "idempotent_replay": true, "charge_reason": "string", "free_call": true, "data": { "comment": { "id": "string", "url": "http://example.com", "parent_id": "string", "post_id": "string", "text": "string", "author": { "id": "string", "username": "string", "display_name": "string", "avatar_url": "http://example.com", "verified": true }, "engagement": { "likes": 0, "replies": 0 }, "flags": { "pinned": true, "deleted": true }, "published_at": "2019-08-24T14:15:22Z", "language": "string", "replies": [ {} ], "ext": { "property1": null, "property2": null } } }}