ScrapeCrate

Temporarily unavailable

This feature is switched off for now. Its calls answer 503 feature_disabled and cost no credits. Please check back later.

How to scrape Reddit posts and whole comment threads

Search Reddit, read whole comment trees and list subreddit posts as clean JSON, without OAuth apps or rate-limit juggling. Python, JS and curl code.

· 5 min read

Reddit is where people ask for recommendations, complain about products, compare tools and explain their problems in detail. For market research, product discovery and content ideas it is hard to beat: the threads are long, the votes rank the useful answers, and subreddits group the discussion by topic.

Getting the data out has become harder. The official API needs an OAuth app, comes with strict rate limits and commercial terms, and its comment endpoints return trees full of "load more" placeholders that you have to expand one by one. Scraping the HTML instead means fighting rotating markup and blocks on datacenter IPs.

This guide shows how to get the same data with plain HTTP calls to the Reddit API of ScrapeCrate: search posts, read a full comment tree, and list a subreddit's posts.

What you can read

EndpointWhat it returns
GET /v1/reddit/searchPosts matching a query, across Reddit or in one subreddit
GET /v1/reddit/posts/{post_id}One post
GET /v1/reddit/posts/{post_id}/commentsThe comment tree of a post
GET /v1/reddit/subreddits/{name}A subreddit's description and subscribers
GET /v1/reddit/subreddits/{name}/postsA subreddit's posts by hot, new, top, rising or controversial
GET /v1/reddit/users/{username} and /postsA user's profile and submissions

Every endpoint costs 3 credits per successful call. Pages of up to 100 posts or 200 comments are a single call.

Searching posts

Start with search: it finds the threads where your topic is discussed.

curl "https://api.scrapecrate.com/v1/reddit/search?q=best+mechanical+keyboard&sort=top&time=year&limit=100" \
  -H "X-API-Key: YOUR_API_KEY"

The parameters:

  • q: the search query

  • subreddit: only posts of one subreddit, name without r/

  • sort: relevance (default), hot, top, new or comments

  • time: hour, day, week, month, year or all (default)

  • limit: 1 to 100 posts per page (default 25), and cursor for the next page

Each post has post_id, subreddit, title, author, selftext (the body of a text post), url, permalink, score, upvote_ratio, num_comments, created_at, flair, and flags like is_self, over_18, stickied and locked.

A tip for research: sort=comments surfaces the threads with the most discussion, which are often more useful than the most upvoted ones. And upvote_ratio well below 1 means the post was controversial.

Reading a whole comment thread

The answers are in the comments. The comments endpoint returns them as a tree: each top-level comment carries its replies, down to depth levels.

curl "https://api.scrapecrate.com/v1/reddit/posts/1h2x3yz/comments?sort=top&limit=200&depth=10" \
  -H "X-API-Key: YOUR_API_KEY"

How it works:

  • sort is the order of the thread: confidence (Reddit's "Best", the default), top, new, controversial, old or qa.

  • limit is the most comments of the page, replies included, up to 200 (default 100).

  • depth is how many levels of replies you get, from 1 (top-level only) to 10 (default 5).

  • meta.post is the post itself, so one call gives you the question and the answers.

Each comment has comment_id, parent_id, author, body, score, created_at, depth, is_submitter (true when the original poster replies), stickied, distinguished, permalink, replies and more_replies, the number of replies left out of this page. For the next top-level comments follow pagination.next_cursor.

is_submitter is worth using: the original poster's replies often say which suggestion they picked, which is the closest thing Reddit has to an accepted answer.

Monitoring a subreddit

To follow a community over time, list its posts:

curl "https://api.scrapecrate.com/v1/reddit/subreddits/MechanicalKeyboards/posts?sort=new&limit=100" \
  -H "X-API-Key: YOUR_API_KEY"

sort is hot (default), new, top, rising or controversial; time (hour to all, default day) applies to top and controversial. Run it with sort=new every hour and you have an alert system for a community: 3 credits per check, about 72 credits a day.

The subreddit endpoint itself returns title, description, public_description, subscribers, created_at, over_18 and type, useful to rank which communities are worth watching.

Three things to build

  1. Pain-point mining. Search a problem ("invoice software for freelancers"), keep the threads with many comments, pull their trees and ask a language model to list the complaints and the tools people recommend. You get a competitive landscape in the words of real users.

  2. Lead signals. Monitor the subreddits of your niche for posts asking for a recommendation in your category. The lead generation pipeline guide shows how to combine signals like these with business data from Google Maps.

  3. Cross-platform sentiment. Compare what Reddit says about a product with its YouTube comments and its reviews: the same account and credits read all of them.

Doing it responsibly

Reddit content is public but written by people, under usernames that are often linked to real identities. Keep only what you need, prefer aggregate analysis to profiles of individuals, respect deletions (a deleted comment should be deleted from your copy too) and do not republish threads wholesale. Our guide on whether web scraping is legal covers the rules in more depth.

On the technical side, the rate limit is 300 requests a minute per key, and the concurrent requests depend on your plan. Errors such as 404 for a deleted post are never billed; 429 means slow down and retry after the Retry-After header. The full list is on the errors page.

Try it

Create a free account, copy your key and run the search above: the 100 free credits of each month cover more than 30 Reddit calls. Every parameter is documented in the Reddit API reference.

Frequently asked questions

Do I need a Reddit developer account?

No. You do not register an OAuth app or manage Reddit tokens. You call the ScrapeCrate Reddit API with your ScrapeCrate key, and the first 100 credits of every month are free.

How do I get every comment of a long thread?

Call the post comments endpoint with limit up to 200 and depth up to 10, then follow pagination.next_cursor for the next top-level comments. more_replies on a comment tells you how many replies were left out of that page.

Can I search inside one subreddit?

Yes. Add subreddit=<name> (without r/) to the search endpoint. Combine it with sort and time, for example sort=top and time=year, to get the best posts of the last year about a topic.

How much does it cost?

Every Reddit endpoint costs 3 credits per successful call, whatever it returns. A search page of 100 posts is 3 credits, a thread of 200 comments is 3 credits. Failed calls are free.

Can I scrape NSFW or private subreddits?

The API only reads public content. Posts carry over_18, so you can filter adult content out of your data set. Private and banned subreddits are not reachable.

Try it with free credits every month

One API key for every source in this guide. No card needed, and only successful calls are billed.

← All guides