   [Home](https://scrapfly.io/)/[Scrapers](https://scrapfly.io/scrapers)/**Reddit** 

Subreddits · posts · comments · user activity

# // Reddit Scraper API

Get public Reddit subreddit feeds, posts, comment threads and user activity as clean JSON. Send a public Reddit URL to Scrapfly and read the data each page carries.

- **Clone it and run it.** An open-source Reddit scraper for subreddits, posts with their comments, and the public posts and comments on user profiles, tested against live Reddit every night.
- **Post stats in one request.** Read a post's subreddit, posting time, upvotes, upvote ratio, comment count and archive status straight from the page.
 
 [Get free API key](https://scrapfly.io/register) [View GitHub scraper](https://github.com/scrapfly/scrapfly-scrapers/tree/main/reddit-scraper) [Read the API docs](https://scrapfly.io/docs/scrape-api/getting-started) 

1,000 free credits. No credit card required.

 [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/reviews/)  

 4.8/5 from 248 reviews 

 

 

 

 

 Reddit pages · illustration

  

 

 Post JSON**Output**

```
{
  <span class="c-str">"subreddit"</span>: <span class="c-str">"r/wallstreetbets"</span>,
  <span class="c-str">"id"</span>: <span class="c-str">"t3_1c4vwlp"</span>,
  <span class="c-str">"posted"</span>: <span class="c-str">"2024-04-15T20:00:20Z"</span>,
  <span class="c-str">"upvotes"</span>: <span class="c-num">331</span>,
  <span class="c-str">"upvote_ratio"</span>: <span class="c-num">0.88</span>,
  <span class="c-str">"comments"</span>: <span class="c-num">8292</span>,
  <span class="c-str">"archived"</span>: true
}
```

Printed by the Python request below[See the request ↓](#implementation)

   

  

What you can scrape from Reddit

Four kinds of public Reddit data you can scrape with Scrapfly, each from a page anyone can open.

 

## // Scrape subreddit feeds

A subreddit page gives the community's description, weekly active users and bookmarked links, plus a card for each post: title, link, flair, posting time, upvotes, comment count, post type and the attached media or link. Reddit loads further posts from a feed endpoint with an `after` cursor, so you can page past the first screen.

- title
- flair
- score
- comment-count
- created-timestamp
- post-type

  

## // Scrape Reddit posts

Every public post page carries the post's data on its `<shreddit-post>` tag: title, subreddit, posting time, upvotes, upvote ratio, comment count, post type, the linked URL and whether the thread is archived.

- post-title
- subreddit-name
- score
- upvote-ratio
- comment-count
- archived

  

## // Scrape Reddit comments

Collect a post's comment threads with each comment's text, upvotes, posting time and permalink, and rebuild the reply tree from the parent IDs. Load comments in top, new or old order to reach more of a long thread.

- commentBody
- upvotes
- publishingDate
- link
- replies
- sort

  

## // Scrape public user activity

A public profile lists the posts and comments an account has made. Posts come with their title, subreddit, score, comment count and posting time; comments with their text, the links inside them and the post they reply to.

- postTitle
- postSubreddit
- postScore
- commentBody
- replyTo
- publishingDate

  

 

  

Reliability

## // Read the data Reddit puts on each post

Reddit renders every post as a `<shreddit-post>` tag whose attributes hold the numbers you want, so your parser reads attributes instead of chasing layout classes. Turn on the Unblocker and Scrapfly picks the request settings that load reddit.com, then check for the post tag before you parse.

 `<shreddit-post>`

Score, comment count, upvote ratio and timestamps as plain attributes, the same on subreddit feeds, post pages and profiles.

 

 `unblocker=true`

Let Scrapfly choose the proxy and browser settings for each Reddit request. Set `country` to pick where the IP is located.

 

 `after=`

Page through a subreddit feed with the cursor each page returns, starting where the previous page ended.

 

 

 

  

Choose your tools

## // Scrapfly products for Reddit scraping

Start with the Web Scraping API and the Unblocker. Add the Data Extraction API, screenshots or a browser session as your workflow needs them. One API key covers every product.

 

### Web Scraping API for Reddit pages

Send a public subreddit, post or profile URL with the Unblocker on and get the page back as HTML, from an IP in the country you choose.

Parse the post tags and comment threads from it, or point the open-source scraper at the same URLs.

```
GET /scrape?url=https://www.reddit.com/r/webscraping/&unblocker=true&country=US
```

 [Explore Web Scraping API →](https://scrapfly.io/products/web-scraping-api)  

### Data Extraction API for Reddit posts

Set `extraction_model` to `social_media_post` to turn a public post page into structured JSON, with no parser to write.

Get the post's text and its author's name and profile link.

```
GET /scrape?url=https://www.reddit.com/r/webscraping/comments/1xwqq7l/forum_offline_version_download/&unblocker=true&country=US&extraction_model=social_media_post
```

 [Explore Data Extraction API →](https://scrapfly.io/products/extraction-api)  

### Screenshot API for Reddit pages

Capture a public subreddit page as an image.

Keep a dated visual record of a community next to your JSON.

```
GET /screenshot?url=https://www.reddit.com/r/webscraping/&country=US&resolution=1920x1080&rendering_wait=3000
```

 [Explore Screenshot API →](https://scrapfly.io/products/screenshot-api)  

### Cloud Browser API for Reddit sessions

Ask the Cloud Browser API for a session ready for a Reddit URL, then connect Playwright or Puppeteer to it.

Open a public post or subreddit and read the rendered page, comments and post tags included.

```
POST https://browser.scrapfly.io/unblock?key=KEY {"url": "https://www.reddit.com/r/wallstreetbets/comments/1c4vwlp/what_are_your_moves_tomorrow_april_16_2024/", "country": "us"}
```

 [Explore Cloud Browser API →](https://scrapfly.io/products/cloud-browser-api)  

### Open-source Reddit scraper on GitHub

Clone the maintained Python scraper for subreddit feeds, posts with their comments, and the public posts and comments on user profiles.

It runs on the Web Scraping API, returns JSON for each page type, and is tested against live Reddit every night.

- scrape\_subreddit
- scrape\_post
- scrape\_user\_posts
- scrape\_user\_comments

 [View the scraper on GitHub →](https://github.com/scrapfly/scrapfly-scrapers/tree/main/reddit-scraper)  

 

  

One request

## // Get a post's stats from Reddit

The JSON at the top is sample output from November 24, 2026, for an archived r/wallstreetbets daily discussion thread: one request with the Unblocker on through a US IP, every value read from the post's `<shreddit-post>` tag.

Install `scrapfly-sdk` and `parsel`, then replace the key below. Change the post URL to read any public post, and use the full permalink with the title slug.

**Prefer the full scraper?** The open-source [Reddit scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/reddit-scraper) collects subreddit feeds, posts with their comment threads, and the public posts and comments on user profiles, in Python 3.12. It runs against live Reddit every night. Clone it, set `SCRAPFLY_KEY`, and point it at your own subreddits and posts.

 

 Python · scrapfly-sdkscrape + parse

```
<span class="c-key">import</span> json
<span class="c-key">from</span> scrapfly <span class="c-key">import</span> ScrapeConfig, ScrapflyClient

POST_URL = (<span class="c-str">"https://www.reddit.com/r/wallstreetbets"</span>
            <span class="c-str">"/comments/1c4vwlp"</span>
            <span class="c-str">"/what_are_your_moves_tomorrow_april_16_2024/"</span>)
client = ScrapflyClient(key=<span class="c-str">"YOUR_SCRAPFLY_KEY"</span>)
result = client.scrape(ScrapeConfig(
    POST_URL, unblocker=<span class="c-key">True</span>, country=<span class="c-str">"US"</span>,
))

<span class="c-com"># The post's data sits on its <shreddit-post> tag</span>
post = result.selector.css(<span class="c-str">"shreddit-post"</span>)
<span class="c-key">if</span> <span class="c-key">not</span> post:
    <span class="c-key">raise</span> RuntimeError(<span class="c-str">"No post found in the response"</span>)
attr = post[<span class="c-num">0</span>].attrib

output = {
    <span class="c-str">"subreddit"</span>: attr[<span class="c-str">"subreddit-prefixed-name"</span>],
    <span class="c-str">"id"</span>: attr[<span class="c-str">"id"</span>],
    <span class="c-str">"posted"</span>: attr[<span class="c-str">"created-timestamp"</span>][:<span class="c-num">19</span>] + <span class="c-str">"Z"</span>,
    <span class="c-str">"upvotes"</span>: int(attr[<span class="c-str">"score"</span>]),
    <span class="c-str">"upvote_ratio"</span>: round(float(attr[<span class="c-str">"upvote-ratio"</span>]), <span class="c-num">2</span>),
    <span class="c-str">"comments"</span>: int(attr[<span class="c-str">"comment-count"</span>]),
    <span class="c-str">"archived"</span>: <span class="c-str">"archived"</span> <span class="c-key">in</span> attr,
}
print(json.dumps(output, indent=<span class="c-num">2</span>, ensure_ascii=<span class="c-key">False</span>))
```

 

 

 

  

What the data is used for

## // Common Reddit scraping use cases

### Brand monitoring

Find the threads where your product or company comes up, and follow how the conversation develops.

 

### Product feedback

Collect the problems, requests and comparisons people post about a product category.

 

### Sentiment analysis

Score posts and comments on a topic over time, weighted by upvotes and replies.

 

### Trend tracking

Watch which posts rise in the subreddits you follow and how fast their comment counts grow.

 

### Competitor research

See which alternatives people recommend and why, in the communities where your buyers ask.

 

### Community research

Measure what a community talks about, how active it is and which posts it engages with.

 

 

 

  

Common questions

## // Reddit scraping FAQ

 Is scraping Reddit legal?

There is no universal answer. Legality depends on your jurisdiction, the data, the access method and how you use the result. Keep the workflow to public pages, review Reddit's User Agreement and its rules for data use, and get legal advice before commercial use. Posts and comments can contain personal information, so privacy laws such as the GDPR and CCPA apply.

 Which Reddit pages can I scrape with Scrapfly?

Public pages that load without signing in: subreddit feeds, post pages with their comments, and the public posts and comments on user profiles. Content that requires a Reddit account, such as private communities, messages or chats, is out of scope.

 How do I get more than the first posts in a subreddit?

A subreddit page returns a cursor for the next batch. Request Reddit's feed endpoint with that cursor in the `after` parameter, then repeat with the cursor each new batch returns, as the open-source scraper does.

 Can I scrape Reddit comments?

Yes. Each comment comes with its text, upvotes, posting time, permalink and parent ID, so you can rebuild the reply tree. Requesting the comments in top, new and old order reaches more of a long thread than one page load.

 Can I scrape a Reddit user's posts and comments?

The open-source scraper reads the posts and comments on a public profile page. Usernames and comment history are personal data, so collect only what your use case needs and check the privacy rules that apply to you before you store or process it.

 Why does my request return a page without the post?

Use the full post URL, including the title slug after the post ID. A shortened URL can return a Reddit page without the post in it, so check for the `<shreddit-post>` tag before you parse, and retry when it is missing.

 How much does scraping Reddit cost?

With the Unblocker on, Scrapfly loads most Reddit pages over datacenter proxies for 1 credit. A request over residential proxies costs 25 credits, and JavaScript rendering adds 5. The `social_media_post` extraction model adds 5 credits, and 5 more for each 500 KB of page past the first 500 KB. The free plan includes 1,000 credits a month.

 What are the rate limits when scraping Reddit?

Scrapfly sets no Reddit-specific limit. Your maximum parallelism is the concurrency quota on your plan, or a lower cap configured for the project. Each in-flight request uses one slot until it finishes.

 

 

  

Start with one request

## Send the URL. Read the JSON.

Web Scraping API with the Unblocker, one call per public Reddit page.

Proxies across 75+ countries

[Reddit scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/reddit-scraper)[How to scrape Reddit](https://scrapfly.io/blog/posts/how-to-scrape-reddit-social-data)[All scraper pages](https://scrapfly.io/scrapers)

 

[Get free API key](https://scrapfly.io/register)[Read the docs](https://scrapfly.io/docs/scrape-api/getting-started)