# Reddit Scraper

> Get the posts from any subreddit, user or Reddit search, and every comment under them, with score, upvote ratio, flair, date and the full text.

Reddit Scraper collects posts from subreddits, users, keyword searches and post links, and if you want them, every comment with its replies. Each post and each comment is one row with its text, author, score, date and link; posts add the upvote ratio, flair, comment count and score per hour. It can bring only what’s new since your last run, and turn threads into chunks ready for AI. It needs no Reddit account.

- Web page: https://keklik.io/scrapers/reddit-scraper
- Apify Actor: `keklik/reddit-scraper` (https://apify.com/keklik/reddit-scraper)
- You enter: Subreddits, usernames, search words or Reddit post links
- You get: Post title and text, comments and replies, score, upvote ratio, flair and date
- Status: working, last tested 27 Nov 2026
- Needs: an Apify account (free is enough to try). No login to the site itself.

## Price per 1,000 posts

US dollars, on each Apify plan. Apify's platform costs are included. Add-ons are charged only when switched on in the input.

| Charge | Free | Starter | Scale | Business |
|---|---:|---:|---:|---:|
| Post | $1.40 | $1.20 | $1.00 | $0.80 |
| Comment (add-on) | $0.70 | $0.60 | $0.50 | $0.40 |
| Search result opened (add-on) | $3.00 | $3.00 | $2.50 | $2.50 |
| Post turned into RAG chunks (add-on) | $0.50 | $0.50 | $0.50 | $0.50 |
| Linked page read (add-on) | $2.00 | $2.00 | $2.00 | $2.00 |

Apify's plans and a calculator: https://keklik.io/pricing.md

## Input

The run input is a JSON object with these keys:

- `targets` (array, required): 🔗 Reddit targets. One per line, any mix: a subreddit (https://www.reddit.com/r/Python/ or r/Python), a user (u/spez), a post link, a Reddit search link, or plain words to search all of Reddit for (web scraping tools).
- `whatToGet` (string, optional, default "posts", one of "posts", "posts_comments", "media"): 📦 What to get. Posts only; each post followed by its comments (replies included, each with its depth and parent; comments are rows of their own, marked type comment); or only image, video and gallery posts (searches use Reddit's media search, which shows no date, score or text).
- `aiOutput` (string, optional, default "none", one of "none", "finetune", "rag"): 🤖 AI output. Also get each post in a shape AI tools take directly. Fine-tuning pairs: the post as the user's message and its highest-scoring direct reply as the answer, for training a chat model (turns on comments). RAG chunks: each post, with its comments if you get them, as clean Markdown split into chunks of about 750 tokens, each with its title, subreddit, date and link, ready for a vector database or as a search source for an AI agent. Both come as their own table and as one JSONL file. Fine-tuning pairs are free; RAG chunks are a small charge per post turned into chunks, on top of the posts and comments.
- `maxPosts` (integer, optional, default 100): 🔢 Max posts per target. Stop each target after this many posts. 0 means as many as Reddit lists (about 1,000 for a subreddit, fewer for a search).
- `maxResults` (integer, optional, default 0): 🛑 Max results in total. Stop the whole run after this many rows, posts and comments together. 0 means no limit. Handy to try a big input on a few results first; your maximum cost per run also always applies.
- `onlyNew` (boolean, optional, default false): 🔔 Only new since my last run. For scheduled runs: each target returns only posts newer than the newest one the last run saved (for a post link, only its new comments). Targets are read newest first and stop at what you already have, so runs are fast and cheap. Runs of the same saved task share this memory; different tasks keep their own. Free.
- `goDeeper` (boolean, optional, default false): ⏬ Go past Reddit's 1,000-post limit. Reddit stops every subreddit, user and search listing at about 1,000 posts. Turn this on to also read the same target's other sorts and time windows (New, Top of all time, year, month, week, Controversial, Hot), skipping posts already saved, to get well past that. Set Max posts per target to how many you want, or 0 for all Reddit will show. Slower: about 2.5 minutes per 1,000 posts. Free; you pay for the posts as usual.
- `crawlLinkedPages` (boolean, optional, default false): 🌐 Also read linked pages ($). For posts that link to an outside page (an article, a blog, a product page): also get that page's title and its text as clean Markdown, in the linked_page_title and linked_page_text columns. Links to images, videos and social sites are skipped. You pay per page read; pages that can't be read are free.
- `searchSubreddits` (array, optional): 🔎 Search only in these subreddits. For search words in Reddit targets: search inside each of these subreddits (r/SaaS or SaaS) instead of all of Reddit, one search per subreddit. A pasted Reddit search link keeps its own.
- `matchWords` (string, optional, default "reddit", one of "reddit", "all", "phrase"): 🎯 Match words. Reddit's search also returns loosely related posts. Pick a stricter match to keep only posts whose title or text has every one of your search words, or the exact phrase. The text of a search result is read from its own page when the title alone doesn't settle it, which makes those posts slower to get.
- `sort` (string, optional, default "default", one of "default", "new", "top", "hot", "rising", "controversial", "comments", "relevance"): ↕️ Sort. How posts are ordered. A sort a target doesn't have falls back to Reddit's default for it. A sort in a link you paste is used when this is left on Reddit's default.
- `time` (string, optional, default "all", one of "all", "hour", "day", "week", "month", "year"): 🕒 Time window. For Top and Controversial, and for searches: only posts from this period, as Reddit counts it.
- `postedSince` (string, optional): 📅 Posted since. Only posts from this date on: a date like 2026-11-01, or a period back from now like 7 days or 24 hours (handy for scheduled runs). With sort New, the run stops reading a target at the first older post, so it's fast and cheap.
- `postedBefore` (string, optional): 📅 Posted before. Only posts from before this date (2026-11-01 means up to the end of that day) or before a period back from now (30 days). Together with Posted since, a date range.
- `flairs` (array, optional): 🏷️ Only these flairs. Keep only posts with one of these flairs (the tag a subreddit puts on posts, such as Hiring or Question), in any letter case. Write any to keep every post that has a flair. A search result's flair is read from its own page.
- `includeNsfw` (boolean, optional, default false): 🔞 Include NSFW. Include posts and communities marked NSFW (18+). Off: they're skipped, and an NSFW subreddit or post link is listed in Failed targets.
- `maxComments` (integer, optional, default 100): 💬 Max comments per post. With "Posts with their comments": stop each post's comments after this many. 0 means all of them.
- `maxDepth` (integer, optional): ↘️ Max reply depth. With comments: 0 keeps only direct replies to the post, 1 also replies to those, and so on. Leave empty for the whole thread. Deeper replies are not even loaded, so runs are faster.
- `commentsSince` (string, optional): 📅 Comments posted since. With comments: only comments from this date on, or from a period back like 1 day (for new replies on threads you follow).
- `commentsBefore` (string, optional): 📅 Comments posted before. With comments: only comments from before this date or period.

Example input:

```json
{
  "targets": [
    "r/SaaS"
  ],
  "whatToGet": "posts_comments",
  "sort": "top",
  "time": "week",
  "maxPosts": 8,
  "maxComments": 5,
  "aiOutput": "none",
  "matchWords": "reddit"
}
```

## Output: one row per post

41 fields in 2 groups.

### Posts

- `url`: Link. Link to the post or comment on Reddit.
- `subreddit`: Subreddit. The subreddit, without r/. A post on a user profile shows u_ and the username.
- `title`: Title. Post title. Posts only.
- `body`: Text. The post or comment text, paragraphs and list items on their own lines. Empty for link, image and video posts without text.
- `author`: Author. Username of who posted or commented, without u/. [deleted] when the account is gone.
- `created_at`: Posted at. When it was posted, in UTC (ISO 8601).
- `score`: Score. Upvotes minus downvotes, as Reddit shows it.
- `upvote_ratio`: Upvote ratio. Share of votes that are upvotes, 0 to 1. Posts only; empty for search results without comments.
- `comment_count`: Comments. Number of comments on the post, as Reddit counts them. Posts only.
- `score_per_hour`: Score per hour. Score divided by age in hours (at least 1 hour): how fast a post is climbing. Posts only.
- `comments_per_hour`: Comments per hour. Comment count divided by age in hours (at least 1 hour). Posts only.
- `age_hours`: Age (hours). Hours between when it was posted and when it was scraped.
- `word_count`: Words. Words in the title and text of a post, or in a comment.
- `award_count`: Awards. Awards the post received. Posts only.
- `flair`: Flair. The post's flair (its tag in the subreddit, such as Discussion). Posts only.
- `post_type`: Post type. Reddit's kind of post: text, link, image, video, gallery, multi_media or crosspost.
- `link_url`: Linked URL. What the post points at: an outside link, an image or video, or the original post of a crosspost. Empty for text posts.
- `thumbnail_url`: Thumbnail. Preview image of an image or video post. Filled for results of the Images and videos search.
- `domain`: Domain. The linked site's domain; self.<subreddit> for text posts.
- `language`: Language. The post's language as Reddit detects it (a two-letter code).
- `nsfw`: NSFW. Marked NSFW (18+).
- `spoiler`: Spoiler. Marked as a spoiler.
- `stickied`: Pinned. Pinned to the top of the subreddit by its moderators.
- `locked`: Locked. Locked: no new comments allowed.
- `source`: Found in. Where the post was found: subreddit, user, search or post (a post link).
- `input`: Target. The target from your input this row came from, as you typed it.

### Comments

- `post_title`: Post title. On a comment: the title of the post it's on.
- `body`: Text. The post or comment text, paragraphs and list items on their own lines. Empty for link, image and video posts without text.
- `author`: Author. Username of who posted or commented, without u/. [deleted] when the account is gone.
- `score`: Score. Upvotes minus downvotes, as Reddit shows it.
- `created_at`: Posted at. When it was posted, in UTC (ISO 8601).
- `depth`: Depth. On a comment: 0 for a reply to the post, 1 for a reply to a reply, and so on.
- `parent_id`: Reply to. On a comment: the ID of what it replies to, the post (t3_) or another comment (t1_).
- `is_op`: By the poster. On a comment: written by the author of the post.
- `is_target`: Linked comment. On a comment from a comment link in your targets: true for the comment the link points at. Empty otherwise.
- `word_count`: Words. Words in the title and text of a post, or in a comment.
- `post_url`: Post link. On a comment: link to the post it's on.
- `subreddit`: Subreddit. The subreddit, without r/. A post on a user profile shows u_ and the username.
- `input`: Target. The target from your input this row came from, as you typed it.

## How it works

1. Type what to read. Subreddits, usernames, search words or post links, mixed in one list, one per line.
2. Posts, or posts with every comment. Comments come with their replies, their depth in the thread and the comment they answer. Or get only the images and videos.
3. Keep only the posts you want. Sort and time window, a date range, flairs, words that must really be in the post, and an NSFW switch. A scheduled run can bring only what is new.
4. Download your list. As a spreadsheet, in Google Sheets, or as chunks ready for your AI.

## Use cases

- Hearing what customers really say: Threads about your product, your competitors or your category, in people’s own words, with the replies that show who agrees.
- Finding pain points and ideas: The questions and complaints that come up again and again in a niche, ranked by score, for product research and content ideas.
- Watching mentions over time: A daily run that brings only the new posts and comments for your words or subreddits, ready for an alert or a report.
- Feeding AI with real discussions: Threads as Markdown chunks for a vector database, or post-and-reply pairs for fine-tuning a model.

## Good to know

Reddit lists about 1,000 posts for one subreddit and sort, and fewer for a search; the scraper can read other sorts and time windows to go further. Private and banned subreddits can’t be read.

## Questions

### Is it legal to scrape Reddit?

This scraper collects only what Reddit shows publicly to visitors who are not logged in. Posts and comments can contain personal data, so check that your use follows the laws that apply to you. If you are unsure, ask a lawyer.

### Do I need a Reddit account or API key?

No. You don't need a Reddit account, a login, cookies or a Reddit API key.

### How many posts can I get from one subreddit or search?

Reddit lists about 1,000 posts per subreddit and sort, and fewer for a search. Turn on Go past Reddit's 1,000-post limit and the scraper also reads the same target's other sorts and time windows (Top of all time, of the year, month and week, Controversial, Hot), skipping posts it already has. In our test on r/learnpython it went from Reddit's 999 to 1,300 posts in 2.5 minutes. To keep a complete record going forward, schedule runs with Only new since my last run.

### How does "Only new since my last run" work?

For each target, the scraper remembers the newest post it saved (and recent post IDs), in a small store in your own Apify account called reddit-scraper-monitoring. The next run reads newest first and stops when it reaches what you already have, so a daily run takes seconds and costs only the new posts. For a post link, it brings only the comments added since the last run. Runs of the same saved task share the memory; different tasks keep their own, so two tasks can watch the same subreddit. A run with nothing new ends successfully with "Nothing new since the last run".

### Why do search results look thinner without comments?

Reddit's search page shows a post's title, author, score, comment count and date, but not its text, upvote ratio or flair. With Posts with their comments, Only these flairs, or a Match words check the title can't settle, each search result is read from its own page, so those fields are filled too.

### Can I scrape one comment and its thread?

Yes. Paste the comment's link (the Share link on a comment). You get the post and, with Posts with their comments, its thread, with the linked comment marked is_target: true. With Posts, you get the post and that one comment.

### What does "Images and videos only" return?

For subreddits and users, only their image, video and gallery posts, with every post field. For search words, Reddit's media search: the post, its subreddit and author, the image or video link and a thumbnail, but no date, score or text, because that page doesn't show them.

### How are fine-tuning pairs made?

Each post (its title and text) becomes the user's message, and its highest-scoring direct reply becomes the assistant's answer. Replies by the poster, bots such as AutoModerator, deleted accounts, removed text and replies with a score under 1 are never used. A post with no usable reply gives no pair. The file uses OpenAI's chat format (messages with user and assistant roles), which most fine-tuning tools accept. Turning it on also gets the posts' comments, which you pay for as usual; the pairs themselves are free.

### What happens when a run fails?

The run's status message says why, and the log names each input that failed. If a mistake in the input stops the run before anything is scraped, the run ends without results and its status message says what to change. Either way the Actor sends us a short error report, so we can fix the cause even if you never open an issue: the Actor's build, the reason, the counts from the end-of-run summary, whether your Apify plan is free or paid and, for an unexpected error, where in our code it happened. Web addresses and @usernames are blanked out first. The report never includes your input, your account, the pages you scraped or your results. Every run, failed or not, also sends one usage line as it ends, so we can see which options people use, what runs cost us and how well the data is filled: how many of each charged event it used (for example 120 full details) and the price your plan paid for them; the run's platform cost by item and its resources (time, memory, proxy traffic); whether it stopped at your maximum cost or maximum items; how it was started (Console, API, schedule, saved task, and for API runs the kind of tool, such as Make, Zapier or the Apify client, never the tool's full identity); our scraper's own retry and timing counts; and for each output field, how many results had it filled (counts only, never the values). That never includes your input, your account, your IP address, the pages you scraped or your results either. When Reddit blocks a run heavily (a CAPTCHA wall, or more than a fifth of its requests refused), the run also sends us a one-line alert with the build, the browser profile in use, request counts and the run's ID, and nothing else, so we can react before other runs are hit. If you need help with a run, open an issue on the Issues tab and attach the run, or email support@kekliktech.com with the run's link; the run's log ends with both.

## Run it

- In Apify Console: https://apify.com/keklik/reddit-scraper
- With the Apify API: POST https://api.apify.com/v2/acts/keklik~reddit-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN with the input JSON as the body. It returns the rows.
- From an AI agent: connect the Apify MCP server (https://mcp.apify.com), add the Actor `keklik/reddit-scraper` and call it with the input.
