Reddit Scraper - Posts & Comments, No Login avatar

Reddit Scraper - Posts & Comments, No Login

Pricing

from $1.49 / 1,000 posts

Go to Apify Store
Reddit Scraper - Posts & Comments, No Login

Reddit Scraper - Posts & Comments, No Login

Pricing

from $1.49 / 1,000 posts

Rating

0.0

(0)

Developer

Lantern Lab

Lantern Lab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 days ago

Last modified

Categories

Features

Limited permissions

Share

Reddit Scraper — Posts & Comments from Subreddits, Search and URLs

A Lantern Lab Actor. Collect public Reddit posts from subreddits (Hot, New, Top, Rising or Controversial, with a time range), from keyword search across Reddit, or from post URLs — and optionally their comments. Every post comes with Reddit's own ID, URL, title, text, subreddit, publish time, score, comment count, author and outbound link; every comment with its ID, parent ID, depth, text, score, publish time and author. No Reddit login, no account, no API key of your own.

Price: pay per result, one price for everyone:

EventPriceWhen it is charged
postUSD 1.49 per 1,000 postsOne per post row.
commentUSD 0.49 per 1,000 commentsOne per comment row.
run-startUSD 0.005 per runOnce per run, and only when the run writes at least one charged row.

Empty results, missing or private subreddits, NSFW posts that were skipped, blocked or failed inputs, duplicates, the per-input status rows and the run summary are free. A run that collects nothing costs nothing.

What you get

{
"recordType": "post",
"postId": "1xjjr9z",
"fullname": "t3_1xjjr9z",
"url": "https://www.reddit.com/r/programming/comments/1xjjr9z/i_miss_the_part_of_programming_where_i_figure_it/",
"title": "I miss the part of programming where I figure it out myself",
"text": "Getting working code quickly is useful. It doesn’t always give me the satisfaction of solving the problem. …",
"subreddit": "programming",
"subredditId": "t5_2fwo",
"publishedAt": "2026-10-30T16:17:18.000Z",
"score": 1125,
"upvoteRatio": 0.95,
"commentCount": 289,
"authorUsername": "Overall-Beach-9801",
"externalUrl": "https://medium.com/@behind-the-stack/ai-has-made-coding-boring-adb1826134b0?sk=2bba5636bf991e6b22f62ddbfa164ae8",
"domain": "medium.com",
"isSelf": false,
"isNsfw": false,
"flair": null,
"commentsCollected": 15,
"commentsComplete": true,
"inputKind": "subreddit",
"inputValue": "programming",
"rank": 1,
"partial": false,
"collectedAt": "2026-10-31T06:39:18.989Z"
}
{
"recordType": "comment",
"commentId": "19rvzefqqgcrk",
"fullname": "t1_19rvzefqqgcrk",
"postId": "1xjjr9z",
"parentId": "t1_19rvzaz51amqp",
"depth": 1,
"url": "https://www.reddit.com/r/programming/comments/1xjjr9z/comment/19rvzefqqgcrk/",
"text": "I totally get your point but the article is more of a rant because I love cod …",
"score": 29,
"publishedAt": "2026-10-30T16:22:54.893Z",
"authorUsername": "Overall-Beach-9801",
"subreddit": "programming",
"collectedAt": "2026-10-31T06:53:13.707Z"
}

publishedAt is Reddit's publish time; collectedAt is when this run read the row. parentId is the comment (t1_…) or the post (t3_…) a comment replies to, so the thread can be rebuilt exactly. A field Reddit does not show is null — never guessed: a deleted author is null, a deleted comment's text is null, a score Reddit hides is null.

Input

Give it subreddits, search queries, post URLs, or any mix.

FieldDefaultMeaning
subreddits—programming, r/programming or a subreddit URL, one per line.
sorthothot, new, top, rising or controversial.
timeRangeweekFor top and controversial: hour, day, week, month, year, all.
searchQueries—Keywords to search all of Reddit for, one per line.
searchSort / searchTimeRangerelevance / allSearch order (relevance, hot, top, new, comments) and period.
postUrls—https://www.reddit.com/r/…/comments/<id>/…, https://redd.it/<id> or t3_<id>.
maxPosts25Hard limit per subreddit and per search query. Never exceeded and never over-charged.
maxCommentsPerPost0 (off)Hard limit on comment rows per post.
commentSorttoptop, new, old, controversial or confidence (Reddit's "Best").
includeNsfwfalseNSFW posts are skipped (and free) unless this is on.
maxUpstreamRequestsderivedHard ceiling on requests to Reddit.
{
"subreddits": ["programming"],
"sort": "top",
"timeRange": "week",
"maxPosts": 25,
"maxCommentsPerPost": 20
}

Output

Three row types share the dataset; the Posts, Comments and Input status views split them.

  • post — one per post, deduplicated across the whole run by Reddit's post ID. commentsCollected and commentsComplete say how many comment rows the post got and whether that is everything that was asked for.
  • comment — one per comment, deduplicated by comment ID, in Reddit's thread order (a reply follows its parent).
  • input_status — one per subreddit, query and post URL, never charged: posts and comments returned, duplicates and NSFW posts skipped, and either emptyReason (nothing to collect) or partial: true with a partialReason (incomplete).
  • RUN_SUMMARY — the last row, also saved in the key-value store.

Empty is not the same as incomplete

These are final answers from Reddit and are not partial: emptyReason not_found (no such subreddit or post), not_public (private, quarantined or banned community), nsfw_filtered (every post was NSFW) and no_results.

These mean the result is incomplete and are partial: true: blocked (Reddit refused the requests, retries included), upstream_error, unexpected_response (Reddit changed its pages), comments_incomplete (comments of a post could not all be read), upstream_request_cap, charge_limit_reached and not_collected (the run stopped before this input). A run where every input was refused fails instead of finishing with zero rows.

Limits

  • Only what a signed-out visitor sees on Reddit. Private and quarantined communities, user profile histories and anything behind a login are not collected. Media files are not downloaded; links to them are in externalUrl.
  • Reddit lists up to about 1,000 posts per listing or search, and some listings hold fewer.
  • Comments are read the way the page loads them, including threads Reddit folds behind "more replies", up to your maxCommentsPerPost. A post where Reddit still offered more than the run read is marked commentsComplete: false.
  • Personal data is kept to the public username. No profile pictures, karma or other profile fields.
  • Reddit refuses most data-center IPs, so runs use Apify residential proxy by default.

Development

npm install
npm test

Tests run offline against recorded Reddit responses in test/fixtures/.