herascrape
Menu
API reference

Instagram Post Counts API

GET/posts/counts

Comment, like and play counts for up to 20 posts in a single call, billed as one request. Pass a comma-separated list of shortcodes or pks; the response carries basic info only (pk, code, media_type, taken_at, comment_count, like_count, play_count).

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

Parameters

NameInRequiredDescription
idsqueryyesComma-separated post shortcodes or pks, up to 20 per call. More than 20 returns invalid_parameter.

Request

curl --request GET \
  --url 'https://api.herascrape.com/posts/counts?ids=DQSPu0hE_pP%2CC8xReelpQ2z' \
  --header "x-api-key: $HERASCRAPE_KEY"

`data` holds `{ items }`, one basic-info record per post — `pk`, `code`, `media_type`, `taken_at`, `comment_count`, `like_count` and `play_count`.