Reddit Comments Scraper: Nested Threads & Markdown avatar

Reddit Comments Scraper: Nested Threads & Markdown

Pricing

from $0.32 / 1,000 comments

Go to Apify Store
Reddit Comments Scraper: Nested Threads & Markdown

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.

Pricing

from $0.32 / 1,000 comments

Rating

0.0

(0)

Developer

Kizuki

Kizuki

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Pass Reddit post URLs, share links (/r/<sub>/s/...), redd.it links, bare post IDs, or subreddits with keywords, and get nested comment trees as structured rows (comments mode) or whole discussions as LLM-ready Markdown (threads mode).

Turn on onlyNewItems on a schedule to collect and pay only for comments not returned by earlier runs. Empty input ({}) reads comments from sample post 1k2vnz0. This Actor is an independent tool and is not affiliated with Reddit, Inc.

What goes in and what comes out

InputWhat it returns
postUrls (full URL, redd.it/<id>, /r/<sub>/s/..., or ID)Nested comments with depth, parentId, isSubmitter, score, body, and bodyMarkdown
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
}

Output fields

Every row includes id, type (comment or thread), source, capturedAt, and error (null on delivered rows).

Comment rows (mode: "comments")

FieldDescription
commentId, postId, parentId, depthComment ID, parent post ID, parent fullname (t3_... or t1_...), and depth (0 = top level; a reply whose parent is missing from the archive is also returned at 0 with its real t1_ parent)
subreddit, postTitle, postUrl, postAuthorParent post context
url, permalinkDirect comment URL and permalink
author, isSubmitter, distinguished, scoreCommenter username, OP flag, moderator/admin flag, and net score
body, bodyMarkdownPlain text body and single-comment Markdown block with indentation and [OP] badge
amaStatusanswered if the root thread has an OP reply, otherwise unanswered
createdAt, retrievedAtComment creation time and when the archive indexed this comment (ISO 8601 UTC)

Thread rows (mode: "threads")

FieldDescription
postId, url, subreddit, title, body, author, score, numCommentsParent post metadata
extractedCommentCount, comments[]Count and pre-order list of nested comment nodes (id, parentId, depth, author, score, isSubmitter, body, repliesCount)
threadMarkdown, threadMarkdownTruncatedThe post and its indented comment hierarchy as Markdown, at most 60,000 characters. When comments do not fit, whole comments are left out from the end, the heading reads Comments (k of N), and threadMarkdownTruncated is true. comments[] always has every extracted comment

Output example (mode: "comments")

{
"id": "c1001",
"type": "comment",
"source": "reddit",
"commentId": "c1001",
"postId": "1k2vnz0",
"parentId": "t3_1k2vnz0",
"depth": 0,
"subreddit": "SeveranceAppleTVPlus",
"postTitle": "Mark and Helly's relationship is kinda strange",
"postUrl": "https://www.reddit.com/r/SeveranceAppleTVPlus/comments/1k2vnz0/mark_and_hellys_relationship_is_kinda_strange/",
"postAuthor": "Antonater",
"author": "commenter_one",
"isSubmitter": false,
"score": 48,
"body": "I actually thought their shared rebellion built the bond fast.",
"bodyMarkdown": "- **u/commenter_one** · score 48 · 2025-04-19 13:06Z (`c1001`)\n> I actually thought their shared rebellion built the bond fast.",
"amaStatus": "answered",
"error": null,
"capturedAt": "2026-11-16T15:00:00.000Z"
}

Data freshness and archive lag

Measurements taken on 2026-11-16 UTC:

  • New comments: 28–66 s behind in 3 samples (r/AskReddit comments).
  • New posts: the newest post per subreddit was 5–31 s behind across two 1,000-post runs (median 14 s).
  • Vote scores: the archive first stores each comment and post with its score at that moment (often score: 1). Many are re-read 3–36 hours after creation, but some never are, so scores on recent or lightly active threads can stay at the first snapshot.

Removed and deleted posts

When posts are found by subreddit or keyword, posts that moderators, Reddit or the author removed or deleted are skipped, so the comment budget goes to threads people can still see (in a measured 1,000-post sample, 433 of 1,000 posts had been removed or deleted). Set includeRemoved: true to read them too. A post you name in postUrls is always read. Posts that AutoModerator held but whose text is still in the archive are kept, because many are approved later.

Scheduled monitoring with onlyNewItems

Enable onlyNewItems: true to store delivered comment or thread IDs for 90 days. In comments mode, repeated runs return and charge only newly added comments on monitored threads. In threads mode a thread is remembered by its post ID and is not returned again. The memory is kept per mode, set of posts, subreddits and keywords (their order does not matter), after, includeNsfw, includeRemoved, amaFilter, maxCommentsPerPost, and commentSort; changing any of these starts a fresh memory. Avoid concurrent runs with the exact same input.

Pricing and free tier

This Actor uses pay-per-event pricing, like the top Reddit Actors: a comment event for each comment (a comment row, or each comment inside a thread row) and a post event for the post part of a thread row. apify-actor-start is charged once per run start.

Apify planComment (per 1,000)Post in a thread row (per 1,000)
Free$0.60$0.80
Starter (Bronze)$0.52$0.80
Scale (Silver)$0.42$0.65
Business (Gold)$0.32$0.50

Example: a thread row with 100 comments is one post plus 100 comments, $0.0008 + 100 × $0.00052 = $0.0528 on Starter (Bronze).

Apify's Free plan includes USD 5 of monthly usage, which covers about 8,333 comments at the Free plan price (run start fees aside).

You are not charged when a post cannot be found or read on Reddit's side: the row says why in error, and these rows do not count toward maxItems. Invalid inputs and comments skipped by onlyNewItems are not charged either.

Integrations and MCP

MCP (Claude, Cursor, n8n)

Add this Actor to any MCP client:

https://mcp.apify.com?tools=fetch-actor-details,kizukidata/reddit-comments-scraper
  • Claude Code: claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch-actor-details,kizukidata/reddit-comments-scraper"
  • Cursor / Claude Desktop: configure an HTTP MCP connector with the URL above and your Apify API token.

API (cURL / Python)

curl -X POST "https://api.apify.com/v2/acts/kizukidata~reddit-comments-scraper/runs?token=<APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"postUrls":["1k2vnz0"],"mode":"threads","maxItems":1}'
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("kizukidata/reddit-comments-scraper").call(run_input={
"postUrls": ["1k2vnz0"],
"mode": "comments",
"maxItems": 50,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
  • Reddit Scraper — scrape posts by subreddit, author, or keyword, plus subreddit metadata and rules.
  • Bluesky Scraper — keyword posts, account feeds, and follower growth snapshots via AT Protocol.
  • Telegram Channel Scraper — public Telegram channel posts with views, reactions, and onlyNewItems monitoring.
  • YouTube Transcript Scraper — video subtitles, chapters, and replay heatmaps as Markdown and RAG chunks.
  • Reddit User & Subreddit Scraper — the posts and comments of a user, plus profile rows, and the rules and newest posts of a subreddit.