# Post lookup

Fetch public metadata and candidate links for a Threads post.

- Platform: [Threads](https://docs.upscrape.com/docs/platforms/threads)
- Capability ID: `threads.post`
- 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": {
    "post_url": "https://www.threads.com/@instagram/post/Dd_n1stlt2n"
  },
  "capability": "threads.post"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `handle` | `string` | No | Threads handle, with or without a leading @. Requires post_id. |
| `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
{
  "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",
  "content": {
    "caption": "we all have that one chair in our room that's for clothes, not sitting",
    "like_count": 537,
    "media_type": 19,
    "quote_count": 3,
    "reply_count": 65,
    "repost_count": 22,
    "taken_at_unix": 1790948724
  },
  "handle": "instagram",
  "partial": false,
  "post_id": "Dd_n1stlt2n",
  "post_url": "https://www.threads.com/@instagram/post/Dd_n1stlt2n",
  "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 |
| `content` | `object` | 7 fields |
| `content.caption` | `string` | we all have that one chair in our room that's for clothes, not sitting |
| `content.like_count` | `integer` | 537 |
| `content.media_type` | `integer` | 19 |
| `content.quote_count` | `integer` | 3 |
| `content.reply_count` | `integer` | 65 |
| `content.repost_count` | `integer` | 22 |
| `content.taken_at_unix` | `integer` | 1790948724 |
| `handle` | `string` | instagram |
| `partial` | `boolean` | false |
| `post_id` | `string` | Dd_n1stlt2n |
| `post_url` | `string` | https://www.threads.com/@instagram/post/Dd_n1stlt2n |
| `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)
