need_formatboolean
Whether to clean and format the data
डिफ़ॉल्ट: false
https://api.sandbase.ai/v1/api/reddit/app/subreddit-infoReturns detailed metadata for a Reddit subreddit, such as rules, descriptions, and app installations. Look up data by subreddit name with optional response formatting.
[
{
"data": {
"subredditInfoByName": {
"__typename": "Subreddit",
"activeCount": 0,
"allowedMediaInComments": [
"GIPHY",
"STATIC",
"EXPRESSION",
"… 1 more items in the full response"
],
"allowedPostTypes": [
"LINK",
"IMAGE",
"GALLERY"
],
"authorFlair": null,
"authorFlairSettings": {
"isEnabled": true,
"isOwnFlairEnabled": false,
"isSelfAssignable": false
},
"communityLeaderboard": {
"isEnabled": false
},
"communityStats": {
"weeklyActiveUsersCount": 4299759,
"weeklyContributionsCount": 41067
},
"communityStatus": {
"__typename": "SubredditCommunityStatus",
"description": {
"markdown": "📸",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"\\ud83d\\udcf8\"}],\"e\":\"par\"}]}"
},
"emoji": {
"name": "upvote",
"url": "https://emoji.redditmedia.com/ad1td4bx9ezz_t5_3nqvj/upvote"
}
},
"createdAt": "2008-01-25T00:31:09.512000+0000",
"description": {
"markdown": "[Please read our rules in their entirety before participating.](/r/pics/wiki/index)\n\n1. No screenshots, AI images, or pictures in which the focus is a screen. [more>>](/r/pics/wiki/index#wiki_rule_1.3A_no_screenshots)\n\n2. No digital elements or text. [more>>](/r/pics/wiki/index#wiki_rule_2.3A_no_digital_elements.2Fadded_text)\n\n3. No porn or gore. [more>>](/r/pics/wiki/index#wiki_rule_3.3A_no_pornography_or_gore)\n\n4. No personal information, direct links to any social media, subreddit-related meta-drama, witch-hunts or missing/found posts. [more>>](/r/pics/wiki/index#wiki_rule_4.3A_no_doxxing_o…",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"link\",\"t\":\"Please read our rules in their entirety before participating.\",\"u\":\"/r/pics/wiki/index\"}],\"e\":\"par\"},{\"c\":[{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"No screenshots, AI images, or pictures in which the focus is a screen. \"},{\"e\":\"link\",\"t\":\"more\\u003e\\u003e\",\"u\":\"/r/pics/wiki/index#wiki_rule_1.3A_no_screenshots\"}],\"e\":\"par\"}],\"e\":\"li\"},{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"No digital elements or text. \"},{\"e\":\"link\",\"t\":\"more\\u003e\\u003e\",\"u\":\"/r/pics/wiki/index#wiki_rule_2.3A_no_digital_elements.2Fadded_text\"}],\"e\":\"par\"}],\"e\":\"li\"},{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"No porn or gore. \"…"
},
"detectedLanguage": "en",
"devvit": {
"installations": [
{
"app": {
"name": "Banhammer",
"slug": "banhammerapp"
}
},
{
"app": {
"name": "Admin Tattler",
"slug": "admin-tattler"
}
},
{
"app": {
"name": "Comment Mop",
"slug": "comment-nuke"
}
},
"… 12 more items in the full response"
]
},
"id": "t5_2qh0u",
"interstitialWarningMessage": null,
"isChannelsEnabled": false,
"isContributor": false,
"isCrosspostingAllowed": true,
"isFavorite": false,
"isMediaInCommentsSettingShown": true,
"isMuted": false,
"isNsfw": false,
"isPostingRestricted": true,
"isQuarantined": false,
"isSpoilerAvailable": false,
"isSubscribed": false,
"isTitleSafe": true,
"isUserBanned": false,
"modPermissions": null,
"name": "pics",
"notificationLevel": null,
"originalContentCategories": [],
"path": "/r/pics/",
"postFlairSettings": {
"isEnabled": true
},
"prefixedName": "r/pics",
"publicDescriptionText": "A place for photographs, pictures, and other images.",
"quarantineMessage": null,
"styles": {
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=0e538062b7411be26edacd34e6c124e2e8b4527a",
"icon": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png",
"legacyBannerBackgroundImage": null,
"legacyIcon": {
"url": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png"
},
"legacyPrimaryColor": "#24A0ED",
"mobileBannerImage": "https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=29c4dd4ffa5577473f43e876fa0c2aed84022651",
"primaryColor": "#553200"
},
"subscribersCount": 33500477,
"taxonomy": {
"taxonomyTopics": [
{
"__typename": "SubredditTaxonomyRelation",
"displayCopy": "#1 in Photography",
"taxonomyTopic": {
"displayName": "Photography",
"id": "Photography"
}
}
]
},
"title": "Reddit Pics",
"type": "PUBLIC",
"welcomePage": {
"__typename": "SubredditWelcomePage",
"isEnabled": true,
"isEnabledOnJoin": true
},
"whitelistStatus": "SOME_ADS",
"wiki": {
"indexPage": {
"status": "VALID"
}
},
"wikiEditMode": "MODONLY"
}
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns metadata for one Reddit subreddit, including its description, subscriber count, post settings, styling, and installed Devvit apps. It needs a subreddit name without the r/ prefix, such as pics.
subscribersCount and communityStats to compare the size and weekly activity of different subreddits.allowedPostTypes, isNsfw and isPostingRestricted before building a posting workflow for a subreddit.styles to show a subreddit's branding in your own app.curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/subreddit-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
need_format | boolean | No | Whether to clean and format the data |
subreddit_name | string | No | Subreddit name (without r/ prefix), e.g., "pics", "funny", "AskReddit" |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"subredditInfoByName": {
"__typename": "Subreddit",
"activeCount": 0,
"allowedMediaInComments": [
"GIPHY"
],
"allowedPostTypes": [
"LINK"
],
"authorFlair": null,
"authorFlairSettings": {
"isEnabled": true,
"isOwnFlairEnabled": false,
"isSelfAssignable": false
},
"communityLeaderboard": {
"isEnabled": false
},
"communityStats": {
"weeklyActiveUsersCount": 3157928,
"weeklyContributionsCount": 27065
},
"communityStatus": {
"__typename": "SubredditCommunityStatus",
"description": {
"markdown": "📸",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"\\ud83d\\udcf8\"}],\"e\":\"par\"}]}"
},
"emoji": {
"name": "upvote",
"url": "https://emoji.redditmedia.com/ad1td4bx9ezz_t5_3nqvj/upvote"
}
},
"createdAt": "2008-01-25T00:31:09.512000+0000",
"description": {
"markdown": "[Please read our rules in their entirety before participating.](/r/pics/wiki/ind…",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"link\",\"t\":\"Please read our rules in their entirety befo…"
},
"detectedLanguage": "en"
}
}
| Field | Meaning |
|---|---|
subredditInfoByName.id / subredditInfoByName.name / subredditInfoByName.prefixedName | The subreddit's ID (t5_ format), its plain name, and its name with the r/ prefix. |
subredditInfoByName.subscribersCount | Number of subscribers to the subreddit. |
subredditInfoByName.communityStats.weeklyActiveUsersCount / subredditInfoByName.communityStats.weeklyContributionsCount | Weekly active users and weekly contributions for the subreddit. |
subredditInfoByName.publicDescriptionText / subredditInfoByName.description.markdown | A short public description, and the longer sidebar description in Markdown. The sidebar text holds the community rules and may be cut in long cases. |
subredditInfoByName.createdAt | Creation time of the subreddit as an ISO 8601 timestamp. |
subredditInfoByName.allowedPostTypes / subredditInfoByName.allowedMediaInComments | Post types the subreddit accepts, such as LINK, IMAGE and GALLERY, and media types allowed in comments. |
subredditInfoByName.isNsfw / subredditInfoByName.isQuarantined / subredditInfoByName.isPostingRestricted | Flags for adult content, quarantine status, and whether posting is restricted. |
subredditInfoByName.devvit.installations[].app.name / subredditInfoByName.devvit.installations[].app.slug | Name and slug of each Devvit app installed in the subreddit. |
subredditInfoByName.styles.icon / subredditInfoByName.styles.bannerBackgroundImage / subredditInfoByName.styles.primaryColor | Image URLs for the icon and banner, and the primary color as a hex code. |
subredditInfoByName.taxonomy.taxonomyTopics[].displayCopy | Ranking label for the subreddit within a topic, such as #1 in Photography. |
subreddit_name without the r/ prefix. The default value is pics.need_format to true to have the returned data cleaned and formatted.id value starts with t5_. Use it with APIs that take a subreddit ID, such as Reddit Community Highlights or Reddit Subreddit Mute Status.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/subreddit-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"need_format": false,
"subreddit_name": "pics"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
need_formatbooleanWhether to clean and format the data
डिफ़ॉल्ट: false
subreddit_namestringSubreddit name (without r/ prefix), e.g., "pics", "funny", "AskReddit"
डिफ़ॉल्ट: "pics"
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"subredditInfoByName": {
"__typename": "Subreddit",
"activeCount": 0,
"allowedMediaInComments": [
"GIPHY",
"STATIC",
"EXPRESSION",
"… 1 more items in the full response"
],
"allowedPostTypes": [
"LINK",
"IMAGE",
"GALLERY"
],
"authorFlair": null,
"authorFlairSettings": {
"isEnabled": true,
"isOwnFlairEnabled": false,
"isSelfAssignable": false
},
"communityLeaderboard": {
"isEnabled": false
},
"communityStats": {
"weeklyActiveUsersCount": 4299759,
"weeklyContributionsCount": 41067
},
"communityStatus": {
"__typename": "SubredditCommunityStatus",
"description": {
"markdown": "📸",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"\\ud83d\\udcf8\"}],\"e\":\"par\"}]}"
},
"emoji": {
"name": "upvote",
"url": "https://emoji.redditmedia.com/ad1td4bx9ezz_t5_3nqvj/upvote"
}
},
"createdAt": "2008-01-25T00:31:09.512000+0000",
"description": {
"markdown": "[Please read our rules in their entirety before participating.](/r/pics/wiki/index)\n\n1. No screenshots, AI images, or pictures in which the focus is a screen. [more>>](/r/pics/wiki/index#wiki_rule_1.3A_no_screenshots)\n\n2. No digital elements or text. [more>>](/r/pics/wiki/index#wiki_rule_2.3A_no_digital_elements.2Fadded_text)\n\n3. No porn or gore. [more>>](/r/pics/wiki/index#wiki_rule_3.3A_no_pornography_or_gore)\n\n4. No personal information, direct links to any social media, subreddit-related meta-drama, witch-hunts or missing/found posts. [more>>](/r/pics/wiki/index#wiki_rule_4.3A_no_doxxing_o…",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"link\",\"t\":\"Please read our rules in their entirety before participating.\",\"u\":\"/r/pics/wiki/index\"}],\"e\":\"par\"},{\"c\":[{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"No screenshots, AI images, or pictures in which the focus is a screen. \"},{\"e\":\"link\",\"t\":\"more\\u003e\\u003e\",\"u\":\"/r/pics/wiki/index#wiki_rule_1.3A_no_screenshots\"}],\"e\":\"par\"}],\"e\":\"li\"},{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"No digital elements or text. \"},{\"e\":\"link\",\"t\":\"more\\u003e\\u003e\",\"u\":\"/r/pics/wiki/index#wiki_rule_2.3A_no_digital_elements.2Fadded_text\"}],\"e\":\"par\"}],\"e\":\"li\"},{\"c\":[{\"c\":[{\"e\":\"text\",\"t\":\"No porn or gore. \"…"
},
"detectedLanguage": "en",
"devvit": {
"installations": [
{
"app": {
"name": "Banhammer",
"slug": "banhammerapp"
}
},
{
"app": {
"name": "Admin Tattler",
"slug": "admin-tattler"
}
},
{
"app": {
"name": "Comment Mop",
"slug": "comment-nuke"
}
},
"… 12 more items in the full response"
]
},
"id": "t5_2qh0u",
"interstitialWarningMessage": null,
"isChannelsEnabled": false,
"isContributor": false,
"isCrosspostingAllowed": true,
"isFavorite": false,
"isMediaInCommentsSettingShown": true,
"isMuted": false,
"isNsfw": false,
"isPostingRestricted": true,
"isQuarantined": false,
"isSpoilerAvailable": false,
"isSubscribed": false,
"isTitleSafe": true,
"isUserBanned": false,
"modPermissions": null,
"name": "pics",
"notificationLevel": null,
"originalContentCategories": [],
"path": "/r/pics/",
"postFlairSettings": {
"isEnabled": true
},
"prefixedName": "r/pics",
"publicDescriptionText": "A place for photographs, pictures, and other images.",
"quarantineMessage": null,
"styles": {
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=0e538062b7411be26edacd34e6c124e2e8b4527a",
"icon": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png",
"legacyBannerBackgroundImage": null,
"legacyIcon": {
"url": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png"
},
"legacyPrimaryColor": "#24A0ED",
"mobileBannerImage": "https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=29c4dd4ffa5577473f43e876fa0c2aed84022651",
"primaryColor": "#553200"
},
"subscribersCount": 33500477,
"taxonomy": {
"taxonomyTopics": [
{
"__typename": "SubredditTaxonomyRelation",
"displayCopy": "#1 in Photography",
"taxonomyTopic": {
"displayName": "Photography",
"id": "Photography"
}
}
]
},
"title": "Reddit Pics",
"type": "PUBLIC",
"welcomePage": {
"__typename": "SubredditWelcomePage",
"isEnabled": true,
"isEnabledOnJoin": true
},
"whitelistStatus": "SOME_ADS",
"wiki": {
"indexPage": {
"status": "VALID"
}
},
"wikiEditMode": "MODONLY"
}
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
Reddit | $0.001 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/reddit/app/subreddit-info पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: need_format (boolean) और subreddit_name (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Reddit App Subreddit Info SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।