# Get post thread

Fetch a post thread with bounded nested replies and source parent context (AT-URI or bsky.app post link).

- Platform: [Bluesky](https://docs.upscrape.com/docs/platforms/bluesky)
- Capability ID: `bluesky.feed.get_post_thread`
- Cost: 1 credit per request
- Maximum runtime: 120 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": {
    "depth": 25,
    "uri": "at://did:plc:bzxbgtybz2h5untckchdlocr/app.bsky.feed.post/3mspud5re5c26"
  },
  "capability": "bluesky.feed.get_post_thread"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `depth` | `integer` | No | From 1 to 100. |
| `uri` | `string` | Yes |  |

### Example input

```json
{
  "depth": 25,
  "uri": "at://did:plc:bzxbgtybz2h5untckchdlocr/app.bsky.feed.post/3mspud5re5c26"
}
```

## 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
{
  "depth_requested": 25,
  "depth_used": 0,
  "thread": {
    "post": {
      "author": {
        "avatar": "https://cdn.bsky.app/img/avatar/plain/did:plc:bzxbgtybz2h5untckchdlocr/[redacted:token]",
        "did": "did:plc:bzxbgtybz2h5untckchdlocr",
        "display_name": "Biozentrum, University of Basel",
        "handle": "biozentrum.unibas.ch"
      },
      "cid": "[redacted:token]",
      "created_at": "2026-08-10T10:11:01.201Z",
      "lang": "en",
      "text": "Ready for the next step in your scientific career? \n\nApply now for a fully funded Biozentrum PhD Fellowship and explore a wide range of research fields before choosing your PhD lab. 🧪 Applications for the current call are open until October 18, 2026. More information 👇",
      "uri": "at://did:plc:bzxbgtybz2h5untckchdlocr/app.bsky.feed.post/3mspud5re5c26"
    }
  }
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `depth_requested` | `integer` | 25 |
| `depth_used` | `integer` | 0 |
| `thread` | `object` | 1 fields |
| `thread.post` | `object` | 6 fields |

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