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.

USD 0.80 / 1,000 postsView on Apify Store
52 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 posts cost USD 8.00 at the Free-tier price; the Starter, Scale and Business plans are cheaper.

What it does

InputWhat it returns
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:

{
    "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:

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

Inputs

InputTypeRequiredDefaultDescription
Mode (mode)stringNopostsposts (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)arrayNo—Subreddit names (webscraping, r/python) or URLs (up to 50 in this list). Empty input reads r/webscraping.
Post URLs or IDs (postUrls)arrayNo—Reddit post URLs, redd.it links, /r/{subreddit}/s/... share links, or post IDs (e.g. 1k2vnz0). Up to 50.
Start URLs (startUrls)arrayNo—Mixed Reddit URLs (subreddit, post, share link, or user profile). Automatically routed by URL type (up to 50 in this list).
Authors (authors)arrayNo—Reddit usernames (spez, u/spez) or profile URLs (up to 50).
Keywords (queries)arrayNo—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)stringNonewOrder 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)stringNoOldest post boundary: ISO date (2026-11-01), epoch seconds, or relative offset (24h, 7d, 30d). Empty means no cutoff.
Posted before (before)stringNoNewest post boundary: ISO date, epoch seconds, or relative offset (e.g. 7d). Empty means now.
Include comments on posts (includeComments)booleanNofalseIn posts mode, also attach nested comments and LLM-ready threadMarkdown to each post row.
Max comments per post (maxCommentsPerPost)integerNo50Maximum 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)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).
Include NSFW (includeNsfw)booleanNofalseInclude posts marked NSFW (over_18). Off by default.
Include removed posts (includeRemoved)booleanNofalseAlso 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)booleanNofalsetrue 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)integerNo25Posts scanned per subreddit or author before maxItems (1-500, default 25).
Maximum rows (maxItems)integerNo20Max 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

FieldTypeDescription
idstringStable Reddit ID (post, comment, or subreddit ID) or error:<key> for uncharged failure rows.
typestringRow type returned by the selected mode.
sourcestringRow origin: ’reddit’ for archived Reddit data; ’reddit-feed’ when only Reddit’s public feed was available (no scores or comment counts).
postIdstring | nullReddit base36 post ID.
commentIdstring | nullReddit base36 comment ID (comments mode only).
parentIdstring | nullParent fullname (t3_<postId> for top-level comments, t1_<commentId> for replies).
depthinteger | nullNesting depth (0 = top-level comment).
urlstring | nullCanonical Reddit URL.
permalinkstring | nullRelative Reddit permalink path.
subredditstring | nullSubreddit name without r/ prefix.
titlestring | nullPost title or subreddit title.
postTitlestring | nullParent post title (comments mode).
postUrlstring | nullParent post URL (comments mode).
postAuthorstring | nullParent post author username (comments mode).
bodystring | nullPost selftext or comment body.
bodyMarkdownstring | nullSingle comment formatted as Markdown with author, OP badge, score, and indentation.
authorstring | nullReddit author username.
authorFlairTextstring | nullAuthor flair text on the post.
linkFlairTextstring | nullPost flair text.
domainstring | nullDomain of the linked content.
externalUrlstring | nullExternal link URL for link posts; null for self posts.
thumbnailUrlstring | nullThumbnail image URL if available.
isSelfboolean | nullTrue for text/self posts.
isVideoboolean | nullTrue when the post is a Reddit video.
isNsfwboolean | nullTrue when marked over_18.
isSpoilerboolean | nullTrue when marked spoiler.
isSubmitterboolean | nullTrue when the commenter is the original poster (OP).
distinguishedstring | nullmoderator, admin, or null.
scoreinteger | nullNet score at archive snapshot time.
upvoteRationumber | nullUpvote ratio between 0 and 1.
numCommentsinteger | nullTotal comment count reported on the post snapshot.
metricsRefreshedboolean | nullTrue 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.
removedBystring | nullWhy 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.
createdAtstring | nullCreation timestamp (ISO 8601 UTC).
retrievedAtstring | nullWhen the public archive indexed this item (ISO 8601 UTC).
matchedTargetstring | nullInput target (r/subreddit, u/author, or post:id) that produced this row.
matchedQuerystring | nullKeyword phrase that matched this post, or null.
matchesQueryTermsboolean | nullTrue when the post text matches the search query terms.
extractedCommentCountintegerNumber of comments included in comments[] on this post/thread row.
commentsarrayNested comment nodes in tree order when includeComments or threads mode is active.
threadMarkdownstring | nullFull post and nested comment tree formatted as LLM-ready Markdown.
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 in AMA threads (comments mode).
publicDescriptionstring | nullShort subreddit description (subreddits mode).
descriptionstring | nullFull subreddit sidebar description (subreddits mode).
subscribersinteger | nullSubreddit subscriber count (subreddits mode).
activeUsersinteger | nullActive users on the subreddit snapshot (subreddits mode).
langstring | nullSubreddit primary language (subreddits mode).
rulesarraySubreddit rules list (subreddits mode).
errorobject | nullnull on delivered rows; {type, message} on uncharged error rows.
capturedAtstringWhen this Actor run captured the row (ISO 8601 UTC).
isNewboolean | nullPresent when onlyNewItems is true: indicates a row 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 subreddit); 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 posts in 3.1 s.

Sample output

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

{
  "id": "1abc901",
  "type": "post",
  "url": "https://www.reddit.com/r/webscraping/comments/1abc901/best_http_client/",
  "subreddit": "webscraping",
  "title": "Best HTTP client for TLS fingerprinting in Node.js",
  "author": "scrape_builder",
  "score": 28,
  "numComments": 2,
  "createdAt": "2026-11-16T03:33:20.000Z",
  "metricsRefreshed": true,
  "matchedTarget": "r/webscraping",
  "capturedAt": "2026-11-16T15:00:00.000Z"
}

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

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

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.