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.
- 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
| Input | What 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
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
Output mode (mode) | string | No | comments | comments (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) | array | No | — | 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) | array | No | — | Read the newest 20 posts of each subreddit (up to 50 subreddits) and extract their comment trees. |
Keywords (optional) (queries) | array | No | — | 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) | string | No | top | Order comments within each tree level: top (default), best, new, old, or controversial. |
AMA filter (amaFilter) | string | No | all | Filter 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) | integer | No | 100 | Maximum comments extracted per post (0-2000; 0 = no per-post cap). Default 100. |
Posts after (after) | string | No | | For subreddit/keyword runs: oldest post boundary (YYYY-MM-DD, epoch seconds, or 24h/7d/30d). |
Posts before (before) | string | No | | For subreddit/keyword runs: newest post boundary (YYYY-MM-DD, epoch seconds, or 7d). |
Include NSFW (includeNsfw) | boolean | No | false | Include posts marked NSFW (over_18) when discovering posts by subreddit/keyword. |
Include removed posts (includeRemoved) | boolean | No | false | Also 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) | boolean | No | false | true skips comments or threads delivered by prior runs with the same input (90-day state); false (default) returns all. |
Maximum rows (maxItems) | integer | No | 20 | Max 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
| Field | Type | Description |
|---|---|---|
id | string | Stable Reddit comment or post ID, or error:<key> on uncharged failure rows. |
type | string | comment in comments mode; thread in threads mode. |
source | string | Row origin: ’reddit’ for archived Reddit data; ’reddit-feed’ when only Reddit’s public feed was available (no scores or comment counts). |
commentId | string | null | Reddit base36 comment ID (comments mode). |
postId | string | null | Parent Reddit post ID. |
parentId | string | null | Parent fullname (t3_<postId> for top-level comments, t1_<commentId> for replies). |
depth | integer | null | Nesting depth (0 = top-level comment). |
subreddit | string | null | Subreddit name without r/ prefix. |
title | string | null | Post title (threads mode). |
postTitle | string | null | Parent post title (comments mode). |
postUrl | string | null | Parent post URL. |
postAuthor | string | null | Original post author username. |
url | string | null | Canonical Reddit URL. |
permalink | string | null | Relative Reddit permalink path. |
author | string | null | Comment or post author username. |
isSubmitter | boolean | null | True when the commenter is the original poster (OP). |
distinguished | string | null | moderator, admin, or null. |
score | integer | null | Net score at archive snapshot time. |
body | string | null | Comment text or post selftext. |
bodyMarkdown | string | null | Comment formatted as Markdown with author, OP badge, score, and depth indentation. |
extractedCommentCount | integer | null | Number of comments included in threads mode. |
comments | array | Nested comment nodes in tree order (threads mode). |
threadMarkdown | string | null | Whole post and nested comment tree rendered as LLM-ready Markdown (threads mode). |
threadMarkdownTruncated | boolean | null | True 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. |
amaStatus | string | null | answered or unanswered for AMA filtering. |
createdAt | string | null | Creation timestamp (ISO 8601 UTC). |
retrievedAt | string | null | When the public archive indexed this item (ISO 8601 UTC). |
matchedTarget | string | null | Input target that produced this row. |
error | object | null | null on delivered rows; {type, message} on uncharged failure rows. |
capturedAt | string | When this Actor run captured the row (ISO 8601 UTC). |
isNew | boolean | null | Present when onlyNewItems is true: indicates an item unseen in prior runs. |
Sources and limits
- Arctic Shift, an independent archive of public Reddit posts and comments: The archive’s public comment tree for each post, subreddit or keyword, and its post lookup for the threads a comment belongs to. No login.
Limitations
No separate limitations section is documented in the README.
Staging run
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.
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.