Reddit Comment Thread Scraper with Score & Keyword Filters avatar

Reddit Comment Thread Scraper with Score & Keyword Filters

Pricing

from $0.49 / 1,000 results

Go to Apify Store
Reddit Comment Thread Scraper with Score & Keyword Filters

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

vexaloom-labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

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:

  1. 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.
  2. Reddit Atom feed (fallback). If the archive returns no comments for a post, the actor reads https://www.reddit.com/comments/<id>.rss, then https://www.reddit.com/r/<subreddit>/comments/<id>/.rss. The feed is parsed for the post and its comment entries. It never calls a .json endpoint.

Each record carries a source field: arctic_shift or reddit_rss.

Modes

ModeWhat it does
Thread scrape (default)One record per comment across every nested branch, for every URL in postUrls.
Comment focusPut a comment permalink in postUrls and enable focusOnTargetComment to return that comment plus its ancestor chain.
Multi-thread batchAdd as many post URLs or IDs as needed; each thread is fetched independently and pushed as it finishes.
Post recordincludePost emits the parent post as the first record of each thread.
Data-source selectordataSource 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_name
  • post_id, post_url, post_title, link_id
  • permalink, author, author_id, avatarUrl
  • body (plain text, trimmed), body_html (archive-generated HTML when available)
  • score, ups, downs, score_hidden
  • created_utc, created_at, edited, edited_at, archived
  • depth (0 = top-level), position, parentPositions, parent_id, parent_kind
  • repliesCount (direct replies found in this thread)
  • is_op, is_stickied, is_locked, distinguished, controversiality
  • collapsed, collapsed_reason, collapsed_reason_code, collapsed_because_crowd_control
  • author_flair, author flair colours/type/richtext, author_premium, author_is_blocked
  • total_awards_received, awards[], gilded
  • comment_type, unrepliable_reason, no_follow, send_replies, can_gild, removed_by_category
  • isCommentDeleted, isAuthorDeleted (when the source marks the comment deleted/removed)
  • scoreIsPlaceholder (fresh archive score, see below), archiveRetrievedAt
  • subreddit, subreddit_prefixed, subreddit_id
  • crawled_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, title
  • author, author_id, author flair fields, author_premium
  • subreddit, subreddit_prefixed, subreddit_id, subreddit_subscribers, subreddit_type
  • url, permalink, content_url, url_overridden_by_dest, domain, post_type, is_self
  • content, content_html, media_type, has_media
  • images[], gallery_images[], gallery_count, video_url
  • poll_data, embed_*, crosspost_parent_id, num_crossposts
  • score, ups, downs, upvote_ratio, num_comments
  • link_flair*, thumbnail_url, created_utc, created_at, edited, edited_at
  • is_stickied, is_locked, is_archived, is_nsfw, is_spoiler, is_original_content
  • total_awards_received, awards[], gilded, distinguished
  • statsArePlaceholder (fresh archive post, see below)
  • crawled_at, source

Input

FieldTypeDefaultDescription
postUrlsarray– (required)Post URLs, comment URLs, share links, redd.it links or bare post IDs
maxCommentsinteger100Maximum comment records per post, after filters (1–100,000)
commentSortselectconfidenceconfidence, top, new, controversial, old, qa
dataSourceselectautoauto, archive_tree, archive_search, rss
includePostbooleanfalseEmit the parent post as the first record of each thread
postedAfterdate–Keep comments created on/after this date (UTC)
postedBeforedate–Keep comments created on/before this date (UTC; a bare date means end of day)
minDepthinteger–Keep comments at or deeper than this nesting level
maxDepthinteger–Keep comments at or above this nesting level
minCommentScoreinteger–Keep comments with score ≥ this value
maxCommentScoreinteger–Keep comments with score ≤ this value
onlyOPbooleanfalseKeep only the original poster's comments
excludeDeletedRemovedbooleanfalseDrop comments whose body/author is deleted or removed
excludeCollapsedbooleanfalseDrop comments collapsed by default
excludeStickiedbooleanfalseDrop moderator-pinned comments
distinguishedFilterselectanyany, moderator, admin, none (no badge)
controversialOnlybooleanfalseKeep only comments flagged controversial
authorsarray–Keep only these usernames (case-insensitive)
excludeAuthorsarray–Drop these usernames, e.g. bots
keywordsarray–Keep comments containing at least one keyword/phrase
excludeKeywordsarray–Drop comments containing any keyword/phrase
minAwardsinteger–Keep comments with at least this many awards
minRepliesinteger–Keep comments with at least this many direct replies
minCommentLengthinteger–Minimum body length in characters
maxCommentLengthinteger–Maximum body length in characters
focusOnTargetCommentbooleanfalseFor a comment permalink, return the target plus its ancestor chain
commentContextinteger3Ancestor 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: 1abc123 or t3_1abc123
  • old.reddit.com URLs are accepted as input; they are converted to www.reddit.com links 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 keyMaps to
postUrl, postURL, post_url, post_urls, url, urls, startUrls, start_urlspostUrls
sort, comment_sort, sortBycommentSort
maxItems, limit, max_commentsmaxComments
include_post, includePostRecordincludePost
minScoreminCommentScore
maxScoremaxCommentScore
focus_on_target_commentfocusOnTargetComment
contextcommentContext

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/tree returns 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 contains more batches, auto mode fills them from the paginated search endpoint.
  • Archive search: /api/comments/search returns 100 comments per page; the actor follows before cursors (oldest created_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.
  • maxComments is 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 score is 0 or 1 and is less than 36 hours old gets scoreIsPlaceholder: true.
  • A post in the same window gets statsArePlaceholder: true.
  • archiveRetrievedAt is 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-to references, so Atom-fallback records are flat (depth: 0) and omit parent_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:

  • confidence preserves the archive tree's default (Best) order (or the search endpoint's order in archive_search mode).
  • 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; auto fills 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).
  • commentSort is 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.