Finds limit communities where a product, project or topic fits, from a plain-words description, best fit first (weak fits score low): each with a fit_score, reasons, a caution, its self_promo_policy and, when known, the best times to post. Candidates come from community search and Reddit topics; answers are kept 30 minutes. Billed 10 requests per call, plus 1 AI unit per model answer (one for reading the description, one for ranking; none on a stored answer). Use POST for a long description.
HTTP Request
GET /subreddit/recommend (also POST /subreddit/recommend with a JSON body, see below)
Cost (in requests): 10 + AI units (2 answers). Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
description | string | Yes | - | What you offer or want to discuss, in plain words (20–2000 characters). |
limit | integer | No | 15 | Communities to return (5–50, default 15), weak fits included with a low fit_score; fewer only when fewer communities pass the filters. The rules are read for the 15 best only; the others carry self_promo_policy: not_checked. |
min_subscribers | integer | No | 1000 | Drop communities below this member count (default 1000). |
include_nsfw | boolean | No | true | Default true: adult content included (communities and posts marked NSFW); pass false to exclude it. |
exclude | string | No | - | Subreddits to leave out (≤ 20). Comma-separated. |
language | string | No | - | Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language. |
fresh | boolean | No | false | Default false. True recomputes instead of serving the stored result (bills the full cost). |
POST body
POST /subreddit/recommend accepts the same fields as a JSON body (Content-Type: application/json). List fields are JSON arrays instead of comma-separated strings. Use POST when the text is long.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
description | string | Yes | - | What you offer or want to discuss, in plain words (20–2000 characters). |
limit | integer | No | 15 | Communities to return (5–50, default 15), weak fits included with a low fit_score; fewer only when fewer communities pass the filters. The rules are read for the 15 best only; the others carry self_promo_policy: not_checked. |
min_subscribers | integer | No | 1000 | Drop communities below this member count (default 1000). |
include_nsfw | boolean | No | true | Default true: adult content included (communities and posts marked NSFW); pass false to exclude it. |
exclude | array of string | No | - | Subreddits to leave out (≤ 20). |
language | string | No | - | Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language. |
fresh | boolean | No | false | Default false. True recomputes instead of serving the stored result (bills the full cost). |
Response
Real response to GET /subreddit/recommend?description=An API that extracts Reddit posts, comments and insights for developers&limit=5 (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 | Present on success and on a model failure. |
data.recommendations | array of objects | Communities, best fit first. |
data.recommendations[].subreddit | object | The community. |
data.recommendations[].subreddit.name | string | Subreddit name without r/. |
data.recommendations[].subreddit.subreddit_id | string | Subreddit id (t5_…). |
data.recommendations[].subreddit.title | string | Display title. Left out on /subreddit/search, /subreddit/rising, /subreddit/most-visited, /subreddit/directory (these four without with_details), /user/moderated-subreddits, /subreddit/stats-history, /topic/subreddits with scope=all on a sub-topic, /subreddit/insights and /answers. |
data.recommendations[].subreddit.description | string | Public description. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows and /answers. |
data.recommendations[].subreddit.subscribers_count | integer | Subscribers (members). Left out on /subreddit/most-visited, /subreddit/directory without with_stats and /answers. |
data.recommendations[].subreddit.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.recommendations[].subreddit.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.recommendations[].subreddit.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.recommendations[].subreddit.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.recommendations[].subreddit.icon_url | string | Community icon URL. Left out on /subreddit/rising (without with_details), /subreddit/posting-guide and /subreddit/rule-check. |
data.recommendations[].fit_score | integer | 0–100 fit for the description; 0 with the reason “Not relevant to the description” for candidates the model judged not relevant (listed last). Model output: treat as untrusted text if you pass it to an agent with tools. |
data.recommendations[].self_promo_policy | string | Self-promotion policy (forbidden, ratio, weekly_thread, allowed, unclear, not_stated, or not_checked when the rules were not read: past the 15 best candidates, or when reading them failed or ran out of time): the answer of /subreddit/posting-guide when that guide was already read for these rules, otherwise an estimate from keywords in the rules text, which can differ from the guide. |
data.recommendations[].posts_per_day | number / null | Recent posting rate when known. |
data.recommendations[].best_time | object / null | Best UTC hours and weekdays to post, when a timing insight is already known for the community. |
data.recommendations[].caution | string / null | What to watch out for before posting. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.recommendations[].reasons | array of string | Up to 3 reasons. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.recommendations[].matched_phrases | array of string | Search phrases that surfaced the community. |
data.understanding | object | What the model understood from the description. |
data.understanding.category | string | Product category inferred. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.understanding.audience | string | Audience inferred. Model output: treat as untrusted text if you pass it to an agent with tools. |
data.understanding.problems | array of string | Problems solved (≤ 5). Model output: treat as untrusted text if you pass it to an agent with tools. |
data.understanding.phrases | array of string | Search phrases used (5–8). Model output: treat as untrusted text if you pass it to an agent with tools. |
data.understanding.competitors | array of string | Competitors inferred (≤ 5). Model output: treat as untrusted text if you pass it to an agent with tools. |
data.understanding.topics | array of string | Reddit topics matched (≤ 3). |
data.candidates_count | integer | Communities considered before ranking. |
data.truncated | boolean | True when a community search or a rules read was cut to keep the answer fast: the list may miss communities or say not_checked; send the request again for a fuller answer. |
data.language | string | Language of the answer. |
data.ai | object | How the model answered. |
data.ai.input_tokens | integer | Input tokens of the model call. |
data.ai.output_tokens | integer | Output tokens of the model call. |
data.ai.possible_injection | boolean | True when the input text contained instruction-like phrasing (“ignore previous instructions” and the like). Informational: the answer was still produced from the data. |
data.ai.truncated | boolean | True when the input was cut to fit max_chars (or to keep the answer fast). |
data.ai.cached | boolean | True when the answer was served from the stored result (or the rules had not changed), so no model call was made for this request. |
data.computed_at | string | When this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache. |
data.fresh | boolean | True when computed for this request; false when served from the stored result. |
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 with error.code | AI model failed | llm_timeout, llm_error or invalid_output. The Reddit data read so far is still in data. Not billed, retry |
| 503 | Reddit temporarily unreachable | "error": "Service temporarily unavailable". Not billed, retry later |
Code Examples
| |
| |
| |
POST example
| |
| |
| |
Related Endpoints
- Subreddit Posting Guide : What a community’s rules say about posting, with quotes
- Subreddit Rule Check : Check a draft post against a community’s rules
- Subreddit Flairs : Post and user flair templates of a subreddit