# Get post

Fetch one public Reddit post by canonical thread URL. May take up to 60 seconds.

- Platform: [Reddit](https://docs.upscrape.com/docs/platforms/reddit)
- Capability ID: `reddit.post.get`
- Cost: 1 credit per request
- Maximum runtime: 60 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": {
    "url": "https://www.reddit.com/r/redditdev/comments/1vgbm9c/our_plans_for_the_future_of_reddits_public_data/"
  },
  "capability": "reddit.post.get"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | Reddit thread URL: redd.it/{id}, reddit.com/comments/{id}, or reddit.com/r/{community}/comments/{id}/{slug}. |

### Example input

```json
{
  "url": "https://www.reddit.com/r/redditdev/comments/1vgbm9c/our_plans_for_the_future_of_reddits_public_data/"
}
```

## 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
{
  "author": "KeyserSosa",
  "body": "Today u/spez posted about why, among other parts of Reddit, our Public Data API needs to evolve. It wasn’t built for today’s scale, automated abuse, or commercial scraping. We want useful bots, community tools, and good-faith developers to have a clear, well-supported way to build on Reddit without enabling bad actors to scrape, resell, or misuse Reddit data. Our long-term vision is for all good, …",
  "created_utc": 1785945942,
  "id": "t3_1vgbm9c",
  "nsfw": false,
  "num_comments": 0,
  "num_comments_available": false,
  "permalink": "https://www.reddit.com/r/redditdev/comments/1vgbm9c/our_plans_for_the_future_of_reddits_public_data/",
  "score": 0,
  "score_available": false,
  "subreddit": "redditdev",
  "title": "Our Plans for the Future of Reddit’s Public Data API and the Developer Platform",
  "type": "post",
  "url": null
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `author` | `string` | KeyserSosa |
| `body` | `string` | Today u/spez posted about why, among other parts of Reddit, our Public … |
| `created_utc` | `integer` | 1785945942 |
| `id` | `string` | t3_1vgbm9c |
| `nsfw` | `boolean` | false |
| `num_comments` | `integer` | 0 |
| `num_comments_available` | `boolean` | false |
| `permalink` | `string` | https://www.reddit.com/r/redditdev/comments/1vgbm9c/our_plans_for_the_f… |
| `score` | `integer` | 0 |
| `score_available` | `boolean` | false |
| `subreddit` | `string` | redditdev |
| `title` | `string` | Our Plans for the Future of Reddit’s Public Data API and the Developer … |
| `type` | `string` | post |
| `url` | `null` | null |

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