Reddit Comments Scraper: Nested Threads & Markdown

Extract nested Reddit comment trees as structured rows or LLM-ready Markdown from post URLs, share links, post IDs, or subreddits. Filter AMA replies, track only new comments, and skip charges on errors. Not affiliated with Reddit.

USD 0.60 / 1,000 commentsView on Apify Store
31 output fields Last verified: 2026-11-17 Social media · News · Automation
  • Later runs return only the rows your previous run did not deliver.
  • 10,000 comments cost USD 6.00 at the Free-tier price; the Starter, Scale and Business plans are cheaper.

What it does

InputWhat it returns
subreddits + queries (optional)Reads the newest 20 posts of each subreddit (only those matching queries, if given) and extracts their comment trees
mode: "comments" (default)1 row per comment, ordered by commentSort within each tree level
mode: "threads"1 row per post containing the nested comments[] list (up to maxCommentsPerPost) and indented threadMarkdown
amaFilter (all, answered, unanswered)answered keeps each top-level comment thread (the root comment and all its replies) where the original poster replied; unanswered keeps the threads with no OP reply

Quick start

Extract comments from a discussion sorted by top score:

{
    "mode": "comments",
    "postUrls": ["https://www.reddit.com/r/SeveranceAppleTVPlus/comments/1k2vnz0/"],
    "commentSort": "top",
    "maxCommentsPerPost": 100,
    "maxItems": 100
}

Export whole threads as LLM-ready Markdown for RAG or summarization:

{
    "mode": "threads",
    "postUrls": ["1k2vnz0"],
    "amaFilter": "answered",
    "maxCommentsPerPost": 500,
    "maxItems": 20
}

Inputs

InputTypeRequiredDefaultDescription
Output mode (mode)stringNocommentscomments (default): 1 row/comment with depth, parentId, isSubmitter, bodyMarkdown. threads: 1 row/post with nested comments[] and threadMarkdown (up to 60,000 characters).
Post URLs or IDs (postUrls)arrayNo—Reddit post URLs, redd.it links, /r/{subreddit}/s/... share links, or post IDs (up to 50). Empty input reads sample post 1k2vnz0.
Subreddits (optional) (subreddits)arrayNo—Read the newest 20 posts of each subreddit (up to 50 subreddits) and extract their comment trees.
Keywords (optional) (queries)arrayNo—Keywords (2-120 chars, up to 10) matched against post titles and text inside the listed subreddits. Without subreddits, searches up to 5 communities whose names start with the keyword. Not a Reddit-wide search.
Comment sort order (commentSort)stringNotopOrder comments within each tree level: top (default), best, new, old, or controversial.
AMA filter (amaFilter)stringNoallFilter top-level comment threads (root comment plus all replies) by OP replies: all (default), answered (OP replied somewhere in the thread), or unanswered (no OP reply).
Max comments per post (maxCommentsPerPost)integerNo100Maximum comments extracted per post (0-2000; 0 = no per-post cap). Default 100.
Posts after (after)stringNoFor subreddit/keyword runs: oldest post boundary (YYYY-MM-DD, epoch seconds, or 24h/7d/30d).
Posts before (before)stringNoFor subreddit/keyword runs: newest post boundary (YYYY-MM-DD, epoch seconds, or 7d).
Include NSFW (includeNsfw)booleanNofalseInclude posts marked NSFW (over_18) when discovering posts by subreddit/keyword.
Include removed posts (includeRemoved)booleanNofalseAlso read comments under posts that moderators, Reddit or the author removed or deleted. Off by default: when posts are found by subreddit or keyword, removed and deleted posts are skipped, so the comment budget goes to threads people can still see. Posts you name in postUrls are always read.
Only new comments (onlyNewItems)booleanNofalsetrue skips comments or threads delivered by prior runs with the same input (90-day state); false (default) returns all.
Maximum rows (maxItems)integerNo20Max charged rows returned per run (1-5000, default 20). Status rows (error set) are free and do not count toward this cap.

Advanced: proxyConfiguration is available for proxy settings and is not required.

