Basics for up to 50 communities at once, in the order sent: id, name, description, icon, colours, NSFW flag, subscribers and weekly visitors / contributions; unknown ones come back with exists: false and in missing_subreddits. with_details=true (at most 20 communities) adds the /subreddit/details fields: rules, sidebar widgets, menu links, flair settings, banner, created time, type and apps. Billed 1 request per community found (minimum 1), +3 per community detailed with with_details=true.
HTTP Request
GET /subreddit/batch
Cost (in requests): 1 per community found; +3 per detailed. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subreddits | string | Yes | - | Community names (with or without r/) or t5_ ids, 1–50 (1–20 with with_details). Comma-separated, duplicates removed, request order kept in the answer. |
with_details | boolean | No | false | Adds the /subreddit/details fields per community (left out without it): title, type, is_quarantined, banner_url, key_color, background_color, created_at, state, topics, related_subreddits, flair_settings, is_chat_enabled, rules, widgets, menu_links, devvit_apps. Caps the batch at 20 communities. Billed: +3 per community detailed. |
Response
Real response to GET /subreddit/batch?subreddits=python,django (arrays trimmed to 2 items, long texts cut with …).
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique request identifier |
data | object | Batch result. |
data.requested_count | integer | Communities requested after de-duplication. |
data.found_count | integer | Communities found; the billing unit. |
data.truncated | boolean | True when the request ran out of time before every community was looked up; the rest are not looked up, not billed, and listed in not_attempted (rows with exists: null). Send them again in a new request. |
data.not_attempted | array | Requested communities that were not looked up in time (not billed: send them again; empty unless truncated). |
data.missing_subreddits | array | Requested communities that do not exist. |
data.billed_requests | integer | Requests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1). |
data.items | array of objects | One row per requested community, in request order (unknown ones are rows with exists: false). |
data.items[].input | string | Community as requested. |
data.items[].exists | boolean | The community exists (false for unknown names, and banned or private ones may also come back false: /subreddit/details tells a community’s state, and so does state with with_details=true; null when it was not looked up in time, see not_attempted, or, with with_details=true, when its details could not be read: send it again). |
data.items[].name | string | Subreddit name without r/. |
data.items[].subreddit_id | string | Subreddit id (t5_…). |
data.items[].description | string | Public description. |
data.items[].subscribers_count | integer | Subscribers (members). |
data.items[].weekly_visitors | integer | Weekly visitors (Reddit’s periodic count, not live). |
data.items[].weekly_contributions | integer | Weekly posts + comments (Reddit’s periodic count, not live). |
data.items[].is_nsfw | boolean | Marked 18+. |
data.items[].icon_url | string | Community icon URL. |
data.items[].primary_color | string | Community primary colour (hex). |
request_params | object | Echo of the parameters you sent |
Error Responses
Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:
| |
| Status Code | Cause | Description |
|---|---|---|
| 400 | Invalid or missing parameter | Plain-English message per field. Not billed |
200 with status: false | Item not available | error.code is not_found, banned, private, quarantined. data is null. Billed 1 request |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
Related Endpoints
- Subreddit Related : Related communities: moderator picks, name matches, same topic and shared audience
- Subreddit Recommendations : Communities Reddit recommends next to a community
- Subreddit Stats History : Daily history of members and weekly visitors for up to 25 communities