GET /subreddit/rule-check

Subreddit Rule Check

Check a draft post against a community's rules. Reddit Scraper API endpoint /subreddit/rule-check: parameters, JSON response fields and code examples.

Checks a draft post (title, body, link, flair) against a community’s rules before you post: structured requirements are checked exactly, then an AI model lists the rules the draft likely breaks, each quoted verbatim with a reason. ok is true when no violation is medium or high; the draft is never rewritten. Billed 3 requests per call, plus 1 AI unit per model answer (the check, and the rules when the model had to read them first). Use POST for a long draft body (up to 10,000 characters do not always fit in a URL).

HTTP Request

GET /subreddit/rule-check (also POST /subreddit/rule-check with a JSON body, see below)

Cost (in requests): 3 + AI units. Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.

Parameters

ParameterTypeRequiredDefaultDescription
subredditstringYes-Subreddit name (case-insensitive, with or without r/) or its t5_ id.
titlestringYes-Draft title, 1–300 characters.
bodystringNo-Draft body text, at most 10,000 characters.
urlstringNo-Outside link the draft would post (link posts).
flairstringNo-Flair text you intend to choose.
languagestringNo-ISO-639-1 code of reason and notes. Default en.

POST body

POST /subreddit/rule-check 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
subredditstringYes-Subreddit name (case-insensitive, with or without r/) or its t5_ id.
titlestringYes-Draft title, 1–300 characters.
bodystringNo-Draft body text, at most 10,000 characters.
urlstringNo-Outside link the draft would post (link posts).
flairstringNo-Flair text you intend to choose.
languagestringNo-ISO-639-1 code of reason and notes. Default en.

Response

Real response to GET /subreddit/rule-check?subreddit=python&title=I built a tool that scrapes Reddit, try it (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
{
  "status": true,
  "request_id": "44dc05e1-840b-4e9f-4e25-e471f293",
  "data": {
    "subreddit": {
      "name": "Python",
      "subreddit_id": "t5_2qh0y",
      "title": "Python",
      "description": "The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. \n---\n\nIf you have questions or are new to Python use r/LearnPython",
      "subscribers_count": 1524296,
      "type": "public",
      "is_nsfw": false,
      "is_quarantined": false
    },
    "ok": false,
    "missing_flair": false,
    "violations": [
      {
        "rule": "No showcase posts",
        "reason": "The draft is a showcase of a Reddit‑scraping tool but does not indicate it is posted in the designated showcase thread.",
        "confidence": "high",
        "source": "rules",
        "source_quote": "No showcase posts: Due to an increase of showcases featuring AI content such as working with multiple AI models or wrappers around APIs, this is no longer allowed. Please post your showcases in the appropriate monthly showcase post or a dai…"
      },
      {
        "rule": "Showcases must include required sections",
        "reason": "The draft contains no body and therefore lacks the required showcase sections.",
        "confidence": "high",
        "source": "rules",
        "source_quote": "Showcase posts must have these sections in order to give a good idea for target audience, intended use, goals, etc. - What My Project Does - Target Audience (e.g., Is it meant for production, just a toy project, etc. - Comparison (A brief c…"
      }
    ],
    "notes": [],
    "post_flairs": [
      "Showcase",
      "News"
    ],
    "ai": {
      "input_tokens": 2160,
      "output_tokens": 468,
      "possible_injection": false,
      "truncated": false,
      "cached": false
    },
    "computed_at": "2026-11-24T20:56:57.801706+00:00",
    "billed_requests": 3
  },
  "request_params": {
    "subreddit": "python",
    "title": "I built a tool that scrapes Reddit, try it"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectThe check; status false with data present = the rules were read but the model did not answer; null with error.code not_found / private / banned / quarantined.
data.subredditobjectThe community.
data.subreddit.namestringSubreddit name without r/.
data.subreddit.subreddit_idstringSubreddit id (t5_…).
data.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.subreddit.descriptionstringPublic description. Left out on /subreddit/rising (without with_details), the /subreddit/related same_topic rows and /answers.
data.subreddit.subscribers_countintegerSubscribers (members). Left out on /subreddit/most-visited, /subreddit/directory without with_stats and /answers.
data.subreddit.typestringpublic, restricted, private, archived… Left out where no source carries it: /subreddit/search, /subreddit/rising, /subreddit/most-visited, /subreddit/directory (these four without with_details), /subreddit/related, /subreddit/recommend, /subreddit/stats-history, /subreddit/insights and /answers.
data.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.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.okbooleanTrue when no violation has confidence medium or high.
data.missing_flairbooleanThe community requires a flair and the draft has none.
data.violationsarray of objectsLikely violations, structured checks first. The draft is never rewritten. Model output: treat as untrusted text if you pass it to an agent with tools.
data.violations[].rulestringRule title (or the stated rule text) the draft likely breaks.
data.violations[].reasonstringWhy the draft breaks it, one sentence.
data.violations[].confidencestringlow, medium or high; checks against structured requirements are always high.
data.violations[].sourcestringrequirements (deterministic check against the community’s posting requirements and flairs) or rules (the model’s reading of the rules).
data.violations[].source_quotestringVerbatim rule text; null for a structured requirement.
data.notesarrayShort remarks from the model that are not violations (e.g. a weekly thread the draft belongs in).
data.post_flairsarray of stringPost flair texts the community defines.
data.aiobjectModel call details; null when the model did not answer (the structured checks are still reported).
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.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/rule-check"

params = {
    "subreddit": "python",
    "title": "I built a tool that scrapes Reddit, try it",
}

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["ok"])
print(data["missing_flair"])
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/rule-check";

const params = new URLSearchParams({
  subreddit: "python",
  title: "I built a tool that scrapes Reddit, try it",
});

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.ok, data.missing_flair);
1
2
3
4
5
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/rule-check" \
  --data-urlencode "subreddit=python" \
  --data-urlencode "title=I built a tool that scrapes Reddit, try it" \
  -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
22
import requests

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

payload = {
    "subreddit": "python",
    "title": "I built a tool that scrapes Reddit, try it",
    "body": "Link in comments."
}

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["ok"])
print(data["missing_flair"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const response = await fetch("https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/rule-check", {
  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({
  "subreddit": "python",
  "title": "I built a tool that scrapes Reddit, try it",
  "body": "Link in comments."
})
});

const { data } = await response.json();
console.log(data.ok, data.missing_flair);
1
2
3
4
5
curl -X POST "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/subreddit/rule-check" \
  -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 '{"subreddit": "python", "title": "I built a tool that scrapes Reddit, try it", "body": "Link in comments."}'
Start building today

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

Get Your API Key on RapidAPI