API Direct
Endpoints
Reddit Subreddit Rules

Reddit Subreddit Rules

GET /v1/reddit/subreddit/rules

Get a subreddit's rules by name or URL, in the order the subreddit lists them. Returns each rule's title, full text, what it applies to (posts, comments or both), the report reason moderators use and when it was added.

Cost
$0.003 per request
Free tier
50 requests/month

Parameters

subreddit
Subreddit name, with or without r/, e.g. Python. Provide exactly one of subreddit or url.
url
Subreddit URL, e.g. https://www.reddit.com/r/Python/ (max 500 characters). Provide exactly one of subreddit or url.

Example Request

curl "https://apidirect.io/v1/reddit/subreddit/rules?subreddit=Python" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "rules": [
    {
      "priority": 0,
      "title": "No showcase posts",
      "description": "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...",
      "applies_to": "link",
      "violation_reason": "No showcase posts",
      "created_at": "2024-08-03 05:47:33"
    }
  ],
  "subreddit": "Python",
  "count": 11
}

Your Usage

Free tier this month
Loading...
Recent Activity