Reddit Comment Thread Scraper with Score & Keyword Filters
Pricing
from $0.49 / 1,000 results
Reddit Comment Thread Scraper with Score & Keyword Filters
Scrape Reddit comment threads, nested replies included, with author, score, depth, and moderation flags, filtered by date, score, author, or keyword. Optional parent post record. No API key or login.
Pricing
from $0.49 / 1,000 results
Rating
0.0
(0)
Developer
vexaloom-labs
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Export a Reddit discussion as structured comment rows: top-level comments and every nested reply, with author, score, depth, parent relationships, reply counts and timestamps. Paste one or many post links, pick a sort, then filter by date, score, depth, author, keyword, length or awards. No Reddit login, API key, cookie or proxy setup is required.
How it gets the data
Reddit blocks anonymous .json endpoints and old.reddit.com, and its cloud-facing HTML is behind a JS challenge. This actor uses two public, cookieless sources instead:
- Arctic Shift archive (primary). Post metadata comes from
/api/posts/ids; the nested thread comes from/api/comments/tree; when a tree response is truncated, the actor fills the remaining comments from paginated/api/comments/search. No key, account or proxy. - Reddit Atom feed (fallback). If the archive returns no comments for a post, the actor reads
https://www.reddit.com/comments/<id>.rss, thenhttps://www.reddit.com/r/<subreddit>/comments/<id>/.rss. The feed is parsed for the post and its comment entries. It never calls a.jsonendpoint.
Each record carries a source field: arctic_shift or reddit_rss.
Modes
| Mode | What it does |
|---|---|
| Thread scrape (default) | One record per comment across every nested branch, for every URL in postUrls. |
| Comment focus | Put a comment permalink in postUrls and enable focusOnTargetComment to return that comment plus its ancestor chain. |
| Multi-thread batch | Add as many post URLs or IDs as needed; each thread is fetched independently and pushed as it finishes. |
| Post record | includePost emits the parent post as the first record of each thread. |
| Data-source selector | dataSource can force archive_tree, archive_search, or rss for diagnostics. auto (default) is tree → search fill → RSS fallback. |
Output per comment
dataType(comment),comment_id,comment_namepost_id,post_url,post_title,link_idpermalink,author,author_id,avatarUrlbody(plain text, trimmed),body_html(archive-generated HTML when available)score,ups,downs,score_hiddencreated_utc,created_at,edited,edited_at,archiveddepth(0 = top-level),position,parentPositions,parent_id,parent_kindrepliesCount(direct replies found in this thread)is_op,is_stickied,is_locked,distinguished,controversialitycollapsed,collapsed_reason,collapsed_reason_code,collapsed_because_crowd_controlauthor_flair, author flair colours/type/richtext,author_premium,author_is_blockedtotal_awards_received,awards[],gildedcomment_type,unrepliable_reason,no_follow,send_replies,can_gild,removed_by_categoryisCommentDeleted,isAuthorDeleted(when the source marks the comment deleted/removed)scoreIsPlaceholder(fresh archive score, see below),archiveRetrievedAtsubreddit,subreddit_prefixed,subreddit_idcrawled_at,source
Fields a source does not expose are omitted, never emitted as null or an empty string. For example, Atom-fallback comments have no score, ups, downs, awards or edited timestamp.
Output per post
Emitted as the first record of a thread when includePost is on. Comment filters do not apply to it.
dataType(post),post_id,post_name,titleauthor,author_id, author flair fields,author_premiumsubreddit,subreddit_prefixed,subreddit_id,subreddit_subscribers,subreddit_typeurl,permalink,content_url,url_overridden_by_dest,domain,post_type,is_selfcontent,content_html,media_type,has_mediaimages[],gallery_images[],gallery_count,video_urlpoll_data,embed_*,crosspost_parent_id,num_crosspostsscore,ups,downs,upvote_ratio,num_commentslink_flair*,thumbnail_url,created_utc,created_at,edited,edited_atis_stickied,is_locked,is_archived,is_nsfw,is_spoiler,is_original_contenttotal_awards_received,awards[],gilded,distinguishedstatsArePlaceholder(fresh archive post, see below)crawled_at,source
Input
| Field | Type | Default | Description |
|---|---|---|---|
postUrls | array | – (required) | Post URLs, comment URLs, share links, redd.it links or bare post IDs |
maxComments | integer | 100 | Maximum comment records per post, after filters (1–100,000) |
commentSort | select | confidence | confidence, top, new, controversial, old, qa |
dataSource | select | auto | auto, archive_tree, archive_search, rss |
includePost | boolean | false | Emit the parent post as the first record of each thread |
postedAfter | date | – | Keep comments created on/after this date (UTC) |
postedBefore | date | – | Keep comments created on/before this date (UTC; a bare date means end of day) |
minDepth | integer | – | Keep comments at or deeper than this nesting level |
maxDepth | integer | – | Keep comments at or above this nesting level |
minCommentScore | integer | – | Keep comments with score ≥ this value |
maxCommentScore | integer | – | Keep comments with score ≤ this value |
onlyOP | boolean | false | Keep only the original poster's comments |
excludeDeletedRemoved | boolean | false | Drop comments whose body/author is deleted or removed |
excludeCollapsed | boolean | false | Drop comments collapsed by default |
excludeStickied | boolean | false | Drop moderator-pinned comments |
distinguishedFilter | select | any | any, moderator, admin, none (no badge) |
controversialOnly | boolean | false | Keep only comments flagged controversial |
authors | array | – | Keep only these usernames (case-insensitive) |
excludeAuthors | array | – | Drop these usernames, e.g. bots |
keywords | array | – | Keep comments containing at least one keyword/phrase |
excludeKeywords | array | – | Drop comments containing any keyword/phrase |
minAwards | integer | – | Keep comments with at least this many awards |
minReplies | integer | – | Keep comments with at least this many direct replies |
minCommentLength | integer | – | Minimum body length in characters |
maxCommentLength | integer | – | Maximum body length in characters |
focusOnTargetComment | boolean | false | For a comment permalink, return the target plus its ancestor chain |
commentContext | integer | 3 | Ancestor levels above the target (0–8) |
All filters are applied client-side after the thread is fetched, so they work for both archive and Atom records. A comment with a missing field passes the corresponding bound (for example, Atom comments have no score, so they are not removed by a score filter).
Accepted postUrls forms
- Full post URL:
https://www.reddit.com/r/programming/comments/1abc123/some_title/ - Short URL:
https://www.reddit.com/comments/1abc123(also with?sort=top) - Comment URL:
https://www.reddit.com/r/x/comments/1abc123/title/comment/xyz987/ - Share link:
https://www.reddit.com/r/x/s/<token> - Short link:
https://redd.it/1abc123 - Bare post ID:
1abc123ort3_1abc123 old.reddit.comURLs are accepted as input; they are converted towww.reddit.comlinks and never fetched.
Malformed items (empty strings, non-Reddit URLs, non-strings) are skipped without failing the run.
Legacy inputs
Older saved tasks keep working. These keys are accepted in code and mapped onto the current field; they do not appear in the input form:
| Old key | Maps to |
|---|---|
postUrl, postURL, post_url, post_urls, url, urls, startUrls, start_urls | postUrls |
sort, comment_sort, sortBy | commentSort |
maxItems, limit, max_comments | maxComments |
include_post, includePostRecord | includePost |
minScore | minCommentScore |
maxScore | maxCommentScore |
focus_on_target_comment | focusOnTargetComment |
context | commentContext |
distinguishedFilter, controversialOnly and excludeStickied are supported again because the archive exposes the fields the old HTML path could not.
Example: full thread, newest first
{"postUrls": ["https://www.reddit.com/r/technology/comments/1abc123/some_title/"],"maxComments": 500,"commentSort": "new","includePost": true}
Example: recent, high-signal comments only
{"postUrls": ["https://www.reddit.com/r/investing/comments/1abc123/some_title/"],"maxComments": 1000,"postedAfter": "2026-06-01","minCommentScore": 5,"excludeDeletedRemoved": true}
Example: clean NLP corpus
{"postUrls": ["https://www.reddit.com/r/AskReddit/comments/1abc123/some_title/","https://www.reddit.com/r/AskReddit/comments/1def456/other_title/"],"maxComments": 5000,"excludeDeletedRemoved": true,"excludeAuthors": ["AutoModerator"],"minCommentLength": 20,"excludeKeywords": ["I am a bot"]}
Example: one comment and its parents
{"postUrls": ["https://www.reddit.com/r/x/comments/1abc123/title/comment/xyz987/"],"focusOnTargetComment": true,"commentContext": 5}
Example: force the Atom fallback
{"postUrls": ["https://www.reddit.com/r/x/comments/1abc123/"],"dataSource": "rss"}
Pagination and limits
- Archive tree:
/api/comments/treereturns a nested tree. The actor requests up to 25,000 comments with expanded breadth/depth so Reddit's tree is not collapsed early. If the response still containsmorebatches,automode fills them from the paginated search endpoint. - Archive search:
/api/comments/searchreturns 100 comments per page; the actor followsbeforecursors (oldestcreated_utc) until the source is exhausted or the internal 50,000-comment ceiling is reached. The boundary second is re-read and records are deduplicated by comment ID, so comments that share a timestamp with the last row of a page are not dropped. maxCommentsis applied after filters, so a heavily filtered request can read more raw comments than it outputs. There is no wall-clock cutoff and no silent early stop; the run ends when the requested count is reached or the source is exhausted.- Atom fallback: Reddit's feed is request-bounded and may contain fewer entries than the thread. The actor reports what the feed serves.
Arctic Shift freshness
Arctic Shift archives a post or comment seconds after it is created, before Reddit has settled its vote counts. Arctic's own API documentation says scores and comment counts can be 0 or 1 for roughly the first 36 hours. The actor does not hide this:
- A comment whose
scoreis0or1and is less than 36 hours old getsscoreIsPlaceholder: true. - A post in the same window gets
statsArePlaceholder: true. archiveRetrievedAtis the archive's retrieval timestamp when present.
Scores and num_comments for older records are the settled archive values, but they are still a snapshot: they will not match a live refresh and may lag by hours or days. Deleted or removed comments may disappear from the archive or appear as [deleted] / [removed]; num_comments can count comments the archive no longer serves.
Atom RSS fallback limits
The Atom feed is a last resort, not a full replacement for the archive:
- No score, upvotes/downvotes, awards, flair, badges or moderation flags. Those fields are omitted.
- No nesting metadata. Reddit's live comment feed (verified 2026-11-13) contains no
thr:in-reply-toreferences, so Atom-fallback records are flat (depth: 0) and omitparent_id/parentPositions. If a feed ever provides a parent reference, the parser uses it. - Timestamps are the feed's
<updated>value. It can reflect an edit rather than the original creation time; there is no separate edited timestamp. - Bodies are the feed's current HTML. They can include edits that the Arctic archive snapshot does not, so the same comment can read differently on the two sources.
- Deletion is only visible as
[deleted]/[removed]body text or[deleted]author. - Feed availability is not guaranteed. Reddit can rate-limit, challenge or return an error for the feed too. If both sources fail, the run ends with a status message explaining why.
- Feed entries can be fewer than the displayed comment count.
Sorting
The archive endpoints do not accept Reddit's comment-sort parameter, so sorting is applied to sibling comments after fetching:
confidencepreserves the archive tree's default (Best) order (or the search endpoint's order inarchive_searchmode).top= highest score first.new/old= newest / oldest first.controversial= comments flagged controversial first, then lower score.qa= original-poster answers first, then highest score.
This is an approximation of Reddit's UI ordering; it is deterministic and documented rather than pretending to reproduce Reddit's internal ranking.
Use cases
- Sentiment and NLP corpora with nested conversation structure
- Product and market research on replies, not just top comments
- Moderation and community analysis by depth, score or author
- Launch monitoring across multiple threads on a schedule
- Academic network/discourse analysis with parent and reply-count data
- Support mining for recurring complaints buried in deep branches
FAQ
Do I need a Reddit account, API key or proxy? No. Both data sources are public and keyless, and the actor never asks for credentials or proxy configuration.
Does it call Reddit's .json endpoints or old.reddit.com?
No. It calls Arctic Shift's archive API and, only as a fallback, Reddit's public Atom feed. old.reddit.com input URLs are normalized but not fetched.
Why is a fresh comment's score 1?
Arctic Shift archives new comments before Reddit settles the score. scoreIsPlaceholder: true marks that case; re-run after roughly 36 hours for settled values.
Why does the comment count differ from Reddit's displayed count?
Reddit counts deleted, removed and filtered comments that the archive may not serve. The actor reports the records it can actually read, and repliesCount counts direct children in the fetched thread.
What is the difference between parent_id and link_id?
link_id always points to the post (t3_...). parent_id points to the direct parent: the post for a top-level comment, or another comment (t1_...) for a reply. parent_kind tells you which; parentPositions gives the sibling-index path.
Why is parentPositions missing on top-level comments?
Top-level comments have an empty path, and empty values are omitted. Use depth: 0 and parent_id: t3_... instead.
What happens for a private, banned or deleted post? The archive may return no post or no comments. The actor continues with the other URLs and sets a status message when nothing could be read.
Can I get more than 25,000 comments?
The tree path stops at 25,000. Use dataSource: "archive_search" to paginate the flat search path up to 50,000 comments; nesting is reconstructed from parent IDs.
Is this affiliated with Reddit? No. This is an independent third-party tool. It is not endorsed by or affiliated with Reddit, Inc. Arctic Shift is a separate public archive service.
Cost
The data sources are free and keyless. A run costs only Apify compute and storage: small and medium threads finish in a few requests, and the actor uses lightweight HTTP rather than a browser. Store pricing is set separately in the Apify Console.
Limitations
- Archive data is a snapshot: scores, comment counts and availability lag live Reddit, and fresh scores may be placeholders.
- Removed, deleted or moderator-filtered comments may be absent or reduced to
[deleted]/[removed]. - The archive tree endpoint collapses very large threads;
autofills collapsed batches from search, but the tree path itself has a 25,000-comment ceiling. - Atom fallback cannot provide scores, awards, votes, flair, badges, edited timestamps, reliable deletion flags or nesting; its records are flat (
depth: 0). commentSortis a deterministic client-side approximation, not Reddit's internal ranking.- Direct replies (
repliesCount) reflects the comments fetched for this run, not necessarily every reply Reddit counts. - A comment whose parent is missing from the fetched batch is emitted at depth 0 with its original
parent_id; the parent path cannot be reconstructed from absent data.