100 free credits. No credit card required. Get a key

Reddit subreddit sidebar text API

The community’s classic sidebar description, the description field of Reddit’s about JSON, as HTML and markdown: often the full rules, links and FAQ.

GET /v1/reddit/subreddits/{name}/sidebar1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/reddit/subreddits/selfhosted/sidebar",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"display_name": "selfhosted",
"description_html": "<div class=\"md\"><h1>Welcome to <a href=\"/r/SelfHosted\">/r/SelfHosted</a>!</h1>\n\n<p>&nbsp;</p>\n\n<h3><strong><a href=\"http…",
"description": "# Welcome to /r/SelfHosted!\n\n### **[Google Photos Mega Thread](https://www.reddit.com/r/selfhosted/comments/k5nzkj/googl…"
}

Parameters

NameTypeDescription
namepath · requiredstringSubreddit name, with or without "r/". "all" and "popular" also work for posts. Example: typescript.
Response fields

200 with a SubredditSidebar, in Reddit’s own Things and Listings.

FieldTypeDescription
display_namestring
description_htmlstring | null
descriptionstringMarkdown.
Status codes
StatusMeaning
200The sidebar.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The subreddit, post or user does not exist.
429Too many requests. Wait for Retry-After seconds.
503Reddit is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Reddit is a trademark of Reddit, Inc. We are not affiliated with or endorsed by Reddit.