Social Media
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": "r/AskReddit is the place to ask and answer thought-provoking questions.",
"public_description": "Ask and answer thought-provoking questions.",
"subscribers": 45892041,
"active_count": 68214,
"type": "public",
"is_nsfw": false,
"icon": "https://styles.redditmedia.com/t5_2qh1i/styles/communityIcon_abc.png",
"banner": "https://styles.redditmedia.com/t5_2qh1i/styles/bannerBackgroundImage_def.png",
"primary_color": "#0079d3",
"created_at": "2008-01-25T05:52:15.000Z",
"url": "https://www.reddit.com/r/AskReddit/"
},
"response_time": 743,
"credits_used": 1,
"credits_remaining": 4748
}