Output

FieldTypeDescription
idstringStable Reddit comment or post ID, or error:<key> on uncharged failure rows.
typestringcomment in comments mode; thread in threads mode.
sourcestringRow origin: ’reddit’ for archived Reddit data; ’reddit-feed’ when only Reddit’s public feed was available (no scores or comment counts).
commentIdstring | nullReddit base36 comment ID (comments mode).
postIdstring | nullParent Reddit post ID.
parentIdstring | nullParent fullname (t3_<postId> for top-level comments, t1_<commentId> for replies).
depthinteger | nullNesting depth (0 = top-level comment).
subredditstring | nullSubreddit name without r/ prefix.
titlestring | nullPost title (threads mode).
postTitlestring | nullParent post title (comments mode).
postUrlstring | nullParent post URL.
postAuthorstring | nullOriginal post author username.
urlstring | nullCanonical Reddit URL.
permalinkstring | nullRelative Reddit permalink path.
authorstring | nullComment or post author username.
isSubmitterboolean | nullTrue when the commenter is the original poster (OP).
distinguishedstring | nullmoderator, admin, or null.
scoreinteger | nullNet score at archive snapshot time.
bodystring | nullComment text or post selftext.
bodyMarkdownstring | nullComment formatted as Markdown with author, OP badge, score, and depth indentation.
extractedCommentCountinteger | nullNumber of comments included in threads mode.
commentsarrayNested comment nodes in tree order (threads mode).
threadMarkdownstring | nullWhole post and nested comment tree rendered as LLM-ready Markdown (threads mode).
threadMarkdownTruncatedboolean | nullTrue when threadMarkdown left out comments from the end (heading ’Comments (k of N)’) or cut the post body to stay within 60,000 characters. comments[] still has every extracted comment.
amaStatusstring | nullanswered or unanswered for AMA filtering.
createdAtstring | nullCreation timestamp (ISO 8601 UTC).
retrievedAtstring | nullWhen the public archive indexed this item (ISO 8601 UTC).
matchedTargetstring | nullInput target that produced this row.
errorobject | nullnull on delivered rows; {type, message} on uncharged failure rows.
capturedAtstringWhen this Actor run captured the row (ISO 8601 UTC).
isNewboolean | nullPresent when onlyNewItems is true: indicates an item unseen in prior runs.

Sources and limits

Limitations

No separate limitations section is documented in the README.

Read the data-source note.

Staging run

Staging run — 2026-11-17; input {} (the default sample post); 20 results returned. This is a staging run on Kizuki’s own account, not a customer result and not a testimonial.

20 items read · 0 filtered out.

Default staging run: 20 comments in 3.2 s.

Sample output

One result of a run, cut to 10 of the 31 output fields; long text is shortened. Download the same rows as JSON or CSV.

{
  "id": "mnx5qs6",
  "type": "comment",
  "subreddit": "SeveranceAppleTVPlus",
  "postTitle": "Mark and Helly's relationship is kinda strange",
  "author": "leninzen",
  "score": 1148,
  "body": "You do see it slowly build tbh. Especially after Mark's response to Helly's hanging attempt. He grows balls, and starts to stick up for her and the team. You see her subtly gaining respect for him, and that then grows into trust.",
  "createdAt": "2025-04-19T13:03:54.000Z",
  "amaStatus": "unanswered",
  "capturedAt": "2026-11-16T16:11:08.550Z"
}

The output schema above lists every field. These rows come from a staging run, not from a customer.

Pricing

USD 0.60 per 1,000 comments on Free; USD 0.52 on Starter, USD 0.42 on Scale, USD 0.32 on Business

Apify charges per result; the Store page is the commercial reference. Rows that only record a failure are not charged. Every run also carries a start fee of USD 0.00005 per GB of memory (USD 0.00005 at the default 0.25 GB), even a run that returns no results.

View on Apify Store

Verification

The facts on this page come from the Actor’s own documentation and input and output schemas, and the staging run recorded above. No customer testimonials, ratings, or uptime numbers are shown.

The Store page is the commercial reference.