YepAPI
Reddit API

Subreddit Info API

Get a subreddit's profile — subscribers, description, sidebar, creation date, icon, banner, and posting settings — as JSON for $0.01 per call.

POST/v1/reddit/subreddit
$0.01/call

Returns the full profile of a subreddit: member count, public description, the sidebar text, creation date, icon and banner, plus posting settings (allowed post types, images, videos, polls, wiki, quarantine). Pair it with the Subreddit Posts API to pull the community's content and Subreddit Rules for its rules.

Usage

const res = await fetch('https://api.yepapi.com/v1/reddit/subreddit', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"subreddit": "python"}),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/reddit/subreddit \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subreddit": "python"}'
import requests

res = requests.post(
    "https://api.yepapi.com/v1/reddit/subreddit",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={"subreddit": "python"},
)
print(res.json()["data"])

Request Body

ParameterTypeRequiredDescriptionDefault
subredditstringYesSubreddit name — python, r/python, or a reddit.com/r/python URL (2–21 characters)—

Response

{
  "ok": true,
  "data": {
    "active_users": null,
    "advertiser_category": "Technology",
    "allow_images": false,
    "allow_polls": false,
    "allow_videos": false,
    "banner": "https://styles.redditmedia.com/t5_2qh0y/styles/bannerBackgroundImage_cd73kiu1502d1.png?width=4000&s=adab92e03af7e628f0df484bb7aab107176435b7",
    "created_at": "2008-01-25T03:14:39+00:00",
    "created_utc": 1201230879,
    "description": "The largest Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. \n---\n\nIf you have questions or are new to Pyt…",
    "icon": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png?width=256&s=6d91fcc92d9f08c5ba30096d43a555ddd0edbc7d",
    "id": "2qh0y",
    "lang": "en",
    "name": "Python",
    "over_18": false,
    "quarantine": false,
    "sidebar": "####[The Python Discord](https://discord.gg/python)\n\nNews about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python\n\n# Upcoming Events\n[Full Events Calendar]…",
    "submission_type": "self",
    "subscribers": 1520338,
    "title": "Python",
    "type": "public",
    "url": "https://www.reddit.com/r/Python/",
    "wiki_enabled": true
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.idstring | nullSubreddit ID
data.namestringSubreddit name without r/
data.titlestring | nullSubreddit title
data.descriptionstring | nullPublic description
data.subscribersnumber | nullMember count
data.active_usersnumber | nullUsers online, when Reddit reports it
data.created_utcnumber | nullUnix timestamp (seconds)
data.created_atstring | nullISO 8601 timestamp
data.over_18booleanMarked NSFW
data.typestring | nullpublic, restricted, private, …
data.langstring | nullLanguage code
data.urlstringreddit.com URL of the subreddit
data.iconstring | nullCommunity icon URL
data.bannerstring | nullBanner image URL
data.sidebarstring | nullSidebar text in Markdown
data.submission_typestring | nullAllowed posts: any, link, or self
data.advertiser_categorystring | nullReddit's advertiser category
data.allow_imagesbooleanImage posts allowed
data.allow_videosbooleanVideo posts allowed
data.allow_pollsbooleanPolls allowed
data.wiki_enabledbooleanSubreddit wiki enabled
data.quarantinebooleanSubreddit is quarantined

Caching

Responses are cached for 1 hour.

Errors

StatusCodeWhen
400VALIDATION_ERRORsubreddit is missing or not a valid subreddit name
404NOT_FOUNDSubreddit not found, banned, or private
429RATE_LIMITED_UPSTREAMToo many requests in a short burst — retry after a few seconds
502UPSTREAM_ERRORTemporary problem fetching data from Reddit — retry

Failed calls are not charged.

On this page