Reddit Post Detail Scraper avatar

Reddit Post Detail Scraper

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Reddit Post Detail Scraper

Reddit Post Detail Scraper

Fetch a Reddit post by URL or '<sub>/<post_id>' shorthand, with full comments tree.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Axery

Axery

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Fetch a Reddit post by URL or <subreddit>/<post_id> shorthand, with its full post body and top-level comments.

Useful for discussion mining, citation enrichment, and building author-attributed dialog datasets.

Current access status — read before running

Reddit's own anonymous JSON endpoints (www.reddit.com/*.json, old.reddit.com/*.json) are currently answering every request with a hard login wall, verified directly and consistently across TLS fingerprints as of this Actor's last build — not a rate limit, a login requirement. The one path that still works is Reddit's own official OAuth installed-app grant, which needs a free client_id (no client secret, no personal login) registered once at reddit.com/prefs/apps — choose "installed app" when creating it. Supply that value in the redditClientId input field.

Without a client_id, this Actor will currently fail on every request — that's Reddit's access wall, not a bug here, and it's stated plainly rather than left to be discovered as a silent failure.

What makes this different

One request, full thread. Post body and its top-level comment tree arrive together — no separate call needed to attach comments to the post they belong to.

A clean, documented schema, not a raw API dump. Reddit's own post/comment objects carry several dozen fields, many internal or UI-only. This Actor keeps the ones with real research value and gives them consistent names, rather than passing Reddit's raw dict straight through.

"More comments" stubs are filtered out, not left in as hollow rows. Reddit's own comment listing includes placeholder objects for collapsed reply threads that carry no author or body — indistinguishable from a genuine empty comment unless checked for explicitly.

Input

FieldTypeNotes
postsarrayFull Reddit post URLs, or subreddit/post_id shorthand.
maxCommentsintegerCap on comments returned per post.
redditClientIdstringCurrently effectively required — see above.
proxyConfigurationobjectDefaults to Residential.

Output

{
"post_id": "reddit.com:1a2b3c",
"subreddit": "programming",
"title": "Show HN: I built a blazingly fast Rust web server",
"author": "rustacean42",
"score": 1842,
"num_comments": 234,
"selftext": "Here's how I approached the problem...",
"comments": [
{"author": "commenter1", "body": "Great work! How does it compare to actix-web?", "score": 412}
],
"comments_returned": 1
}

comments_returned reflects only real comments — "more comments" placeholders are excluded, so it may be lower than num_comments (the post's own reported total) for a heavily-discussed thread. Reply-chain expansion beyond what Reddit returns in one call is out of scope.

Local development

pip install -r requirements.txt
python test_local.py "https://www.reddit.com/r/programming/comments/1a2b3c/example/" --client-id YOUR_CLIENT_ID

No sample_output.json ships with this Actor — Reddit's current access wall means a live run cannot be produced without a registered client_id, and this project doesn't publish fabricated sample data. The JSON above shows the real output shape from before the wall went up.