Reddit Scraper — Posts, Search & Deep Comments avatar

Reddit Scraper — Posts, Search & Deep Comments

Pricing

from $0.60 / 1,000 reddit post / profile / subreddit records

Go to Apify Store
Reddit Scraper — Posts, Search & Deep Comments

Reddit Scraper — Posts, Search & Deep Comments

Track brand mentions, SaaS customer pain points, and niche community discussions on Reddit — posts, keyword search, user profiles, and full nested comment trees exported to clean JSON, CSV, or Excel ($0 on deleted or unavailable posts).

Pricing

from $0.60 / 1,000 reddit post / profile / subreddit records

Rating

0.0

(0)

Developer

Alias Data Studio

Alias Data Studio

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

26 minutes ago

Last modified

Features

Limited permissions

Share

Reddit Scraper

Fast, reliable Reddit data extraction for posts, global and subreddit search, deep nested comment threads, user profiles, and subreddit statistics. Export clean, analysis-ready datasets directly to JSON, CSV, Excel, or downstream AI pipelines.

What You Can Extract

  • Subreddit Posts (subreddit_posts): Collect hot, new, top, and rising posts across one or many subreddits (e.g. r/MachineLearning, r/LocalLLaMA, r/nvidia) with full pagination and time-range filters (hour, day, week, month, year, all).
  • Global & Subreddit Search (search): Run keyword searches (e.g. "AI agents") across all of Reddit or scoped to specific subreddits, sorted by relevance, hot, top, new, or comments.
  • Deep Comment Threads (comments): Extract nested comment trees with commentId, parentId, depth, author, score, isSubmitter (OP badge), clean plain-text body, createdAtIso, and permalink. Also supports optional per-post comment expansion (maxCommentsPerPost) while collecting posts.
  • User Profiles & Submissions (user): Gather user karma breakdowns, account creation dates, and submitted post history (e.g. karpathy).
  • Subreddit Info & Statistics (subreddit_info): Pull subscriber counts, descriptions, community type, language, and creation timestamps.

Flexible URL Support

Paste raw identifiers (r/MachineLearning, karpathy) or full Reddit URLs in any format—standard post links, subreddit feeds, user pages, or redd.it short links—and the scraper normalizes and routes them automatically.

Deleted posts, invalid URLs, and private or nonexistent communities are skipped cleanly and recorded in RUN_SUMMARY at no charge.

Input Examples

1. Collect Top Weekly Posts from AI & Tech Subreddits

{
"mode": "subreddit_posts",
"subreddits": ["r/MachineLearning", "r/LocalLLaMA", "r/nvidia"],
"sort": "top",
"timeRange": "week",
"maxPosts": 100
}

2. Search Reddit for "AI agents"

{
"mode": "search",
"queries": ["AI agents"],
"searchSort": "relevance",
"timeRange": "month",
"maxPosts": 75
}

3. Extract Deep Comment Threads from a Discussion

{
"mode": "comments",
"postUrls": [
"https://www.reddit.com/r/MachineLearning/comments/1xxqa3i/"
],
"commentSort": "top",
"maxComments": 200
}

4. Collect User Profile & Submitted Posts

{
"mode": "user",
"usernames": ["karpathy"],
"sort": "top",
"timeRange": "all",
"maxPosts": 50,
"includeUserProfile": true
}

Output Schema

Every dataset record includes a recordType discriminator (post, comment, subreddit_info, or user_profile) so flat CSV/Excel exports and JSON streams stay clean and consistent.

Post Record (recordType: "post")

{
"recordType": "post",
"postId": "1xxqa3i",
"fullname": "t3_1xxqa3i",
"subreddit": "MachineLearning",
"subredditPrefixed": "r/MachineLearning",
"title": "AISTATS 2027 paper discussion [D]",
"author": "LongjumpingAd4741",
"selftext": "Paper discussion thread for AISTATS 2027 submissions.",
"score": 47,
"upvoteRatio": 0.96,
"commentCount": 208,
"createdAtIso": "2026-11-17T13:09:31.000Z",
"permalink": "https://www.reddit.com/r/MachineLearning/comments/1xxqa3i/aistats_2027_paper_discussion_d/",
"url": "https://www.reddit.com/r/MachineLearning/comments/1xxqa3i/aistats_2027_paper_discussion_d/",
"domain": "self.MachineLearning",
"flair": "Discussion",
"isSelf": true,
"isVideo": false,
"isNsfw": false,
"isStickied": true,
"thumbnailUrl": null,
"sourceMode": "subreddit_posts"
}

