# Reddit Scraper (`openclawai/reddit-scraper-no-login`) Actor

Reddit scraper, no login or session token: Reddit posts, comments, search results, subreddits and users. Inputs and field names from other Reddit scrapers work as they are, so saved inputs and automations switch without edits. $2 per 1,000 posts, $0.50 per 1,000 comments.

- **URL**: https://apify.com/openclawai/reddit-scraper-no-login.md
- **Developed by:** [Pika Choo](https://apify.com/openclawai) (community)
- **Categories:** Social media, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Reddit Scraper

![Reddit Scraper: Reddit posts, comments, subreddits and users with no login](https://api.apify.com/v2/key-value-stores/fd7lPA0SC5dzPD4ux/records/reddit-scraper-no-login-hero.jpg)

**Scrape Reddit without a login, a session token or an API key.** Give it subreddits, keywords, usernames or any reddit.com link and get clean JSON: posts with upvotes, upvote ratio, flair and media, comment threads with replies, communities and user profiles. Keyword search works without any Reddit account. $2 per 1,000 posts, $0.50 per 1,000 comments, no start fee.

Published by **Datapika**, under **openclawai** on Apify. Same engine as [Reddit API & Scraper](https://apify.com/openclawai/reddit-scraper).

### Why this Reddit scraper

- 🔓 **No login, no session token, no cookies.** Search, subreddits, posts, comments and user pages all work without a Reddit account, so there is nothing to copy from a browser and nothing that expires.
- 🔁 **Switch from another Reddit scraper without editing anything.** Inputs saved for other Reddit scrapers run as they are, and every row also carries the common output field names. See [Switching from another Reddit scraper](#switching-from-another-reddit-scraper).
- 📊 **Full data on every row.** Score, upvote ratio, comment count, flair, author, images, videos, galleries, NSFW flag, timestamps.
- 🧵 **Comments with replies.** Turn comments on and every post comes with its thread.
- 💰 **Pay for rows, not for runs.** No start fee; hint and error rows are free, so an empty run costs nothing.
- 🤖 **Ready for AI agents and automations.** Works through MCP (Claude, ChatGPT, Cursor), n8n, Make, Zapier and the Apify API.

### Switching from another Reddit scraper

Use this actor's ID (`openclawai/reddit-scraper-no-login`, or `openclawai~reddit-scraper-no-login` in an API URL) and keep your input. When the input uses the common field names below, the run follows their usual meaning:

| Field | What it does here |
|---|---|
| `startUrls`, `searches`, `sort`, `time`, `includeNSFW` | Same meaning. `startUrls` can be plain links or `{ "url": "…" }` objects. |
| `maxItems` | Total items the run stores (posts, comments, communities and users together). |
| `maxPostCount` | Posts per link or search. |
| `skipComments` | `false` (the usual default) adds each post's comments as their own rows, right after the post. |
| `maxComments` | Comments per post, replies included. |
| `searchPosts`, `searchCommunities`, `searchUsers` | Which result types each search returns. `searchMedia` returns posts. |
| `searchCommunityName` | Restrict searches to one subreddit. |
| `postDateLimit`, `commentDateLimit` | Keep posts or comments from this date on (`YYYY-MM-DD`). |
| `maxCommunitiesCount`, `maxUserCount` | Communities or users per search. |
| `skipUserPosts` | For user links, return the profile only. |
| `ignoreStartUrls` | Skip `startUrls`. |
| `sessionToken`, `proxy`, timeouts, retries, `debugMode` | Not needed. Ignored without an error. |

**Output stays readable by your next steps.** In this mode every row also carries the common field names: `id` (`t3_…` for posts, `t1_…` for comments), `parsedId`, `username`, `userId`, `communityName` (`r/name`), `parsedCommunityName`, `upVotes`, `upVoteRatio`, `numberOfComments`, `numberOfReplies`, `parentId`, `numberOfMembers`, `userIcon`, `over18`. The fields listed under [What you get](#what-you-get) are there too.

One difference: keyword search for **comments** needs a Reddit login, so `searchComments` returns a hint row instead. Search posts with comments on, or scrape a user's comment history from their profile link.

### Input

```json
{
    "startUrls": ["https://www.reddit.com/r/Python/top/?t=week"],
    "searches": ["claude code"],
    "searchType": "posts",
    "sort": "",
    "time": "all",
    "maxItems": 50,
    "includeComments": false,
    "maxCommentsPerPost": 50,
    "includeNSFW": true
}
```

| Field | Default | What it does |
|---|---|---|
| `startUrls` | — | Any reddit.com links: subreddit, post, user or search page. Sort and time in the URL win. |
| `subreddits` | `[]` | Subreddit names without `r/`. |
| `searches` | — | Keywords or phrases, each its own search. |
| `searchType` | `posts` | `posts`, `communities` or `users`. |
| `searchSubreddit` | — | Restrict keyword searches to one subreddit. |
| `users` | `[]` | Usernames: profile plus their posts and comments. |
| `sort` | default | Subreddits: `hot`, `new`, `top`, `rising`, `controversial`. Searches: `relevance`, `hot`, `top`, `new`, `comments`. |
| `time` | `all` | `hour`, `day`, `week`, `month`, `year`, `all`. |
| `maxItems` | `50` | Per input, up to 10,000. Reddit itself stops a single listing at about 1,000. |
| `includeComments` | `false` | Attach the comment thread to every post. |
| `maxCommentsPerPost` | `50` | Cap per post (1–500). Big threads return about 120–220 comments per post. |
| `postedAfter` / `postedBefore` | — | `YYYY-MM-DD`, UTC. |
| `answerQueries` | `[]` | Questions for Reddit AI Answers. |

### What you get

Every row has `dataType`, `sourceInput` (the input that produced it) and `scrapedAt`.

- **Post** (`dataType: "post"`): `id`, `url`, `title`, `body`, `bodyHtml`, `author`, `authorId`, `authorFlair`, `subreddit`, `flair`, `score`, `upvoteRatio`, `numComments`, `numCrossposts`, `isVideo`, `isSelf`, `isNsfw`, `isPinned`, `isLocked`, `domain`, `linkUrl`, `thumbnail`, `imageUrls[]`, `videoUrls[]`, `createdAt`, `comments[]`, `commentsScraped`.
- **Comment** (`dataType: "comment"`): `id`, `url`, `postId`, `parentId`, `author`, `body`, `score`, `createdAt`.
- **Community** (`dataType: "community"`): `id`, `name`, `url`, `title`, `description`, `subscribers`, `activeUsers`, `isNsfw`, `createdAt`.
- **User** (`dataType: "user"`): `id`, `username`, `url`, `description`, `postKarma`, `commentKarma`, `totalKarma`, `avatarUrl`, `createdAt`.
- **Answer** (`dataType: "answer"`): `query`, `markdown`, `follow_ups[]`, `source_posts[]`, `source_subreddits[]`.

### Pricing

| Event | Price | Charged for |
|---|---|---|
| Post | $0.002 | each post row |
| Comment in a post | $0.0005 | each comment attached to a post, or each comment row after its post in switching mode |
| Comment or user | $0.002 | each comment from a user's history and each user profile |
| Community | $0.002 | each community row |
| Reddit AI Answer | $0.01 | each answer |

No start fee, no per-row platform fee; hint and error rows are free. 1,000 posts cost $2; 1,000 posts with 10 comments each cost $2 + $5. Set a spending cap on the run to stay within a budget.

### Use cases

- **Find customers.** Search the phrases your buyers use ("alternative to …", "what tool do you use for …") and reply while the thread is new.
- **Brand and competitor monitoring.** Schedule daily searches for your brand and your competitors' names.
- **Research and AI datasets.** Pull posts and full comment threads from subreddits for sentiment analysis, RAG and model evaluation.

### Use with AI agents, n8n, Make and Zapier

Add the actor in the Apify MCP server and ask your agent for "the top posts in r/n8n this week with comments". In n8n, Make or Zapier, use the Apify app's "Run Actor" step with this actor's ID and read the dataset items afterwards.

### FAQ

**Do I need a Reddit account, cookies or a session token?** No. Every mode runs without them.

**Why did I get a hint row?** Hint rows explain an empty result (nothing matched the filters, or the input asked for something that needs a login, such as keyword search for comments). They are free.

**Can I export to CSV or Excel?** Yes, from the run's Storage tab or the API.

### Is it legal to scrape Reddit?

This actor reads public pages only, the same ones anyone sees without logging in. Personal data is protected by laws such as the GDPR; scrape only what you have a legitimate reason to use, and check Reddit's terms for your use case.

# Actor input Schema

## `startUrls` (type: `array`):

Any reddit.com links, one per line: a subreddit (https://www.reddit.com/r/Python/top/?t=week), a post (…/comments/abc123/…), a user (https://www.reddit.com/user/spez) or a search page (https://www.reddit.com/search/?q=laptop). Sort and time in the URL are respected.

## `subreddits` (type: `array`):

Subreddit names to crawl, without r/ — e.g. 'MachineLearning'. Uses the Sort and Time settings below.

## `searches` (type: `array`):

Keywords or phrases to search across Reddit (or inside one subreddit, see below). Each keyword is its own search.

## `searchType` (type: `string`):

Posts (default), communities (subreddits) or users matching the keywords.

## `searchSubreddit` (type: `string`):

Restrict keyword searches to a single subreddit, e.g. 'programming'. Leave empty to search all of Reddit.

## `users` (type: `array`):

Usernames to scrape (profile, their posts and their comments), without u/.

## `sort` (type: `string`):

Subreddits: hot, new, top, rising, controversial. Searches: relevance, hot, top, new, comments. Leave empty for the platform default (hot / relevance). With a search sorted by hot, top, new or comments, the keyword must be in the post title; relevance also matches the post text. Ignored when the URL already contains a sort.

## `time` (type: `string`):

Applies to Top / Controversial sorts and to searches.

## `maxItems` (type: `integer`):

Posts per subreddit / search / user, or comments / communities / users per search (1–10,000). Reddit itself stops any single listing at about 1,000.

## `includeComments` (type: `boolean`):

Fetch the comment tree for each post (nested replies flattened with depth and parent). Slower. Comments attached to posts are free until Nov 20, 2026, then $0.0005 each ($0.50 per 1,000) from Nov 21, 2026.

## `maxCommentsPerPost` (type: `integer`):

Cap on comments collected per post when Include comments is on (1–500). The Actor keeps reading Reddit's comment pages until it reaches your cap or the thread has no more comments to show (up to about 100 pages per post), so big threads fill caps up to 500. Reddit's comment count on a post can be higher than the comments its pages show, so some threads return fewer.

## `commentSort` (type: `string`):

How comments are ordered before the cap is applied.

## `postedAfter` (type: `string`):

Keep only posts created on or after this date (UTC). Combine with Sort = new for date-window crawls.

## `postedBefore` (type: `string`):

Keep only posts created on or before this date (UTC).

## `includeNSFW` (type: `boolean`):

Off drops posts and communities marked 18+.

## `onlyNew` (type: `boolean`):

For scheduled runs and monitoring: skip posts and comments this actor already returned to you in earlier runs with the same input, so each run returns and bills only new items. Remembers the last 20,000 items per input. Changing the limits keeps the memory; changing subreddits, searches or URLs starts a new one.

## `answerQueries` (type: `array`):

Questions to ask Reddit's built-in AI Answers engine. Each answer is one row with sources.

## `threads` (type: `integer`):

How many inputs run in parallel (1–20).

## `proxyConfiguration` (type: `object`):

Residential proxy (default) keeps runs reliable; Reddit throttles datacenter IPs.

## `action` (type: `string`):

Older saved inputs only. Prefer the fields above.

## `subreddit` (type: `string`):

Older saved inputs only.

## `query` (type: `string`):

Older saved inputs only.

## `postUrl` (type: `string`):

Older saved inputs only.

## `limit` (type: `integer`):

Older saved inputs only.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.reddit.com/r/Python/top/?t=week"
  ],
  "subreddits": [],
  "searches": [
    "claude code"
  ],
  "searchType": "posts",
  "users": [],
  "sort": "",
  "time": "all",
  "maxItems": 50,
  "includeComments": false,
  "maxCommentsPerPost": 50,
  "commentSort": "top",
  "includeNSFW": true,
  "onlyNew": false,
  "answerQueries": [],
  "threads": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.reddit.com/r/Python/top/?t=week"
    ],
    "searches": [
        "claude code"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("openclawai/reddit-scraper-no-login").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.reddit.com/r/Python/top/?t=week"],
    "searches": ["claude code"],
}

# Run the Actor and wait for it to finish
run = client.actor("openclawai/reddit-scraper-no-login").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.reddit.com/r/Python/top/?t=week"
  ],
  "searches": [
    "claude code"
  ]
}' |
apify call openclawai/reddit-scraper-no-login --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,openclawai/reddit-scraper-no-login"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/iOLiyxhGBzleun4Rv/builds/73wvqTxLNItV121b7/openapi.json
