# List comments

List the public comment preview with cursor pagination. This is not the complete comment history: is_complete is false and stop_reason explains the limit.

- Platform: [Instagram](https://docs.upscrape.com/docs/platforms/instagram)
- Capability ID: `instagram.comments.list`
- Cost: 1 credit per request
- Maximum runtime: 240 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 20,
    "max_pages": 2,
    "url": "https://www.instagram.com/reel/DTfS7SMEk8B/"
  },
  "capability": "instagram.comments.list"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `cursor` | `string` | No | Continuation cursor returned by a previous request. |
| `limit` | `integer` | No | Maximum number of results to return. From 1 to 2000. Default: `50`. |
| `max_pages` | `integer` | No | Optional page budget, up to 150. Default scales with limit. Instagram can stop public pagination before the requested total. From 1 to 150. |
| `url` | `string` | Yes | Instagram post/reel URL, or an 11-character shortcode. Use a full URL for older shortcodes. |

### Example input

```json
{
  "limit": 20,
  "max_pages": 2,
  "url": "https://www.instagram.com/reel/DTfS7SMEk8B/"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "items": [
    {
      "data": {
        "child_comment_count": null,
        "comment_like_count": 0,
        "created_at": 1787242159,
        "id": "18099978272220837",
        "parent_comment_id": null,
        "pk": "18099978272220837",
        "text": "Damn, when will it finally be my turn🤧",
        "user": {
          "id": "78082445709",
          "is_verified": false,
          "pk": "78082445709",
          "username": "janna_ul_tarin03"
        }
      }
    },
    {
      "data": {
        "child_comment_count": null,
        "comment_like_count": 0,
        "created_at": 1786853051,
        "id": "18408747367084041",
        "parent_comment_id": null,
        "pk": "18408747367084041",
        "text": "Svetsaylan🔥",
        "user": {
          "id": "25782082302",
          "is_verified": false,
          "pk": "25782082302",
          "username": "sardor.mahmatkulov"
        }
      }
    },
    {
      "data": {
        "child_comment_count": null,
        "comment_like_count": 0,
        "created_at": 1786756109,
        "id": "17956958520201397",
        "parent_comment_id": null,
        "pk": "17956958520201397",
        "text": "❤️❤️❤️❤️",
        "user": {
          "id": "48673623045",
          "is_verified": false,
          "pk": "48673623045",
          "username": "fujie.id"
        }
      }
    }
  ],
  "summary": {
    "coverage": "public_preview",
    "emitted": 20,
    "has_more": true,
    "is_complete": false,
    "media_id": "3809847048594935553",
    "next_cursor": "{\"is_server_cursor_inverse\":true,\"server_cursor\":\"[redacted:token]\"}",
    "pages": 2,
    "shortcode": "DTfS7SMEk8B",
    "stop_reason": "limit"
  }
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `items` | `array` | 3 items |
| `items` | `array` | 3 items |
| `summary` | `object` | 9 fields |
| `summary.coverage` | `string` | public_preview |
| `summary.emitted` | `integer` | 20 |
| `summary.has_more` | `boolean` | true |
| `summary.is_complete` | `boolean` | false |
| `summary.media_id` | `string` | 3809847048594935553 |
| `summary.next_cursor` | `string` | {"is_server_cursor_inverse":true,"server_cursor":"[redacted:token]"} |
| `summary.pages` | `integer` | 2 |
| `summary.shortcode` | `string` | DTfS7SMEk8B |
| `summary.stop_reason` | `string` | limit |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
