Reddit Subreddit
1 credit; 2 with commentsList posts from a subreddit feed, optionally with each post's comments.
/api/v1/tools/reddit/subredditParameters
Subreddit name, with or without the r/ prefix (e.g. "programming").
Sort: hot, new, top, rising, relevance, or comments. For subreddit feeds and search, rising returns the hot order. Search-only sorts map onto hot for feeds. Defaults to hot.
Time window for top and controversial: hour, day, week, month, year, or all (default). A window narrower than "all" also filters the whole walk.
Maximum number of posts to return. Other sorts and time windows are walked and deduplicated when the first listing does not fill the request. Set 0 to return everything the call can fetch. Upper bound is determined by your plan. Defaults to 50.
Include over-18 posts. Defaults to true.
Also fetch each post's comment thread. Costs 2 credits instead of 1. Defaults to false.
Maximum comments per post when includeComments is true. Defaults to 50. Set 0 to keep the whole thread. Upper bound is determined by your plan.
Comment ordering: confidence (default), top, new, controversial, old, or qa.
Follow "load more comments" links until the thread is complete or the comment limit is met. Defaults to true. Set false to keep only the first page Reddit serves.
Field preset used when fields is omitted: basic, the default, returns every field except the HTML text, and detailed also returns it. fields overrides depth.
Post fields to include. Overrides depth. Use ["*"] for every field, including the HTML text.
Comment fields to include when includeComments is true. Overrides depth. Use ["*"] for all fields, including the HTML text.
Response Schema
Subreddit feed result
Posts in listing order. Fields depend on depth and fields. The main fields are listed below.
Comments for every post when includeComments is true, in thread order; empty otherwise. Tie a comment to its post through linkId.
Number of posts returned
True when the request budget stopped the walk or a thread expansion, or a part of a thread could not be loaded, before everything asked for was fetched. This includes a maxItems or maxCommentsPerPost of 0.
Request metadata
Tool name (reddit-subreddit)
Credits consumed (1, or 2 with includeComments)
Unique request ID
Request
curl -X POST https://scraper.run/api/v1/tools/reddit/subreddit \-H "Authorization: Bearer sc_live_..." \-H "Content-Type: application/json" \-d '{"subreddit": "programming","sort": "top","time": "week","maxItems": 25}'
Response Example
{"data": {"posts": [{"type": "post","id": "abc123","fullName": "t3_abc123","subreddit": "programming","subredditPrefixed": "r/programming","subredditId": "t5_2fwo","subredditType": "public","subredditSubscribers": 6300000,"title": "What programming language should I learn in 2026?","author": "dev_user","authorFullName": "t2_1a2b3c4d","authorPremium": false,"permalink": "https://www.reddit.com/r/programming/comments/abc123/what_programming_language/","url": "https://www.reddit.com/r/programming/comments/abc123/what_programming_language/","domain": "self.programming","isSelf": true,"selftext": "Looking for recommendations on which language to pick up next...","score": 342,"upvoteRatio": 0.94,"numComments": 187,"numCrossposts": 0,"totalAwardsReceived": 0,"createdUtc": 1775662200,"created": "2026-04-08T15:30:00.000Z","edited": false,"over18": false,"spoiler": false,"stickied": false,"locked": false,"isVideo": false,"isOriginalContent": false,"contestMode": false,"archived": false,"quarantine": false,"linkFlairText": "Discussion","linkFlairType": "text","linkFlairBackgroundColor": "#0079d3","linkFlairTextColor": "light","thumbnail": "self","previewImages": [],"galleryImages": [],"scrapedAt": "2026-04-08T18:00:00.000Z"},{"type": "post","id": "def456","fullName": "t3_def456","subreddit": "programming","subredditPrefixed": "r/programming","subredditId": "t5_2fwo","subredditType": "public","subredditSubscribers": 6300000,"title": "We migrated 400 services to Rust. Here is what broke.","author": "sys_admin","authorFullName": "t2_5e6f7g8h","authorPremium": false,"permalink": "https://www.reddit.com/r/programming/comments/def456/we_migrated_400_services_to_rust/","url": "https://www.reddit.com/r/programming/comments/def456/we_migrated_400_services_to_rust/","domain": "self.programming","isSelf": true,"selftext": "A write-up of our two-year migration...","score": 1280,"upvoteRatio": 0.97,"numComments": 412,"numCrossposts": 3,"totalAwardsReceived": 0,"createdUtc": 1775649900,"created": "2026-04-08T12:05:00.000Z","edited": false,"over18": false,"spoiler": false,"stickied": false,"locked": false,"isVideo": false,"isOriginalContent": false,"contestMode": false,"archived": false,"quarantine": false,"linkFlairType": "text","thumbnail": "self","previewImages": [],"galleryImages": [],"scrapedAt": "2026-04-08T18:00:00.000Z"}],"comments": [],"count": 2,"truncated": false},"meta": {"tool": "reddit-subreddit","creditsUsed": 1,"requestId": "req_abc123"}}