# Post replies

Fetch public metadata and candidate reply links for a Threads post.

- Platform: [Threads](https://docs.upscrape.com/docs/platforms/threads)
- Capability ID: `threads.post.replies`
- Cost: 1 credit per request
- Maximum runtime: 45 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": 3,
    "post_url": "https://www.threads.com/@instagram/post/Dd_n1stlt2n"
  },
  "capability": "threads.post.replies"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `handle` | `string` | No | Threads handle, with or without a leading @. Requires post_id. |
| `limit` | `integer` | No | Maximum reply links to return from the first public page. From 1 to 50. Default: `10`. |
| `post_id` | `string` | No | Threads post shortcode. Requires handle. |
| `post_url` | `string` | No | Canonical public www.threads.com post URL. Do not combine with handle or post_id. |

### Example input

```json
{
  "limit": 3,
  "post_url": "https://www.threads.com/@instagram/post/Dd_n1stlt2n"
}
```

## 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
{
  "canonical_url": "https://www.threads.com/@instagram/post/Dd_n1stlt2n",
  "partial": false,
  "post_url": "https://www.threads.com/@instagram/post/Dd_n1stlt2n",
  "replies": [
    {
      "content": {
        "caption": "🤣🎯\n.@instagram",
        "like_count": 2,
        "media_type": 19,
        "quote_count": 0,
        "reply_count": 0,
        "repost_count": 1,
        "taken_at_unix": 1790948976
      },
      "type": "thread",
      "url": "https://www.threads.com/@[redacted:account]/post/Dd_oUfoiOQe"
    },
    {
      "content": {
        "caption": "Guilty.",
        "like_count": 1,
        "media_type": 19,
        "quote_count": 0,
        "reply_count": 0,
        "repost_count": 0,
        "taken_at_unix": 1790949064
      },
      "type": "thread",
      "url": "https://www.threads.com/@[redacted:account]/post/Dd_ofRKGUUX"
    },
    {
      "content": {
        "caption": "Aqui temos! 🤭🫣🤭🫣 @instagram",
        "like_count": 2,
        "media_type": 19,
        "quote_count": 0,
        "reply_count": 0,
        "repost_count": 0,
        "taken_at_unix": 1790949142
      },
      "type": "thread",
      "url": "https://www.threads.com/@[redacted:account]/post/Dd_ooyikScO"
    }
  ],
  "result_count": 3,
  "visibility": "anonymous_visible"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `canonical_url` | `string` | https://www.threads.com/@instagram/post/Dd_n1stlt2n |
| `partial` | `boolean` | false |
| `post_url` | `string` | https://www.threads.com/@instagram/post/Dd_n1stlt2n |
| `replies` | `array` | 3 items |
| `replies` | `array` | 3 items |
| `result_count` | `integer` | 3 |
| `visibility` | `string` | anonymous_visible |

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