# Instagram Post Comment List API

> Get top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting. Use it to review audience feedback or analyze discussion around a known post.

Source: https://www.sandbase.ai/model/instagram/post-comments
API reference: https://www.sandbase.ai/model/instagram/post-comments/docs

## Facts

- Provider: Instagram
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/instagram/post-comments`
- Price: $0.02 per call
- Capabilities: api, instagram, social media
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/instagram/post-comments` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `code` | string | yes |  |
| `minId` | string | no |  |
| `sortOrder` | string | no | popular, newest |

## FAQ

### How do I use the Instagram Post Comment List API?

Send a POST request to https://api.sandbase.ai/v1/api/instagram/post-comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Instagram Post Comment List API cost?

$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Instagram Post Comment List API accept?

Required: code (string). Optional: minId (string) and sortOrder (one of popular, newest). The Parameters table and the Playground on this page list every field.

### What does the Instagram Post Comment List API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Instagram developer account or API key?

No. Instagram Post Comment List runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Instagram API access separately.

## README

### Instagram Post Comment List API

Get top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting. Use it to review audience feedback or analyze discussion around a known post.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "instagram/post-comments", "code": "DfAOoAXRg3L"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `code` | string | Yes | The unique shortcode for the Instagram post. |
| `minId` | string | No | Pagination cursor returned as next_min_id from the previous response. |
| `sortOrder` | string | No | Sort order for the comments. |

#### Pricing

Flat price per call. Failed calls and empty results are not charged.
