Scrape Reddit Post & Comments
PythonSocial MediaPOST api.upapi.io/reddit-scrape-post.getFetch 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.
Request schema
| Field | Type | Description |
|---|---|---|
postIdreq | string | Reddit post ID (e.g. '1abc23') |
proxyUrl | User-provided proxy URL· default: null | |
subredditreq | string | Subreddit name |
commentSort | string | Comment sort: best, top, new, controversial, old, qa· default: "best" |
commentDepth | integer | Max comment nesting depth· default: 5 |
sessionCookies | 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.· default: null |
Response schema
| Field | Type | Description |
|---|---|---|
postreq | ||
commentsreq | array | |
elapsedMsreq | integer | |
fetchedAtreq | string |
Try it
Try it
Reddit post ID (e.g. '1abc23')
Subreddit name
User-provided proxy URL
Comment sort: best, top, new, controversial, old, qa
Max comment nesting depth
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.
Run this endpoint live
Jump in as a guest — no signup — and run reddit-scrape-post.get with your own inputs. Create a free account anytime to get your own API key.
Code examples
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 }'