toolzerhub API Docs

List Instagram post comments

Returns comments on a public Instagram post or reel, identified by code. sort_type picks popular, recent or verified order. Pass pagination_token from the previous response for the next page.

2 credits / requestBilled only on success
GET
/v2/instagram/media/comments

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

code*string

Shortcode from the post URL (DDPp2UWzWEm in instagram.com/p/DDPp2UWzWEm/), numeric media ID, or the full post or reel URL.

Length1 <= length
pagination_token?string

Pass the previous response's pagination_token value.

sort_type?string

Comment order: popular, recent or verified. Omit to use Instagram's default order.

Value in

  • "popular"
  • "recent"
  • "verified"
curl -X GET "https://example.com/v2/instagram/media/comments?code=DDPp2UWzWEm" \  -H "x-api-key: YOUR_API_KEY"
{  "data": {    "comments": [      {        "property1": null,        "property2": null      }    ],    "comment_count": 0,    "has_more_comments": true,    "pagination_token": "string",    "property1": null,    "property2": null  }}