Reddit scraper
The Zenrows Reddit scraper turns public subreddit and post URLs into structured JSON: community name, description, weekly active users, weekly contributions, rules, highlighted posts with vote and comment counts, post titles, authors, flair and comments. Fetch in Adaptive Stealth Mode opens the page, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.
- Site
reddit.com- Returns
- Subreddits, posts, comments, votes and community stats
- Updated
{
"community": {
"id": "t5_318ly",
"name": "webscraping",
"prefixed_name": "r/webscraping",
"canonical_url": "https://www.reddit.com/r/webscraping/",
"created_date": "Apr 6, 2014",
"description": "The first rule of web scraping is... do not talk about web scraping. But if you must, you've come to the right place…",
"visibility": "public",
"weekly_active_users": 22206,
"weekly_contributions": 472
},
"community_highlights": [
{
"post_id": "t3_1wuogjf",
"title": "Monthly Self-Promotion - October 2026",
"permalink": "/r/webscraping/comments/1wuogjf/monthly_selfpromotion_october_2026/",
"vote_count": 9,
"comment_count": 92
}
],
"community_rules": [
{
"number": 1,
"title": "Open Discussions",
"description": "Ensure discussions remain public to benefit the entire community"
}
]
}{
"url": "https://www.reddit.com/r/webscraping/",
"mode": "auto",
"extract": "auto"
}Request and output of a live call to the r/webscraping subreddit on Oct 20, 2026, trimmed for length. A field is returned when the page shows it.
What data can you scrape from Reddit?
Subreddit pages and post pages return different groups of fields.
These are the ones teams ask for most, with the path where each one lives in the JSON.
| Field | What it holds | Example |
|---|---|---|
community. |
The subreddit name without the prefix | webscraping |
community. |
The name as Reddit displays it | r/webscraping |
community. |
Reddit's internal ID for the subreddit | t5_318ly |
community. |
The sidebar description written by the moderators | The first rule of web scraping is… |
community. |
When the subreddit was created | Apr 6, 2014 |
community. |
Visitors in the last week, as Reddit counts them | 22206 |
community. |
Posts and comments in the last week | 472 |
community. |
Whether anyone can view and post | public |
community_ |
Pinned posts with ID, title, permalink, votes and comment count | { "vote_count": 9, … } |
community_ |
Each rule's number, title and description | { "title": "Open Discussions" } |
posts[]. |
Post titles in the subreddit feed | Scraping Job halted by Captcha |
posts[]. |
Who posted it | WizziWizzle |
posts[]. |
The post flair, useful for filtering by topic | Bot detection 🤖 |
posts[]. |
The outbound link of a link post | https://github.com/… |
post. |
The full text of a self post | I am scraping a site for listings… |
comments[] |
Each comment's author, age, permalink and text | { "author_username": "…", … } |
How to scrape Reddit with Zenrows
- Create a free Zenrows account and copy your API key from the dashboard.
- Pick the Reddit URL. A subreddit (
/r/name/), one of its sorted feeds (/r/name/new/,/r/name/top/), a flair filter, or a single post (/r/name/comments/ID/slug/) all go in the same way. - Send it with the default configuration: Adaptive Stealth Mode to open the page and Extract to return the fields. Add a country when you want Reddit's interface labels in one language every time.
- Read
parsedfrom the response. To keep only the community stats, or only the rules, list those paths and the response returns just them. - Run your subreddit or post list in Batch once one URL comes back the way you want.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.reddit.com/r/webscraping/",
"mode": "auto", # Adaptive Stealth Mode
"extract": "auto", # structured JSON
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()
data = response.json()["parsed"]
community = data["community"]
print(community["prefixed_name"], community["weekly_active_users"])
for rule in data.get("community_rules", []):
print(rule["number"], rule["title"])// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.reddit.com/r/webscraping/",
mode: "auto",
extract: "auto",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
console.log(parsed.community.prefixed_name, parsed.community.weekly_contributions);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fwebscraping%2F&mode=auto&extract=auto"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fwebscraping%2F&mode=auto&extract=auto&extract_fields=community.name%2Ccommunity.weekly_active_users%2Ccommunity.weekly_contributions%2Ccommunity_highlights"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
response = client.get(
"https://www.reddit.com/r/webscraping/comments/1x9vfwh/scraping_job_halted_by_captcha/",
params={"mode": "auto", "extract": "auto", "proxy_country": "us"},
)
print(response.json()["parsed"])Input
The scraper takes one Reddit URL per request, plus the options below.
The same parameters go into every task of a Batch job, so the input for five hundred subreddits is a list of URLs with these settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | A public Reddit page: subreddit, sorted feed (/new/, /top/, /hot/), flair filter or post with its comments |
mode |
string | auto |
Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them |
extract |
string | auto |
Returns the page's fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as community.name,community_rules |
proxy_ |
string | any | Two-letter country code. Reddit localizes its menus and labels to the visitor's location, so a fixed country keeps them in one language |
wait_ |
string | none | A CSS selector to wait for before the page is read, for long comment threads |
session_ |
integer | none | Reuse the same session across several requests, up to 10 minutes |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto",
"proxy_country": "us"
},
"tasks": [
{ "url": "https://www.reddit.com/r/webscraping/", "external_id": "r-webscraping" },
{ "url": "https://www.reddit.com/r/Amsterdam/", "external_id": "r-amsterdam" },
{ "url": "https://www.reddit.com/r/webscraping/comments/1x9vfwh/scraping_job_halted_by_captcha/", "external_id": "post-1x9vfwh" }
]
}
Output
Every response is JSON with two keys: html, the page as Reddit served it, and parsed, the structured record. The shape of parsed follows the page type. The subreddit block is a trimmed Extract response; the feed and the post thread are built from live requests to the same subreddit on Oct 20, 2026, with the values exactly as the pages showed them.
Want rows instead of nested JSON? Flatten comments with pd.json_normalize(...) in pandas and write CSV. Feeding threads to an LLM? Ask for the page as Markdown and you get the post and its replies as clean text.
{
"community": {
"id": "t5_318ly",
"name": "webscraping",
"display_name": "webscraping",
"prefixed_name": "r/webscraping",
"canonical_url": "https://www.reddit.com/r/webscraping/",
"icon_url": "https://styles.redditmedia.com/t5_318ly/styles/communityIcon_sq64lrv9edwd1.png?width=128&frame=1&auto=webp…",
"created_date": "Apr 6, 2014",
"visibility": "public",
"weekly_active_users": 22206,
"weekly_contributions": 472
},
"community_highlights": [
{
"post_id": "t3_1wuogjf",
"title": "Monthly Self-Promotion - October 2026",
"permalink": "/r/webscraping/comments/1wuogjf/monthly_selfpromotion_october_2026/",
"vote_count": 9,
"comment_count": 92
},
{
"post_id": "t3_1x4vzr5",
"title": "Weekly Webscrapers - Hiring, FAQs, etc",
"permalink": "/r/webscraping/comments/1x4vzr5/weekly_webscrapers_hiring_faqs_etc/",
"vote_count": 3,
"comment_count": 3
}
],
"community_rules": [
{ "number": 1, "title": "Open Discussions", "description": "Ensure discussions remain public to benefit the entire community" },
{ "number": 2, "title": "Self-Promotions", "description": "Refer to the wiki for detailed guidelines on promoting services or products" },
{ "number": 3, "title": "Commercial Products", "description": "Refrain from referring to commercial products or services, including proxy vendors and products with free tiers" }
]
}{
"posts": [
{
"title": "Open-source Reddit scraper for posts and comments",
"author_username": "Coding-Doctor-Omar",
"url": "https://www.reddit.com/r/webscraping/comments/1x369e0/opensource_reddit_scraper_for_posts_and_comments/",
"link_url": "https://github.com/Coding-Doctor-Omar/reddrix"
},
{
"title": "Scraping Job halted by Captcha",
"author_username": "WizziWizzle",
"flair_text": "Bot detection 🤖",
"url": "https://www.reddit.com/r/webscraping/comments/1x9vfwh/scraping_job_halted_by_captcha/",
"body_text": "I am scraping a site for listings. It has around 200 pages. Somewhere along page 10, i get hit with a basic custom made captcha…"
}
]
}{
"post": {
"title": "Scraping Job halted by Captcha",
"author_username": "WizziWizzle",
"flair_text": "Bot detection 🤖",
"created_at": "14h ago",
"body_text": "I am scraping a site for listings. It has around 200 pages…",
"url": "https://www.reddit.com/r/webscraping/comments/1x9vfwh/scraping_job_halted_by_captcha/"
},
"subreddit": {
"display_name": "webscraping",
"url": "https://www.reddit.com/r/webscraping/"
},
"comments": [
{
"author_username": "FinalDescription6553",
"created_at": "11h ago",
"permalink": "https://www.reddit.com/r/webscraping/comments/1x9vfwh/comment/phpjwts/",
"body_text": "Use random human-like waits when solving between actions and an ocr library for the actual text recognition…"
},
{
"author_username": "NefariousnessOpening",
"created_at": "8h ago",
"permalink": "https://www.reddit.com/r/webscraping/comments/1x9vfwh/comment/phqzcgl/",
"body_text": "Cloud VPS IP address triggers bot detection"
}
]
}Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
MCP config (Cursor, Claude Desktop, Windsurf)
{
"mcpServers": {
"zenrows": {
"command": "npx",
"args": ["-y", "@zenrows/mcp"],
"env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
}
}
}
Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.reddit.com/r/webscraping/"
Then ask your agent
Use Zenrows to read https://www.reddit.com/r/webscraping/new/ and the
comments of its five newest posts. Group the questions people ask by
topic (captchas, proxies, browsers, parsing) and list the tools that
commenters recommend most, with a link to each thread.
Scrape Reddit from your coding agent
Claude Code, Cursor, Codex and any MCP client can read subreddits and threads from a prompt.
The agent sends the same Fetch and Extract request shown above, so it works with the same JSON. Connect the Zenrows MCP server once, or give the agent the CLI and let it run commands in the terminal.
Scrape Reddit at scale with Batch and Crawl
Batch runs a list of Reddit URLs as one job, in parallel, with your own ID on each result. Use it to snapshot a fixed set of subreddits every day, or to pull the comments of every post you collected yesterday.
Crawl finds the thread URLs for you. Start it on a subreddit feed, keep only links that contain the subreddit's /comments/ path, and it returns every post page it reaches with the comments on it. Raise the depth to follow older pages of the feed.
Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "regular",
"status": "closed",
"zenrows_params": { "mode": "auto", "extract": "auto", "proxy_country": "us" },
"tasks": [
{ "url": "https://www.reddit.com/r/webscraping/", "external_id": "r-webscraping" },
{ "url": "https://www.reddit.com/r/Amsterdam/", "external_id": "r-amsterdam" }
]
}'
# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY"# subreddits.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create subreddits.jsonl --proxy-country us --wait
zenrows batch results <job-id> --out reddit.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.reddit.com/r/webscraping/new/",
"depth": 2,
"max_pages": 200,
"include_patterns": ["/r/webscraping/comments/"]
}'# Runs every day on Zenrows' side; each run keeps its own results
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{
"url": "https://www.reddit.com/r/webscraping/",
"external_id": "reddit"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with Reddit data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Brand and product monitoring | Posts and comments that name a brand, with subreddit, flair and age | Marketing, PR and community teams |
| Voice of customer research | Full comment threads under product questions and complaints | Product managers and UX researchers |
| Community sizing | Weekly active users and weekly contributions per subreddit over time | Growth teams and community managers |
| Sentiment analysis | Post and comment text, grouped by subreddit and date | Data science and market research teams |
| Lead and demand signals | Threads asking for a tool or service in your category | Sales and founders in B2B |
| LLM training and RAG | Threads as Markdown, with authors and permalinks for attribution | AI and data teams |
Tips for scraping Reddit
- Choose the feed that matches the job.
/new/gives a chronological stream for monitoring,/top/?t=weekgives the posts that mattered, and the default feed mixes both. - Filter by flair from the URL. Reddit's flair filter is a query string (
?f=flair_name:"Bot detection 🤖"), so you can request one topic of a subreddit without parsing the whole feed. - Strip the slug if you only have the ID.
/r/name/comments/1x9vfwh/opens the same post as the URL with the title slug, so the post ID alone is enough to rebuild a link. - Fix the country for stable labels. Reddit translates its own menus and relative dates to the visitor's location. Set one country so every run reads the same words.
- Keep the IDs as your keys. Subreddits carry a
t5_ID and posts at3_ID. Use them asexternal_idin Batch and dedupe on them across daily runs. - Store the snapshot time. Vote counts, comment counts and relative ages such as
14h agochange by the hour, so save the time of each request next to the record.
More Reddit and social media scrapers
-
reddit.com
Reddit post scraper
Post titles, body text, scores, flairs and comment counts from any public subreddit.
-
reddit.com
Reddit comment scraper
Threaded comment text, authors, scores and timestamps from any public Reddit post.
-
reddit.com
Reddit search scraper
Matching posts and subreddits for any Reddit search query with scores and dates.
-
linkedin.com
LinkedIn scraper
Public company pages, job postings and profile summaries with industry, headcount and location.
-
tiktok.com
TikTok scraper
Public videos with captions, creators, views, likes, shares and hashtags.
-
x.com
Twitter (X) scraper
Public posts, profiles and engagement counts like likes, reposts and replies from X.
-
snapchat.com
Snapchat scraper
Public creator profiles and Spotlight videos with captions, views and subscriber counts.
-
pinterest.com
Pinterest scraper
Public pins, boards and profiles with images, descriptions, save counts and outbound links.
-
substack.com
Substack scraper
Newsletter posts with titles, publications, authors, likes and comment counts.
Frequently asked questions
-
Collecting public Reddit content, such as subreddit stats, post titles and public comments that anyone can read without logging in, is common for research and monitoring. Usernames and comment text can be personal data, which laws such as the GDPR and the CCPA protect, so collect only what you have a legitimate reason to use and avoid profiling individuals. Read Reddit's user agreement for your use case and ask a lawyer if you are unsure.
-
Yes. Reddit's Data API needs an OAuth app and is rate limited per client, and commercial use requires a separate agreement with Reddit. It is the right choice when you build an app that acts on behalf of a Reddit user. Teams that need public pages as they appear on the site, across many subreddits, use a scraper instead.
-
Public subreddit pages, their sorted feeds (new, hot, top, rising), flair-filtered feeds and individual post pages with their comment threads. Send the URL as it appears in your browser. Private and quarantined communities and anything behind a Reddit login stay out of scope.
-
Yes. Request the post URL and you get the post with its comments: author, age, permalink and text for each one. To collect comments across a subreddit, crawl the feed for
/comments/links or run a list of post URLs in Batch. -
Send a GET request to
https://api.zenrows.com/v1/with your API key, the Reddit URL, Adaptive Stealth Mode and Extract, as in the Python example above. Theparsedkey of the response holds the subreddit or post as a dictionary. Thezenrowspackage on PyPI wraps the same request. -
Send one URL per request, or a list as a Batch job that runs the URLs in parallel and keeps your own ID on each result. One Batch job accepts more than 10,000 URLs, inline or as a CSV file. Crawl collects the post URLs of a subreddit for you before that.
-
Yes. Subreddit pages return weekly active users and weekly contributions, the two activity figures Reddit shows today, plus the creation date and visibility. Request the same subreddits on a schedule to track how a community grows.
-
Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the threads you want in plain language and the agent calls Fetch and Extract for you.
-
Yes. Create a scheduled Batch job with your Reddit URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.
-
Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. A common setup posts new threads that mention your brand to Slack from n8n or Zapier. See the integrations page for the full list.
-
JSON by default, with the structured record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which keeps a thread readable for LLM and RAG pipelines.