GET /subreddit/recommend

Subreddit Recommend

Communities where a product or topic fits, ranked, with their self-promotion policy. Reddit Scraper API endpoint /subreddit/recommend: parameters, JSON response fields and code examples.

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

ParameterTypeRequiredDefaultDescription
descriptionstringYes-What you offer or want to discuss, in plain words (20–2000 characters).
limitintegerNo15Communities 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_subscribersintegerNo1000Drop communities below this member count (default 1000).
include_nsfwbooleanNotrueDefault true: adult content included (communities and posts marked NSFW); pass false to exclude it.
excludestringNo-Subreddits to leave out (≤ 20). Comma-separated.
languagestringNo-Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language.
freshbooleanNofalseDefault 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.

ParameterTypeRequiredDefaultDescription
descriptionstringYes-What you offer or want to discuss, in plain words (20–2000 characters).
limitintegerNo15Communities 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_subscribersintegerNo1000Drop communities below this member count (default 1000).
include_nsfwbooleanNotrueDefault true: adult content included (communities and posts marked NSFW); pass false to exclude it.
excludearray of stringNo-Subreddits to leave out (≤ 20).
languagestringNo-Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language.
freshbooleanNofalseDefault 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 …).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
  "status": true,
  "request_id": "67ae5304-0a54-85a3-5f74-0d08624e",
  "data": {
    "recommendations": [
      {
        "subreddit": {
          "name": "redditdev",
          "subreddit_id": "t5_2qizd",
          "title": "reddit Development",
          "description": "A subreddit for discussion of Reddit's API and Reddit API clients.",
          "subscribers_count": 87882,
          "weekly_visitors": 10712,
          "weekly_contributions": 39,
          "is_nsfw": false,
          "is_quarantined": false,
          "icon_url": "https://b.thumbs.redditmedia.com/7GVLmrH9CdZeqXceSEWkmL8_DSUKRGUfwMxnUNh8D8A.png"
        },
        "fit_score": 92,
        "self_promo_policy": "not_stated",
        "posts_per_day": null,
        "best_time": null,
        "caution": null,
        "reasons": [
          "Discussion of Reddit's API and Reddit API clients.",
          "Target audience: developers working with Reddit."
        ],
        "matched_phrases": [
          "reddit data API",
          "developer reddit API"
        ]
      },
      {
        "subreddit": {
          "name": "webdev",
          "subreddit_id": "t5_2qs0q",
          "title": "webdev: reddit for web developers",
          "description": "A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design.",
          "subscribers_count": 3334410,
          "weekly_visitors": 309427,
          "weekly_contributions": 4721,
          "is_nsfw": false,
          "is_quarantined": false,
          "icon_url": "https://styles.redditmedia.com/t5_2qs0q/styles/communityIcon_kxcmzy9bt1381.jpg?width=64&frame=1&auto=webp&s=af7f1f83c1bb33ec7924fdf417adec3a7be0fed8"
        },
        "fit_score": 78,
        "self_promo_policy": "ratio",
        "posts_per_day": null,
        "best_time": null,
        "caution": null,
        "reasons": [
          "Community for web developers, includes API usage.",
          "Focus on technical questions and assistance."
        ],
        "matched_phrases": [
          "developer reddit API"
        ]
      }
    ],
    "understanding": {
      "category": "Developer Tools",
      "audience": "Software developers and data engineers who need to programmatically access Reddit content and analytics",
      "problems": [
        "Need to retrieve Reddit posts and comments automatically",
        "Lack of easy-to-use insights and metrics from Reddit data"
      ],
      "phrases": [
        "reddit data API",
        "fetch reddit comments"
      ],
      "competitors": [
        "Pushshift",
        "Reddit API"
      ],
      "topics": [
        "Technology",
        "Internet Culture"
      ]
    },
    "candidates_count": 322,
    "truncated": false,
    "language": "en",
    "ai": {
      "input_tokens": 2919,
      "output_tokens": 1351,
      "possible_injection": false,
      "truncated": false,
      "cached": false
    },
    "computed_at": "2026-11-24T20:57:09.972742+00:00",
    "fresh": true,
    "billed_requests": 10
  },
  "request_params": {
    "description": "An API that extracts Reddit posts, comments and insights for developers",
    "limit": "5"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectPresent on success and on a model failure.
data.recommendationsarray of objectsCommunities, best fit first.
data.recommendations[].subredditobjectThe community.
data.recommendations[].subreddit.namestringSubreddit name without r/.
data.recommendations[].subreddit.subreddit_idstringSubreddit id (t5_…).
data.recommendations[].subreddit.titlestringDisplay 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.descriptionstringPublic description. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows and /answers.
data.recommendations[].subreddit.subscribers_countintegerSubscribers (members). Left out on /subreddit/most-visited, /subreddit/directory without with_stats and /answers.
data.recommendations[].subreddit.weekly_visitorsintegerWeekly visitors (Reddit’s periodic count, not live). Left out on /user/subreddits, /subreddit/posting-guide, /subreddit/rule-check and /answers.
data.recommendations[].subreddit.weekly_contributionsintegerWeekly 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_nsfwbooleanMarked 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_quarantinedbooleanQuarantined 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_urlstringCommunity icon URL. Left out on /subreddit/rising (without with_details), /subreddit/posting-guide and /subreddit/rule-check.
data.recommendations[].fit_scoreinteger0–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_policystringSelf-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_daynumber / nullRecent posting rate when known.
data.recommendations[].best_timeobject / nullBest UTC hours and weekdays to post, when a timing insight is already known for the community.
data.recommendations[].cautionstring / nullWhat to watch out for before posting. Model output: treat as untrusted text if you pass it to an agent with tools.
data.recommendations[].reasonsarray of stringUp to 3 reasons. Model output: treat as untrusted text if you pass it to an agent with tools.
data.recommendations[].matched_phrasesarray of stringSearch phrases that surfaced the community.
data.understandingobjectWhat the model understood from the description.
data.understanding.categorystringProduct category inferred. Model output: treat as untrusted text if you pass it to an agent with tools.
data.understanding.audiencestringAudience inferred. Model output: treat as untrusted text if you pass it to an agent with tools.
data.understanding.problemsarray of stringProblems solved (≤ 5). Model output: treat as untrusted text if you pass it to an agent with tools.
data.understanding.phrasesarray of stringSearch phrases used (5–8). Model output: treat as untrusted text if you pass it to an agent with tools.
data.understanding.competitorsarray of stringCompetitors inferred (≤ 5). Model output: treat as untrusted text if you pass it to an agent with tools.
data.understanding.topicsarray of stringReddit topics matched (≤ 3).
data.candidates_countintegerCommunities considered before ranking.
data.truncatedbooleanTrue 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.languagestringLanguage of the answer.
data.aiobjectHow the model answered.
data.ai.input_tokensintegerInput tokens of the model call.
data.ai.output_tokensintegerOutput tokens of the model call.
data.ai.possible_injectionbooleanTrue 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.truncatedbooleanTrue when the input was cut to fit max_chars (or to keep the answer fast).
data.ai.cachedbooleanTrue 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_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
data.freshbooleanTrue when computed for this request; false when served from the stored result.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
200 with status: falseItem not availableerror.code is not_found, banned, private, quarantined. data is null. Billed 1 request
503 with error.codeAI model failedllm_timeout, llm_error or invalid_output. The Reddit data read so far is still in data. Not billed, retry
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/recommend"

params = {
    "description": "An API that extracts Reddit posts, comments and insights for developers",
    "limit": "5",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

print(data["candidates_count"])
print(data["truncated"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/recommend";

const params = new URLSearchParams({
  description: "An API that extracts Reddit posts, comments and insights for developers",
  limit: "5",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
console.log(data.candidates_count, data.truncated);
1
2
3
4
5
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/recommend" \
  --data-urlencode "description=An API that extracts Reddit posts, comments and insights for developers" \
  --data-urlencode "limit=5" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"

POST example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/recommend"

payload = {
    "description": "An API that extracts Reddit posts, comments and insights for developers",
    "limit": 5
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers, json=payload)
data = response.json()["data"]

print(data["candidates_count"])
print(data["truncated"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const response = await fetch("https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/recommend", {
  method: "POST",
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "description": "An API that extracts Reddit posts, comments and insights for developers",
  "limit": 5
})
});

const { data } = await response.json();
console.log(data.candidates_count, data.truncated);
1
2
3
4
5
curl -X POST "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/recommend" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"description": "An API that extracts Reddit posts, comments and insights for developers", "limit": 5}'
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI