# List Instagram post comments

Returns top-level comments on a public Instagram post, ordered by `sort_by`. If a comment's `child_comment_count` is above 0, pass its ID to `/v1/instagram/post/comments/replies`. Page with `pagination_token`.

- Platform: Instagram V3
- Request: `GET https://api.toolzerhub.com/v3/instagram/post/comments`
- Auth: `x-api-key` header
- Cost: 3 credits per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram-v3/post/get-instagram-post-comments-v3

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `code` | query | yes | string | Shortcode from the post URL (DcBr7X4SL3h in instagram.com/p/DcBr7X4SL3h/), or the full post URL. |
| `sort_by` | query | no | enum: recent, popular | Comment order: recent or popular. Default: recent. |
| `pagination_token` | query | no | string | Pass the previous response's pagination_token. |

## Example request

```bash
curl "https://api.toolzerhub.com/v3/instagram/post/comments?code=<code>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
