Instagram Comment Scraper API
Resolves a single Instagram comment to a live comment object (current like count, reply count, author, timestamp) without you paginating the comment section. Pass comment_url (an https://www.instagram.com/p/{shortcode}/c/{commentId}/ permalink: reply permalinks .../c/{parent}/r/{reply}/ are best-effort) OR post_url + comment_id. The response includes lookup.post_comment_count (the post's true total, so you can reason about scan coverage) and a lookup.position_hint: pass it back on a later lookup to make the re-check faster (the price is the same).
GET /api/v1/data/instagram/comment · 5 credits per call · The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.
Inputs
comment_url: 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`.post_url: The post URL (a `/p/`, `/reel/`, `/reels/`, or `/tv/` link; an app share link `instagram.com/share/...` works too). Combine with `comment_id`, or with `author_username`/`text_contains` for a search.comment_id: The target comment's numeric id (`pk`). Requires `post_url`.author_username: Return up to `max` comments authored by this username (no comment id needed). Mutually exclusive with `text_contains` and any comment id.text_contains: Return up to `max` comments whose text contains this snippet (case-insensitive). Mutually exclusive with `author_username` and any comment id.position_hint: 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.max: For `author_username`/`text_contains` search: max matches to return (1-20, default 5).
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.source_data.comment.author.avatar_url(string): URL to comment author profile picturesource_data.comment.author.display_name(string): Comment author display namesource_data.comment.author.username(string): Comment author username (null when tombstoned)source_data.comment.author.verified(boolean): Whether the comment author is verifiedsource_data.comment.engagement.likes(number): Like / upvote countsource_data.comment.engagement.replies(number): Reply / child-comment count.source_data.comment.ext.lookup.comments_scanned(number): How many comments were read.source_data.comment.ext.lookup.found_via(string): How the comment was found, such as `id_scan`.source_data.comment.ext.lookup.pages_fetched(number): How many pages of comments were read.source_data.comment.ext.lookup.position_hint(string): A cursor that resumes the scan at this comment.source_data.comment.ext.lookup.post_comment_count(number): The post's total comment count.source_data.comment.ext.lookup.sort_basis(string): The sort order the scan used.source_data.comment.flags.deleted(boolean): Whether the comment is tombstoned (always present, even when false)source_data.comment.flags.pinned(boolean): Pinned flag (null when platform does not surface)source_data.comment.id(string): Platform-specific comment ID (always a string)source_data.comment.parent_id(string): Parent comment ID for nested replies, or null for top-level commentssource_data.comment.post_id(string): ID of the post this comment belongs tosource_data.comment.published_at(any): Comment creation timestamp as an ISO 8601 UTC string.source_data.comment.text(string): Comment body.source_data.comment.url(string)source_data.computed.country.confidence(number)source_data.computed.country.source(string)source_data.computed.country.value(string)source_data.computed.language(string)source_data(object): Everything the platform sent for this call, as it came.
Good to know
- The price depends on what the call returns: from 5 credits to 15 credits.
- The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.
Example call
GET /api/v1/data/instagram/comment?comment_url=https%3A%2F%2Fwww.instagram.com%2Fp%2FCnpPou9hWqq%2Fc%2F18007013966365752%2F
Questions
How much does the Instagram Comment API cost?
Each call costs 5 to 15 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.
What do I send?
7 more inputs are optional: comment_url, post_url, comment_id, author_username, text_contains, position_hint and max. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How fresh is the data?
The same call repeated within 5 minutes may get the same answer, so data can be up to 5 minutes old.
Do I need an Instagram account or developer app?
No. You call SocialHz with your SocialHz API key, and the same key works for every platform.
Can I try it before paying?
Yes. Signing up gives you 10 free credits, with no card needed.
Related Instagram endpoints
- Comment Likers: List the accounts that liked an Instagram comment. 1 credit a page
More Instagram scraper APIs
- Instagram Audio Reels Scraper API
- Instagram Basic Profile Scraper API
- Instagram Comment Likers Scraper API
- Instagram Engagement Scraper API
- Instagram Followers Scraper API
- Instagram Following Scraper API
- Instagram Hashtag Scraper API
- Instagram Highlight Detail Scraper API
- Instagram Highlights Scraper API
- Instagram Location Scraper API
- Instagram Location Posts Scraper API
- Instagram Media Screen Text Scraper API
- Instagram Media Transcript Scraper API
- Instagram Music Trending Scraper API
- Instagram Post Comment Replies Scraper API
- Instagram Post Likers Scraper API
- Instagram Post Stats Scraper API
- Instagram Profile About Scraper API
- Instagram Profile Country Scraper API
- Instagram Profile Full Scraper API
- Instagram Profile Posts Scraper API
- Instagram Profile Posts Full Scraper API
- Instagram Profile Reels Full Scraper API
- Instagram Reels Trending Scraper API
- Instagram Search Scraper API
- Instagram Search Hashtag Scraper API
- Instagram Search Location Scraper API
- Instagram Search Mentions Scraper API
- Instagram Search Music Scraper API
- Instagram Search Popular Scraper API
- Instagram Search Profiles Scraper API
- Instagram Similar Scraper API
- Instagram Stories Scraper API
- Instagram Story Download Scraper API
- Instagram Tagged Scraper API
- Instagram Trending Searches Scraper API
- Instagram User Embed Scraper API
- Instagram Username Suggestions Scraper API