Scrape Reddit Post & Comments

PythonSocial Media
POST api.upapi.io/reddit-scrape-post.get

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.

redditscrapepostcommentssocial
AuthAPI key
Cost4 units
Timeout60s
Cache300s

Request schema

FieldTypeDescription
postIdreq
stringReddit post ID (e.g. '1abc23')
proxyUrl
User-provided proxy URL· default: null
subredditreq
stringSubreddit name
commentSort
stringComment sort: best, top, new, controversial, old, qa· default: "best"
commentDepth
integerMax 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

FieldTypeDescription
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.

Sign in

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 }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.