# Scrape Reddit Post & Comments API

> Fetch a Reddit post with its comment tree: post metadata, selftext, and nested comments with scores and authorship. Requires a Reddit session cookie in sessionCookies (obtain it from reddit-login.post, or copy reddit_session out of a signed-in browser) — Reddit has blocked every anonymous read surface since 2026-07-30.

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-09-04

## How to call it

- Endpoint: `POST https://api.upapi.io/reddit-scrape-post.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 4 weighted units per call.
- Timeout: 60 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/reddit-scrape-post.get

```bash
curl -X POST https://api.upapi.io/reddit-scrape-post.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "postId": "1abc23", "subreddit": "example", "commentSort": "best", "commentDepth": 5 }'
```

## Request parameters

- `postId` (string, required) — Reddit post ID (e.g. '1abc23')
- `proxyUrl` (string) — User-provided proxy URL
- `subreddit` (string, required) — Subreddit name
- `commentSort` (string) — Comment sort: best, top, new, controversial, old, qa
- `commentDepth` (integer) — Max comment nesting depth
- `sessionCookies` (string) — REQUIRED IN PRACTICE. Reddit account session cookies, as a JSON object or a '; '-delimited cookie header; the blob must contain reddit_session. Since 2026-07-30 Reddit blocks EVERY anonymous read surface, so a call without cookies returns a classified UPSTREAM_BLOCKED rather than data. Obtain the blob from reddit-login.post, or copy the reddit_session cookie out of a signed-in browser. A lead-gen account-pool row stores it nested at cookies->>'sessionCookies', not at the row's top level.

## Response fields

- `post` (object, required)
- `post.id` (string, required)
- `post.url` (string, required)
- `post.score` (integer, required)
- `post.title` (string, required)
- `post.author` (string, required)
- `post.isNsfw` (boolean, required)
- `post.isSelf` (boolean, required)
- `post.selftext` (string, required)
- `post.linkFlair` (string, required)
- `post.permalink` (string, required)
- `post.createdUtc` (number, required)
- `post.numComments` (integer, required)
- `post.upvoteRatio` (number, required)
- `comments` (array, required)
- `comments[].id` (string, required)
- `comments[].body` (string, required)
- `comments[].isOp` (boolean, required)
- `comments[].depth` (integer, required)
- `comments[].score` (integer, required)
- `comments[].author` (string, required)
- `comments[].parentId` (string, required)
- `comments[].createdUtc` (number, required)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "postId": "1abc23",
  "subreddit": "example",
  "commentSort": "best",
  "commentDepth": 5
}
```

```json
{
  "post": {
    "id": "example",
    "url": "https://github.com",
    "score": 1,
    "title": "Alan Turing",
    "author": "example",
    "isNsfw": false,
    "isSelf": false,
    "selftext": "example",
    "linkFlair": "example",
    "permalink": "example",
    "createdUtc": 1,
    "numComments": 1,
    "upvoteRatio": 1
  },
  "comments": [
    {
      "id": "example",
      "body": "example",
      "isOp": false,
      "depth": 1,
      "score": 1,
      "author": "example",
      "parentId": "example",
      "createdUtc": 1
    }
  ],
  "elapsedMs": 1,
  "fetchedAt": "example"
}
```

## Frequently asked questions

### How much does the Scrape Reddit Post & Comments API cost per call?

Each call spends 4 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Scrape Reddit Post & Comments API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Scrape Reddit Post & Comments API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Social Media APIs

- [Reddit - post a comment as a registered app](https://upapi.io/apis/social-media/reddit-oauth-post-comment)
- [Search Reddit Posts](https://upapi.io/apis/social-media/reddit-search-posts)
- [Check Reddit Account Health](https://upapi.io/apis/social-media/reddit-check-account-health)
- [Check Reddit Comment Visibility](https://upapi.io/apis/social-media/reddit-check-comment-visibility)
- [Get Subreddit Info](https://upapi.io/apis/social-media/reddit-subreddit-info)
- [Get Trending Reddit Posts](https://upapi.io/apis/social-media/reddit-get-trending)
- [Reddit - who does this OAuth app speak as?](https://upapi.io/apis/social-media/reddit-oauth-me)
- [TikTok Discover Users from Comments](https://upapi.io/apis/social-media/tiktok-discover-users)
