Get subreddit rules from Reddit with KonbiniAPI
Returns the rules of a Reddit subreddit as a structured list of document objects.
This API endpoint returns the rules of a Reddit subreddit as a structured list of document objects.
Perfect for
- Extract community guidelines for compliance checks
- Research subreddit policies for content moderation
- Automate rule retrieval for community management tools
1. Make the request
const response = await fetch("https://api.konbiniapi.com/v1/reddit/subreddits/programming/rules", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
2. Get clean JSON
Response (200 OK)
{
"data": {
"type": "OrderedCollectionPage",
"itemCount": 3,
"orderedItems": [
{
"type": "Document",
"name": "Keep it civil",
"content": "Be respectful and avoid personal attacks."
}
]
}
}