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.
curl "https://apidirect.io/v1/reddit/subreddit/rules?subreddit=Python" \
-H "X-API-Key: YOUR_API_KEY"
{
"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
}