# Reddit Scraper: Posts, Subreddits & Comments

> Extract Reddit posts, nested comments as Markdown, and subreddit rules by subreddit, URL, author, or keyword. Track only new items on schedules and skip charges on errors. Not affiliated with Reddit.

- **Page:** https://kizukidata.com/actors/reddit-scraper/
- **Markdown:** https://kizukidata.com/actors/reddit-scraper.md
- **Categories:** Social media, News, Automation
- **Returns only changed items:** yes
- **On Apify Store:** yes

## Pricing

USD 0.80 per 1,000 posts on Free; USD 0.80 on Starter, USD 0.65 on Scale, USD 0.50 on Business

## Run it

[View on Apify Store](https://kizukidata.com/go/reddit-scraper)

## What it does

| Input | What it returns |
|---|---|
| `subreddits` (`webscraping`, `r/python`, URL) | The newest `postsPerSource` posts from each subreddit (re-ordered by score or comment count with `sort: top` / `comments`), with optional nested comment trees |
| `postUrls` (post URL, `redd.it/<id>`, `/r/<sub>/s/...`, or ID) | Post metadata and optionally nested comment trees, up to `maxCommentsPerPost` per post (`includeComments: true` or `mode: "threads"`) |
| `startUrls` (mixed Reddit URLs) | Automatically routed to post, subreddit, or author extraction |
| `authors` (`spez`, `u/spez`, profile URL) | Public posts submitted by those users |
| `queries` (search keywords) | Matching posts inside the subreddits or authors you list. Without them, the Actor searches up to 5 communities whose names start with a keyword word (English letters and digits only). This is not a Reddit-wide search |
| `mode: "subreddits"` | Subreddit title, description, subscriber count, active users, NSFW flag, and community rules |

### Quick start

Extract posts from a subreddit with keyword filtering and nested comments formatted as Markdown:

```json
{
    "mode": "posts",
    "subreddits": ["webscraping", "r/SaaS"],
    "queries": ["api"],
    "after": "7d",
    "includeComments": true,
    "maxCommentsPerPost": 30,
    "onlyNewItems": true,
    "maxItems": 20
}
```

Extract discussion threads as single LLM-ready Markdown rows:

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

## Inputs

| Input | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| Mode (`mode`) | string | No | `posts` | posts (default): 1 row/post. threads: 1 row/post with nested comments and LLM Markdown. comments: 1 row/comment. subreddits: subreddit info and rules. |
| Subreddits (`subreddits`) | array | No | `—` | Subreddit names (webscraping, r/python) or URLs (up to 50 in this list). Empty input reads r/webscraping. |
| Post URLs or IDs (`postUrls`) | array | No | `—` | Reddit post URLs, redd.it links, /r/{subreddit}/s/... share links, or post IDs (e.g. 1k2vnz0). Up to 50. |
| Start URLs (`startUrls`) | array | No | `—` | Mixed Reddit URLs (subreddit, post, share link, or user profile). Automatically routed by URL type (up to 50 in this list). |
| Authors (`authors`) | array | No | `—` | Reddit usernames (spez, u/spez) or profile URLs (up to 50). |
| Keywords (`queries`) | array | No | `—` | Search phrases (2-120 chars, up to 10; supports "exact phrase", OR, -exclude). Searches inside the subreddits or authors you list; without them, searches up to 5 communities whose names start with the keyword (English letters and digits). Not a Reddit-wide search. |
| Post sort order (`sort`) | string | No | `new` | Order of the newest postsPerSource posts read from each source: new (default), top (score), or comments (comment count). Not an all-time top list. |
| Posted after (`after`) | string | No | `` | Oldest post boundary: ISO date (2026-11-01), epoch seconds, or relative offset (24h, 7d, 30d). Empty means no cutoff. |
| Posted before (`before`) | string | No | `` | Newest post boundary: ISO date, epoch seconds, or relative offset (e.g. 7d). Empty means now. |
| Include comments on posts (`includeComments`) | boolean | No | `false` | In posts mode, also attach nested comments and LLM-ready threadMarkdown to each post row. |
| Max comments per post (`maxCommentsPerPost`) | integer | No | `50` | Maximum comments extracted per post (0-1000; 0 = no per-post cap). Applies in threads/comments mode or when includeComments is true. |
| 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). |
| Include NSFW (`includeNsfw`) | boolean | No | `false` | Include posts marked NSFW (over_18). Off by default. |
| Include removed posts (`includeRemoved`) | boolean | No | `false` | Also return posts that moderators, Reddit or the author removed or deleted (the row's removedBy field says which). Off by default: subreddit, author and keyword lists skip them, so you only get and pay for posts people can still see. Posts you name in postUrls are always returned. |
| Only new items (`onlyNewItems`) | boolean | No | `false` | true skips rows already delivered by earlier runs with the same input (90-day state); false (default) returns all matching items. |
| Posts requested per source (`postsPerSource`) | integer | No | `25` | Posts scanned per subreddit or author before maxItems (1-500, default 25). |
| Maximum rows (`maxItems`) | integer | No | `20` | Max charged rows returned per run (1-2000, 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 ID (post, comment, or subreddit ID) or error:<key> for uncharged failure rows. |
| `type` | string | Row type returned by the selected 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). |
| `postId` | string \| null | Reddit base36 post ID. |
| `commentId` | string \| null | Reddit base36 comment ID (comments mode only). |
| `parentId` | string \| null | Parent fullname (t3_<postId> for top-level comments, t1_<commentId> for replies). |
| `depth` | integer \| null | Nesting depth (0 = top-level comment). |
| `url` | string \| null | Canonical Reddit URL. |
| `permalink` | string \| null | Relative Reddit permalink path. |
| `subreddit` | string \| null | Subreddit name without r/ prefix. |
| `title` | string \| null | Post title or subreddit title. |
| `postTitle` | string \| null | Parent post title (comments mode). |
| `postUrl` | string \| null | Parent post URL (comments mode). |
| `postAuthor` | string \| null | Parent post author username (comments mode). |
| `body` | string \| null | Post selftext or comment body. |
| `bodyMarkdown` | string \| null | Single comment formatted as Markdown with author, OP badge, score, and indentation. |
| `author` | string \| null | Reddit author username. |
| `authorFlairText` | string \| null | Author flair text on the post. |
| `linkFlairText` | string \| null | Post flair text. |
| `domain` | string \| null | Domain of the linked content. |
| `externalUrl` | string \| null | External link URL for link posts; null for self posts. |
| `thumbnailUrl` | string \| null | Thumbnail image URL if available. |
| `isSelf` | boolean \| null | True for text/self posts. |
| `isVideo` | boolean \| null | True when the post is a Reddit video. |
| `isNsfw` | boolean \| null | True when marked over_18. |
| `isSpoiler` | boolean \| null | True when marked spoiler. |
| `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. |
| `upvoteRatio` | number \| null | Upvote ratio between 0 and 1. |
| `numComments` | integer \| null | Total comment count reported on the post snapshot. |
| `metricsRefreshed` | boolean \| null | True when the archive re-read the post after its first snapshot (usually 3-36h) or first indexed it 36h+ after creation; false means counts may still be the first snapshot. |
| `removedBy` | string \| null | Why Reddit no longer shows the post (moderator, automod_filtered, reddit, deleted, author, removed), or null. AutoModerator-held posts whose text survived are treated as visible (null), since many are approved later. Only set when includeRemoved is on or the post was named in postUrls. |
| `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 (r/subreddit, u/author, or post:id) that produced this row. |
| `matchedQuery` | string \| null | Keyword phrase that matched this post, or null. |
| `matchesQueryTerms` | boolean \| null | True when the post text matches the search query terms. |
| `extractedCommentCount` | integer | Number of comments included in comments[] on this post/thread row. |
| `comments` | array | Nested comment nodes in tree order when includeComments or threads mode is active. |
| `threadMarkdown` | string \| null | Full post and nested comment tree formatted as LLM-ready Markdown. |
| `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 in AMA threads (comments mode). |
| `publicDescription` | string \| null | Short subreddit description (subreddits mode). |
| `description` | string \| null | Full subreddit sidebar description (subreddits mode). |
| `subscribers` | integer \| null | Subreddit subscriber count (subreddits mode). |
| `activeUsers` | integer \| null | Active users on the subreddit snapshot (subreddits mode). |
| `lang` | string \| null | Subreddit primary language (subreddits mode). |
| `rules` | array | Subreddit rules list (subreddits mode). |
| `error` | object \| null | null on delivered rows; {type, message} on uncharged error rows. |
| `capturedAt` | string | When this Actor run captured the row (ISO 8601 UTC). |
| `isNew` | boolean \| null | Present when onlyNewItems is true: indicates a row unseen in prior runs. |

## Sources and limits

- Arctic Shift, an independent archive of public Reddit posts and comments (https://arctic-shift.photon-reddit.com): The archive's public API for posts, comments, subreddit metadata and rules; reddit.com's public RSS is a fallback when the archive is behind. No login.

Read the data-source note: https://kizukidata.com/data-sources/#reddit-scraper

## Billing

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 its input and dataset schemas. No customer testimonials, ratings, or uptime numbers are shown.

## All Kizuki Actors

https://kizukidata.com/actors/ · https://kizukidata.com/llms.txt
