Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

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
Runs on
Fetch, Extract, Batch, Crawl
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"
    }
  ]
}

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.

FieldWhat it holdsExample
community.name The subreddit name without the prefix webscraping
community.prefixed_name The name as Reddit displays it r/webscraping
community.id Reddit's internal ID for the subreddit t5_318ly
community.description The sidebar description written by the moderators The first rule of web scraping is…
community.created_date When the subreddit was created Apr 6, 2014
community.weekly_active_users Visitors in the last week, as Reddit counts them 22206
community.weekly_contributions Posts and comments in the last week 472
community.visibility Whether anyone can view and post public
community_highlights[] Pinned posts with ID, title, permalink, votes and comment count { "vote_count": 9, … }
community_rules[] Each rule's number, title and description { "title": "Open Discussions" }
posts[].title Post titles in the subreddit feed Scraping Job halted by Captcha
posts[].author_username Who posted it WizziWizzle
posts[].flair_text The post flair, useful for filtering by topic Bot detection 🤖
posts[].link_url The outbound link of a link post https://github.com/…
post.body_text 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

  1. Create a free Zenrows account and copy your API key from the dashboard.
  2. 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.
  3. 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.
  4. Read parsed from the response. To keep only the community stats, or only the rules, list those paths and the response returns just them.
  5. 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"])

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.

ParameterTypeDefaultDescription
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_fields string all fields Comma-separated paths to keep, such as community.name,community_rules
proxy_country 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_for string none A CSS selector to wait for before the page is read, for long comment threads
session_id integer none Reuse the same session across several requests, up to 10 minutes
Batch input
{
  "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" }
  ]
}

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"

What teams do with Reddit data

Use caseData they pullWho 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=week gives 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 a t3_ ID. Use them as external_id in Batch and dedupe on them across daily runs.
  • Store the snapshot time. Vote counts, comment counts and relative ages such as 14h ago change by the hour, so save the time of each request next to the record.

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. The parsed key of the response holds the subreddit or post as a dictionary. The zenrows package 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 parsed and the original page in html. You can also ask for the page as Markdown or plain text, which keeps a thread readable for LLM and RAG pipelines.

Turn the live web into usable data.

Start building free 5,000 credits/month, always