# List User Comments

List comments publicly visible on a Reddit user's comments feed, newest first, with cursor pagination.

- Platform: [Reddit](https://docs.upscrape.com/docs/platforms/reddit)
- Capability ID: `reddit.user.comments.list`
- Cost: 1 credit per request
- Maximum runtime: 30 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 YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 25,
    "username": "reddit"
  },
  "capability": "reddit.user.comments.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `after` | `string` | No | Opaque cursor from a previous result's next field. |
| `limit` | `integer` | No | Page size (default 50). |
| `username` | `string` | Yes | Public Reddit username, optionally prefixed with u/. |

### Example input

```json
{
  "limit": 25,
  "username": "reddit"
}
```

## 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 redacted fixture is an example, not a fixed response schema.

```json
{
  "items": [
    {
      "author": "reddit",
      "body": "Thanks! I've sent you the first message here: https://www.reddit.com/message/messages/2y4wpa2 In order for me to send you the rest of the message I'll need you to reply there when you have a chance. To your questions: unfortunately, a lot our tooling doesn't work with modteams of this size, but - no promises here as I don't know what this would take - I will see if there's anything we can do for y…",
      "created_utc": 1749669575,
      "id": "t1_mx9407o",
      "nsfw": false,
      "parent_permalink": null,
      "parent_title": "ACTION NEEDED: PLEASE READ",
      "permalink": "https://www.reddit.com/r/modlimit/comments/1l8ejw1/action_needed_please_read/mx9407o/",
      "score": 0,
      "subreddit": "modlimit",
      "type": "comment"
    },
    {
      "author": "reddit",
      "body": "It's real, I'm real! Totally appreciate you checking though, thanks in advance if you participate in the study!",
      "created_utc": 1722557733,
      "id": "t1_lg2az5a",
      "nsfw": false,
      "parent_permalink": null,
      "parent_title": "Is this a legitimate DM from Reddit, or is this a phishing scam against Reddit mods?",
      "permalink": "https://www.reddit.com/r/ModSupport/comments/1ehvn4d/is_this_a_legitimate_dm_from_reddit_or_is_this_a/lg2az5a/",
      "score": 0,
      "subreddit": "ModSupport",
      "type": "comment"
    },
    {
      "author": "reddit",
      "body": "legit",
      "created_utc": 1722557557,
      "id": "t1_lg2ai5m",
      "nsfw": false,
      "parent_permalink": null,
      "parent_title": "Is this a legitimate DM from Reddit, or is this a phishing scam against Reddit mods?",
      "permalink": "https://www.reddit.com/r/ModSupport/comments/1ehvn4d/is_this_a_legitimate_dm_from_reddit_or_is_this_a/lg2ai5m/",
      "score": 0,
      "subreddit": "ModSupport",
      "type": "comment"
    }
  ],
  "next": "t1_hngqva3"
}
```
### 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 |
| `next` | `string` | t1_hngqva3 |

## 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)
