Reddit Subreddit Info
Get metadata for a subreddit — id, name, title, description, subscriber and active-user counts, type, NSFW flag, icon, banner, primary color, and creation date — as JSON. Costs 1 credit per request.
POST/api/v1/reddit/subreddit
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonsubredditstringrequiredSubreddit name, without the r/ prefix (1-100 characters).
Example: AskReddit
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.reddit.subreddit(subreddit="AskReddit")
print(results)Response
"id": "t5_2qh1i",
"name": "AskReddit",
"prefixed_name": "r/AskReddit",
"title": "Ask Reddit...",
"description": "###### [ [ SERIOUS ] ](http://www.reddit.com/r/askreddit/submit?selftext=true&title=%5BSerious%5D)
##### [Rules](https://www.reddit.com/r/AskReddit/wiki/index#wiki_rules):
1. You must post a clear and direct question in the title.",
"public_description": "r/AskReddit is the place to ask and answer thought-provoking questions.",
"subscribers": 59991223,
"active_count": 12072624,
"type": "PUBLIC",
"is_nsfw": false,
"icon": "https://styles.redditmedia.com/t5_2qh1i/styles/communityIcon_p6kb2m6b185b1.png?width=64&frame=1&auto=webp&s=8e8d7fabcc18322bde1c5a388488f19477ed60ed",
"banner": "https://styles.redditmedia.com/t5_2qh1i/styles/bannerBackgroundImage_fs33xogq946f1.png?frame=1&auto=webp&s=9170912bc2b0276e17131afc71ba890709183f10",
"primary_color": "#D4EAFF",
"created_at": "2008-01-25T03:52:15.108000+0000",
"url": "https://www.reddit.com/r/AskReddit/"
},
"response_time": 1051,
"credits_used": 1,
"credits_remaining": 77651
}