herascrape
Menu
API reference

Instagram Post Comments API

GET/posts/{post_id}/comments

Comments on a post. ``post_id`` accepts a shortcode, the bare media pk or the composite pk; ``user_id`` is the post's owner.

$0.0004 per request ($0.40 per 1,000), flat. Only successful calls are billed.

Parameters

NameInRequiredDescription
post_idpathyes—
user_idqueryyesNumeric id of the post's owner (the post's user.pk)
min_idqueryno—
max_idquerynoWalk toward older comments
carousel_media_idqueryno—
carousel_indexqueryno—

Request

curl "https://api.herascrape.com/posts/3291000000000000000/comments?user_id=528817151" \
  -H "x-api-key: $HERASCRAPE_KEY"

Returns one page of results in the uniform `{ items, next_cursor, has_more }` envelope. Loop on `next_cursor` to page through the rest.