Comment Record (recordType: "comment")

{
"recordType": "comment",
"commentId": "t1_19sruzf86uhms",
"shortId": "19sruzf86uhms",
"postId": "t3_1xxqa3i",
"parentId": "t1_19srtspl9hpz5",
"subreddit": "MachineLearning",
"author": "YamJealous4914",
"score": 7,
"depth": 1,
"body": "Did they forget the deadline while finishing conference reviews?",
"createdAtIso": "2026-11-17T13:11:54.969Z",
"permalink": "https://www.reddit.com/r/MachineLearning/comments/1xxqa3i/comment/19sruzf86uhms/",
"isSubmitter": false
}

Subreddit Info Record (recordType: "subreddit_info")

{
"recordType": "subreddit_info",
"subredditId": "t5_2r3gv",
"name": "MachineLearning",
"prefixedName": "r/MachineLearning",
"title": "Machine Learning",
"publicDescription": "Machine learning research, papers, and engineering discussions.",
"description": "...",
"subscribers": 3084332,
"activeUsers": 1420,
"createdAtIso": "2009-07-29T13:14:44.000Z",
"over18": false,
"subredditType": "public",
"language": "en",
"url": "https://www.reddit.com/r/MachineLearning/",
"iconUrl": null
}

User Profile Record (recordType: "user_profile")

{
"recordType": "user_profile",
"userId": "t2_6qjyb",
"username": "karpathy",
"url": "https://www.reddit.com/user/karpathy/",
"linkKarma": 2756,
"commentKarma": 55,
"totalKarma": 2811,
"createdAtIso": "2012-01-23T22:53:22.000Z",
"isGold": false,
"verified": false,
"description": "",
"iconUrl": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_2.png"
}

Pricing

Simple pay-per-event pricing based solely on delivered records. Skipped, invalid, private, or deleted targets are never billed, and runs honor your maximum total charge limit automatically.

EventIncluded RecordsFreeBronzeSilverGoldPlatinum / Diamond
reddit-postSubreddit posts, search results, user posts, subreddit & user info$1.00 / 1k$0.85 / 1k$0.70 / 1k$0.60 / 1k$0.50 / 1k
reddit-commentIndividual comments (comments mode or post expansion)$0.75 / 1k$0.65 / 1k$0.55 / 1k$0.45 / 1k$0.35 / 1k

Run Summary

Every run writes a structured RUN_SUMMARY record to the default key-value store containing delivery totals, request duration, and any skipped targets with their reasons.

Quick Integration (API, MCP & n8n)

Python (apify-client)

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("alias_md5/reddit-scraper").call(run_input={
"mode": "search",
"queries": ["AI agents"],
"searchSort": "relevance",
"timeRange": "week",
"maxPosts": 50,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Collected {len(items)} Reddit records")

Node.js (apify-client)

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("alias_md5/reddit-scraper").call({
mode: "subreddit_posts",
subreddits: ["r/MachineLearning", "r/LocalLLaMA"],
sort: "top",
timeRange: "week",
maxPosts: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 3));

AI Agents (Apify MCP Server)

Connect this Actor directly to Claude Desktop, Cursor, or custom AI agents via Apify MCP Server:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?actors=alias_md5/reddit-scraper",
"headers": {
"Authorization": "Bearer <YOUR_APIFY_TOKEN>"
}
}
}
}

n8n Automation

Add the official Apify node (@apify/n8n-nodes-apify) → Run Actor with alias_md5/reddit-scraper, pass your subreddit or search input JSON, and chain Get Dataset Items into Slack, Notion, Google Sheets, or an LLM summary step.