Communities matching q, best matches first, 25 per page with subscribers, weekly visitors and weekly contributions; continue with next_page_token. include_nsfw=true adds 18+ communities. with_details=true adds the /subreddit/details fields (rules, widgets, flair settings, banner, type) to the first 20 communities. Billed 1 request per page, +3 per community detailed.
HTTP Request
GET /subreddit/search
Cost (in requests): 1 per page; +3 per community detailed. Every successful answer reports its cost in data.billed_requests.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | - | Search query (community name or topic). |
page_token | string | No | - | Opaque page token from a previous response’s next_page_token. Omit for the first page. Tokens issued before 2026-11-22 are rejected with invalid_page_token: start again from the first page. |
include_nsfw | boolean | No | false | Default false. true also includes 18+ communities. |
with_details | boolean | No | false | Adds the /subreddit/details fields (rules, sidebar widgets, menu links, flair settings, banner, colours, created time, type, topics, apps; with the counts the list lacks) to the first 20 communities of the page (the others keep the compact fields): banner_url, primary_color, key_color, background_color, created_at, state, topics, related_subreddits, flair_settings, is_chat_enabled, rules, widgets, menu_links, devvit_apps (left out without it). Billed +3 per community detailed. |
Response
Real response to GET /subreddit/search?q=python (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 | Search page. |
data.results | array of objects | Matching communities. |
data.results[].name | string | Subreddit name without r/. |
data.results[].subreddit_id | string | Subreddit id (t5_…). |
data.results[].description | string | Public description. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows and /answers. |
data.results[].subscribers_count | integer | Subscribers (members). Left out on /subreddit/most-visited, /subreddit/directory without with_stats and /answers. |
data.results[].weekly_visitors | integer | Weekly visitors (Reddit’s periodic count, not live). Left out on /user/subreddits, /subreddit/posting-guide, /subreddit/rule-check and /answers. |
data.results[].weekly_contributions | integer | Weekly posts + comments (Reddit’s periodic count, not live). Left out on the /subreddit/related same_topic rows, /subreddit/most-visited, /subreddit/directory without with_stats, /topic/subreddits, /user/subreddits, /subreddit/posting-guide, /subreddit/rule-check and /answers. |
data.results[].is_nsfw | boolean | Marked 18+. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows, /subreddit/most-visited, /subreddit/directory without with_stats (or include_nsfw=false), /topic/subreddits and /answers. |
data.results[].is_quarantined | boolean | Quarantined by Reddit. Left out on /subreddit/rising (without with_details), /subreddit/stats-history, /subreddit/related (the community asked about and same_topic), /subreddit/insights, /subreddit/most-visited, /subreddit/directory, /topic/subreddits, /user/subreddits and /answers. |
data.results[].icon_url | string | Community icon URL. Left out on /subreddit/rising (without with_details), /subreddit/posting-guide and /subreddit/rule-check. |
data.has_next_page | boolean | More results available. |
data.next_page_token | string | Token for deeper results; null at the end. |
data.resolved_filters | object | include_nsfw as applied. |
data.resolved_filters.include_nsfw | object | true when 18+ communities were included. |
data.resolved_filters.include_nsfw.input | string / null | What the caller sent. |
data.resolved_filters.include_nsfw.resolved | string | What was applied on Reddit (null when not applied). |
data.resolved_filters.include_nsfw.source | string | param (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language). |
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). |
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 |
200 with status: false | Bad page token | error.code is invalid_page_token: pass next_page_token from the previous answer unchanged |
Code Examples
| |
| |
| |
Related Endpoints
- Subreddit Details : Subreddit details by name or id
- Subreddit Posts : Posts of a subreddit (all six sorts, flair filter)