need_formatboolean
Whether to clean and format the data
डिफ़ॉल्ट: false
https://api.sandbase.ai/v1/api/reddit/app/subreddit-styleReturns rules, styling details, and moderator information for a designated Reddit subreddit. Accepts the subreddit name and an optional formatting toggle.
[
{
"data": {
"subredditInfoByName": {
"__typename": "Subreddit",
"id": "t5_2qh0u",
"moderatorsInfo": {
"edges": [
{
"node": {
"id": "t2_2fpn"
}
},
{
"node": {
"id": "t2_j0z5u"
}
},
{
"node": {
"id": "t2_itf5"
}
},
"… 22 more items in the full response"
]
},
"rules": [
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No <a href=\"https://i.imgur.com/AtDiqpR.jpg\" target=\"_blank\">screenshots</a>. No pictures wherein the only focus is a screen.</strong></p>\n\n<p>Images with <a href=\"https://i.imgur.com/mhmXSRq.jpg\" target=\"_blank\">unnecessary margins</a> of any color will be assumed to be screenshots.</p>\n\n<p>Pictures that include screens can be permitted, but said screens must not be the sole or primary focus of the photographs.</p>\n\n<p>We do not allow AI-generated images of any kind.</p>\n",
"markdown": "**No [screenshots](https://i.imgur.com/AtDiqpR.jpg). No pictures wherein the only focus is a screen.**\n\nImages with [unnecessary margins](https://i.imgur.com/mhmXSRq.jpg) of any color will be assumed to be screenshots. \n\nPictures that include screens can be permitted, but said screens must not be the sole or primary focus of the photographs.\n\nWe do not allow AI-generated images of any kind.",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,3]],\"t\":\"No \"},{\"e\":\"link\",\"f\":[[1,0,11]],\"t\":\"screenshots\",\"u\":\"https://i.imgur.com/AtDiqpR.jpg\"},{\"e\":\"text\",\"f\":[[1,0,49]],\"t\":\". No pictures wherein the only focus is a screen.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Images with \"},{\"e\":\"link\",\"t\":\"unnecessary margins\",\"u\":\"https://i.imgur.com/mhmXSRq.jpg\"},{\"e\":\"text\",\"t\":\" of any color will be assumed to be screenshots.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Pictures that include screens can be permitted, but said screens must not be the sole or primary focus of the photographs.\"}],\"e\":\"par\"},{\"c\":[{\"e…",
"typeHint": null
},
"id": "0783e9fa-9cb5-4fe4-a705-3f0d77111199",
"name": "No screenshots, AI images, or pictures in which the focus is a screen.",
"priority": 0,
"violationReason": "Screenshot or AI-generated"
},
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No pictures with <a href=\"https://i.imgur.com/QoI5LKt.jpg\" target=\"_blank\">added or superimposed digital text, emojis, or “MS Paint”-like scribbles</a>.</strong></p>\n\n<p>“Added text” is extended to all drawings, whether done digitally or by hand.</p>\n\n<p><a href=\"https://i.imgur.com/c8ZPW1F.jpg\" target=\"_blank\">Photoshopped</a> or otherwise manipulated images are allowed.</p>\n\n<p>While we do allow watermarks, they have to be inconspicuous.</p>\n\n<p>We also allow faces and anything else you may consider to be personal information to be blurred, boxed out, or ot…",
"markdown": "**No pictures with [added or superimposed digital text, emojis, or \"MS Paint\"-like scribbles](https://i.imgur.com/QoI5LKt.jpg).**\n\n\"Added text\" is extended to all drawings, whether done digitally or by hand.\n\n[Photoshopped](https://i.imgur.com/c8ZPW1F.jpg) or otherwise manipulated images are allowed. \n\nWhile we do allow watermarks, they have to be inconspicuous. \n\nWe also allow faces and anything else you may consider to be personal information to be blurred, boxed out, or otherwise covered.",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,17]],\"t\":\"No pictures with \"},{\"e\":\"link\",\"f\":[[1,0,72]],\"t\":\"added or superimposed digital text, emojis, or \\\"MS Paint\\\"-like scribbles\",\"u\":\"https://i.imgur.com/QoI5LKt.jpg\"},{\"e\":\"text\",\"f\":[[1,0,1]],\"t\":\".\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"\\\"Added text\\\" is extended to all drawings, whether done digitally or by hand.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"link\",\"t\":\"Photoshopped\",\"u\":\"https://i.imgur.com/c8ZPW1F.jpg\"},{\"e\":\"text\",\"t\":\" or otherwise manipulated images are allowed.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"While we do allow watermarks, they have to …",
"typeHint": null
},
"id": "77dcb30a-b5bc-440a-a6bd-819ba56532b3",
"name": "No digital elements or text.",
"priority": 1,
"violationReason": "No digital elements or text."
},
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No pornography or gore. NSFW comment links must be tagged. Posting gratuitous materials may result in an immediate and permanent ban.</strong></p>\n\n<p>Artistic nudity is allowed, but must be tagged with “NSFW.”</p>\n\n<p>If genitals are displayed within a photograph, it will generally be treated as pornography.</p>\n\n<p>No pictures which include excessive blood or inside-the-flesh details made visible via any form of laceration.</p>\n",
"markdown": "**No pornography or gore. NSFW comment links must be tagged. Posting gratuitous materials may result in an immediate and permanent ban.**\n\nArtistic nudity is allowed, but must be tagged with \"NSFW.\" \n\nIf genitals are displayed within a photograph, it will generally be treated as pornography. \n\nNo pictures which include excessive blood or inside-the-flesh details made visible via any form of laceration.",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,133]],\"t\":\"No pornography or gore. NSFW comment links must be tagged. Posting gratuitous materials may result in an immediate and permanent ban.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Artistic nudity is allowed, but must be tagged with \\\"NSFW.\\\"\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"If genitals are displayed within a photograph, it will generally be treated as pornography.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"No pictures which include excessive blood or inside-the-flesh details made visible via any form of laceration.\"}],\"e\":\"par\"}]}",
"typeHint": null
},
"id": "95a21374-a9e5-4e09-bdc8-be00018c3340",
"name": "No pornography or gore.",
"priority": 2,
"violationReason": "No pornography or gore."
},
"… 9 more items in the full response"
],
"styles": {
"__typename": "SubredditStyles",
"bannerBackgroundColor": "#5A74CC",
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=0e538062b7411be26edacd34e6c124e2e8b4527a",
"bannerBackgroundImagePosition": null,
"highlightColor": "#553200",
"icon": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png",
"mobileBannerImage": "https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=29c4dd4ffa5577473f43e876fa0c2aed84022651",
"postDownvoteCountColor": null,
"postDownvoteIconActive": null,
"postDownvoteIconInactive": null,
"postPlaceholderImage": null,
"postPlaceholderImagePosition": null,
"postUpvoteCountColor": null,
"postUpvoteIconActive": null,
"postUpvoteIconInactive": null,
"postVoteIcons": null,
"primaryColor": "#553200",
"sidebarWidgetBackgroundColor": null,
"sidebarWidgetHeaderColor": null
},
"widgets": {
"orderedSidebarWidgets": [
{
"__typename": "SubredditRulesWidget",
"display": "full",
"id": "widget_rules-2qh0u",
"shortName": "Subreddit Rules"
},
{
"__typename": "IdCardWidget",
"currentlyViewingText": "",
"id": "widget_id-card-2qh0u",
"shortName": "Community Details",
"subscribersText": "Pics"
},
{
"__typename": "ModeratorWidget",
"id": "widget_moderators-2qh0u",
"moderators": [
{
"flair": {
"template": {
"__typename": "FlairTemplate",
"allowableContent": "ALL",
"backgroundColor": null,
"id": null,
"isEditable": false,
"isModOnly": false,
"maxEmojis": 10,
"richtext": null,
"text": "Welsh Pork",
"textColor": "DARK",
"type": "text"
},
"text": "Welsh Pork"
},
"redditor": {
"name": "cwenham"
}
},
{
"flair": null,
"redditor": {
"name": "_BindersFullOfWomen_"
}
},
{
"flair": {
"template": {
"__typename": "FlairTemplate",
"allowableContent": "ALL",
"backgroundColor": null,
"id": null,
"isEditable": false,
"isModOnly": false,
"maxEmojis": 10,
"richtext": null,
"text": "🍿",
"textColor": "DARK",
"type": "text"
},
"text": "🍿"
},
"redditor": {
"name": "tragopanic"
}
},
"… 7 more items in the full response"
],
"shortName": null
}
],
"orderedTopbarWidgets": [
{
"__typename": "MenuWidget",
"id": "widget_10n9nqieach4y",
"isWikiShown": false,
"menus": [
{
"children": null,
"text": "Rules",
"url": "https://new.reddit.com/r/pics/wiki/index"
},
{
"children": null,
"text": "Title Guidelines",
"url": "https://www.reddit.com/r/pics/wiki/titles"
},
{
"children": null,
"text": "Civility Rules",
"url": "https://www.reddit.com/r/pics/wiki/rule8"
},
"… 1 more items in the full response"
],
"shortName": null
}
]
}
}
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns the rules, visual styles, sidebar widgets and moderator list for one subreddit. It needs the subreddit name in subreddit_name, such as pics. Set need_format to true to get cleaned and formatted data.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/subreddit-style" \
-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 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"subredditInfoByName": {
"__typename": "Subreddit",
"id": "t5_2qh0u",
"moderatorsInfo": {
"edges": [
{
"node": {
"id": "t2_2fpn"
}
}
]
},
"rules": [
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No <a href=\"https://i.imgur.com/AtDiqpR.jpg\" target=\"_blank\">screensh…",
"markdown": "**No [screenshots](https://i.imgur.com/AtDiqpR.jpg). No pictures wherein the onl…",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,3]],\"t\":\"No \"},{\"e\":\"link\",\"f\":[[1,0,11…",
"typeHint": null
},
"id": "0783e9fa-9cb5-4fe4-a705-3f0d77111199",
"name": "No screenshots, AI images, or pictures in which the focus is a screen.",
"priority": 0,
"violationReason": "Screenshot or AI-generated"
}
],
"styles": {
"__typename": "SubredditStyles",
"bannerBackgroundColor": "#5A74CC",
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7…",
"bannerBackgroundImagePosition": null,
"highlightColor": "#553200",
"icon": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png",
"mobileBannerImage": "https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.j…",
"postDownvoteCountColor": null,
"postDownvoteIconActive": null,
"postDownvoteIconInactive": null,
"postPlaceholderImage": null,
"postPlaceholderImagePosition": null
},
"widgets": {
"orderedSidebarWidgets": [
{
"__typename": "SubredditRulesWidget",
"display": "full",
"id": "widget_rules-2qh0u",
"shortName": "Subreddit Rules"
}
],
"orderedTopbarWidgets": [
{
"__typename": "MenuWidget",
"id": "widget_10n9nqieach4y",
"isWikiShown": false,
"menus": [
{
"children": null,
"text": "Rules",
"url": "https://new.reddit.com/r/pics/wiki/index"
}
],
"shortName": null
}
]
}
}
}
| Field | Meaning |
|---|---|
subredditInfoByName.id | Subreddit ID in the t5_ format. |
subredditInfoByName.rules[].name / subredditInfoByName.rules[].violationReason | Short rule title, and the reason text shown when a post breaks that rule. |
subredditInfoByName.rules[].content.markdown / subredditInfoByName.rules[].content.html | Full rule text in Markdown and in HTML. Long rules may carry links to example images. |
subredditInfoByName.rules[].priority | Rule order. The first rule has priority 0. |
subredditInfoByName.moderatorsInfo.edges[].node.id | Moderator user ID in the t2_ format. |
subredditInfoByName.styles.primaryColor / subredditInfoByName.styles.highlightColor / subredditInfoByName.styles.bannerBackgroundColor | Hex color codes for the community theme. |
subredditInfoByName.styles.icon / subredditInfoByName.styles.bannerBackgroundImage / subredditInfoByName.styles.mobileBannerImage | Image URLs for the community icon and the desktop and mobile banners. |
subredditInfoByName.widgets.orderedSidebarWidgets[].moderators[].redditor.name | Moderator username, listed in the moderator sidebar widget. |
subredditInfoByName.widgets.orderedSidebarWidgets[].moderators[].flair.text | Flair text shown next to a moderator. It is null when the moderator has no flair. |
subredditInfoByName.widgets.orderedTopbarWidgets[].menus[].text / subredditInfoByName.widgets.orderedTopbarWidgets[].menus[].url | Label and link of each top bar menu item, such as wiki pages. |
null when the subreddit has not set them.moderatorsInfo list holds IDs only.$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-style" \
-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
डिफ़ॉल्ट: "pics"
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"subredditInfoByName": {
"__typename": "Subreddit",
"id": "t5_2qh0u",
"moderatorsInfo": {
"edges": [
{
"node": {
"id": "t2_2fpn"
}
},
{
"node": {
"id": "t2_j0z5u"
}
},
{
"node": {
"id": "t2_itf5"
}
},
"… 22 more items in the full response"
]
},
"rules": [
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No <a href=\"https://i.imgur.com/AtDiqpR.jpg\" target=\"_blank\">screenshots</a>. No pictures wherein the only focus is a screen.</strong></p>\n\n<p>Images with <a href=\"https://i.imgur.com/mhmXSRq.jpg\" target=\"_blank\">unnecessary margins</a> of any color will be assumed to be screenshots.</p>\n\n<p>Pictures that include screens can be permitted, but said screens must not be the sole or primary focus of the photographs.</p>\n\n<p>We do not allow AI-generated images of any kind.</p>\n",
"markdown": "**No [screenshots](https://i.imgur.com/AtDiqpR.jpg). No pictures wherein the only focus is a screen.**\n\nImages with [unnecessary margins](https://i.imgur.com/mhmXSRq.jpg) of any color will be assumed to be screenshots. \n\nPictures that include screens can be permitted, but said screens must not be the sole or primary focus of the photographs.\n\nWe do not allow AI-generated images of any kind.",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,3]],\"t\":\"No \"},{\"e\":\"link\",\"f\":[[1,0,11]],\"t\":\"screenshots\",\"u\":\"https://i.imgur.com/AtDiqpR.jpg\"},{\"e\":\"text\",\"f\":[[1,0,49]],\"t\":\". No pictures wherein the only focus is a screen.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Images with \"},{\"e\":\"link\",\"t\":\"unnecessary margins\",\"u\":\"https://i.imgur.com/mhmXSRq.jpg\"},{\"e\":\"text\",\"t\":\" of any color will be assumed to be screenshots.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Pictures that include screens can be permitted, but said screens must not be the sole or primary focus of the photographs.\"}],\"e\":\"par\"},{\"c\":[{\"e…",
"typeHint": null
},
"id": "0783e9fa-9cb5-4fe4-a705-3f0d77111199",
"name": "No screenshots, AI images, or pictures in which the focus is a screen.",
"priority": 0,
"violationReason": "Screenshot or AI-generated"
},
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No pictures with <a href=\"https://i.imgur.com/QoI5LKt.jpg\" target=\"_blank\">added or superimposed digital text, emojis, or “MS Paint”-like scribbles</a>.</strong></p>\n\n<p>“Added text” is extended to all drawings, whether done digitally or by hand.</p>\n\n<p><a href=\"https://i.imgur.com/c8ZPW1F.jpg\" target=\"_blank\">Photoshopped</a> or otherwise manipulated images are allowed.</p>\n\n<p>While we do allow watermarks, they have to be inconspicuous.</p>\n\n<p>We also allow faces and anything else you may consider to be personal information to be blurred, boxed out, or ot…",
"markdown": "**No pictures with [added or superimposed digital text, emojis, or \"MS Paint\"-like scribbles](https://i.imgur.com/QoI5LKt.jpg).**\n\n\"Added text\" is extended to all drawings, whether done digitally or by hand.\n\n[Photoshopped](https://i.imgur.com/c8ZPW1F.jpg) or otherwise manipulated images are allowed. \n\nWhile we do allow watermarks, they have to be inconspicuous. \n\nWe also allow faces and anything else you may consider to be personal information to be blurred, boxed out, or otherwise covered.",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,17]],\"t\":\"No pictures with \"},{\"e\":\"link\",\"f\":[[1,0,72]],\"t\":\"added or superimposed digital text, emojis, or \\\"MS Paint\\\"-like scribbles\",\"u\":\"https://i.imgur.com/QoI5LKt.jpg\"},{\"e\":\"text\",\"f\":[[1,0,1]],\"t\":\".\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"\\\"Added text\\\" is extended to all drawings, whether done digitally or by hand.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"link\",\"t\":\"Photoshopped\",\"u\":\"https://i.imgur.com/c8ZPW1F.jpg\"},{\"e\":\"text\",\"t\":\" or otherwise manipulated images are allowed.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"While we do allow watermarks, they have to …",
"typeHint": null
},
"id": "77dcb30a-b5bc-440a-a6bd-819ba56532b3",
"name": "No digital elements or text.",
"priority": 1,
"violationReason": "No digital elements or text."
},
{
"__typename": "SubredditRule",
"content": {
"__typename": "Content",
"html": "<p><strong>No pornography or gore. NSFW comment links must be tagged. Posting gratuitous materials may result in an immediate and permanent ban.</strong></p>\n\n<p>Artistic nudity is allowed, but must be tagged with “NSFW.”</p>\n\n<p>If genitals are displayed within a photograph, it will generally be treated as pornography.</p>\n\n<p>No pictures which include excessive blood or inside-the-flesh details made visible via any form of laceration.</p>\n",
"markdown": "**No pornography or gore. NSFW comment links must be tagged. Posting gratuitous materials may result in an immediate and permanent ban.**\n\nArtistic nudity is allowed, but must be tagged with \"NSFW.\" \n\nIf genitals are displayed within a photograph, it will generally be treated as pornography. \n\nNo pictures which include excessive blood or inside-the-flesh details made visible via any form of laceration.",
"richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"f\":[[1,0,133]],\"t\":\"No pornography or gore. NSFW comment links must be tagged. Posting gratuitous materials may result in an immediate and permanent ban.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"Artistic nudity is allowed, but must be tagged with \\\"NSFW.\\\"\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"If genitals are displayed within a photograph, it will generally be treated as pornography.\"}],\"e\":\"par\"},{\"c\":[{\"e\":\"text\",\"t\":\"No pictures which include excessive blood or inside-the-flesh details made visible via any form of laceration.\"}],\"e\":\"par\"}]}",
"typeHint": null
},
"id": "95a21374-a9e5-4e09-bdc8-be00018c3340",
"name": "No pornography or gore.",
"priority": 2,
"violationReason": "No pornography or gore."
},
"… 9 more items in the full response"
],
"styles": {
"__typename": "SubredditStyles",
"bannerBackgroundColor": "#5A74CC",
"bannerBackgroundImage": "https://styles.redditmedia.com/t5_2qh0u/styles/bannerBackgroundImage_if1cbgj4mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=0e538062b7411be26edacd34e6c124e2e8b4527a",
"bannerBackgroundImagePosition": null,
"highlightColor": "#553200",
"icon": "https://b.thumbs.redditmedia.com/VZX_KQLnI1DPhlEZ07bIcLzwR1Win808RIt7zm49VIQ.png",
"mobileBannerImage": "https://styles.redditmedia.com/t5_2qh0u/styles/mobileBannerImage_b4mne1y5mc7b1.jpg?frame=1&auto=webp&format=pjpg&s=29c4dd4ffa5577473f43e876fa0c2aed84022651",
"postDownvoteCountColor": null,
"postDownvoteIconActive": null,
"postDownvoteIconInactive": null,
"postPlaceholderImage": null,
"postPlaceholderImagePosition": null,
"postUpvoteCountColor": null,
"postUpvoteIconActive": null,
"postUpvoteIconInactive": null,
"postVoteIcons": null,
"primaryColor": "#553200",
"sidebarWidgetBackgroundColor": null,
"sidebarWidgetHeaderColor": null
},
"widgets": {
"orderedSidebarWidgets": [
{
"__typename": "SubredditRulesWidget",
"display": "full",
"id": "widget_rules-2qh0u",
"shortName": "Subreddit Rules"
},
{
"__typename": "IdCardWidget",
"currentlyViewingText": "",
"id": "widget_id-card-2qh0u",
"shortName": "Community Details",
"subscribersText": "Pics"
},
{
"__typename": "ModeratorWidget",
"id": "widget_moderators-2qh0u",
"moderators": [
{
"flair": {
"template": {
"__typename": "FlairTemplate",
"allowableContent": "ALL",
"backgroundColor": null,
"id": null,
"isEditable": false,
"isModOnly": false,
"maxEmojis": 10,
"richtext": null,
"text": "Welsh Pork",
"textColor": "DARK",
"type": "text"
},
"text": "Welsh Pork"
},
"redditor": {
"name": "cwenham"
}
},
{
"flair": null,
"redditor": {
"name": "_BindersFullOfWomen_"
}
},
{
"flair": {
"template": {
"__typename": "FlairTemplate",
"allowableContent": "ALL",
"backgroundColor": null,
"id": null,
"isEditable": false,
"isModOnly": false,
"maxEmojis": 10,
"richtext": null,
"text": "🍿",
"textColor": "DARK",
"type": "text"
},
"text": "🍿"
},
"redditor": {
"name": "tragopanic"
}
},
"… 7 more items in the full response"
],
"shortName": null
}
],
"orderedTopbarWidgets": [
{
"__typename": "MenuWidget",
"id": "widget_10n9nqieach4y",
"isWikiShown": false,
"menus": [
{
"children": null,
"text": "Rules",
"url": "https://new.reddit.com/r/pics/wiki/index"
},
{
"children": null,
"text": "Title Guidelines",
"url": "https://www.reddit.com/r/pics/wiki/titles"
},
{
"children": null,
"text": "Civility Rules",
"url": "https://www.reddit.com/r/pics/wiki/rule8"
},
"… 1 more items in the full response"
],
"shortName": null
}
]
}
}
}
}
]और जानें
| 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-style पर 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 Subreddit Rules and Style Info SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।