subreddit_idstringerforderlich
Subreddit ID with format starting with t5_, e.g., "t5_2qh0u" (can be obtained from the fetch_subreddit_info endpoint)
https://api.sandbase.ai/v1/api/reddit/app/subreddit-settingsReturns settings and configuration details for a specified Reddit subreddit, including posting rules, flair settings, and moderation configurations.
[
{
"data": {
"subredditInfoById": {
"__typename": "Subreddit",
"allAllowedPostTypes": [
"LINK",
"IMAGE",
"GALLERY"
],
"amaSettings": {
"postPermissions": "OFF"
},
"authorFlairSettings": {
"isEnabled": true,
"isSelfAssignable": false
},
"commentContributionSettings": {
"allowedMediaTypes": [
"GIPHY",
"STATIC",
"EXPRESSION",
"… 1 more items in the full response"
]
},
"countrySiteSettings": {
"countryCode": "",
"isCountrySiteEditable": true,
"languageCode": "",
"modMigrationAt": "2023-07-03T16:04:00.000000+0000"
},
"id": "t5_2qh0u",
"isArchivePostsEnabled": true,
"isDiscoveryAllowed": true,
"isSubredditChannelsEnabled": {
"isChatEnabled": false,
"isPostEnabled": true
},
"isTopListingAllowed": true,
"language": "en",
"postFlairSettings": {
"isEnabled": true,
"isSelfAssignable": false
}
}
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns settings for one Reddit subreddit, such as allowed post types, flair settings, comment media types and channel options. It needs a subreddit_id that starts with t5_.
LINK, IMAGE, GALLERY) a subreddit accepts before you build a posting tool.curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subreddit_id": "t5_2qh0u"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
subreddit_id | string | Yes | Subreddit ID with format starting with t5_, e.g., "t5_2qh0u" (can be obtained from the fetch_subreddit_info endpoint) |
need_format | boolean | No | Whether to clean and format the data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"subredditInfoById": {
"__typename": "Subreddit",
"allAllowedPostTypes": [
"LINK"
],
"amaSettings": {
"postPermissions": "OFF"
},
"authorFlairSettings": {
"isEnabled": true,
"isSelfAssignable": false
},
"commentContributionSettings": {
"allowedMediaTypes": [
"GIPHY"
]
},
"countrySiteSettings": {
"countryCode": "",
"isCountrySiteEditable": true,
"languageCode": "",
"modMigrationAt": "2023-07-03T16:04:00.000000+0000"
},
"id": "t5_2qh0u",
"isArchivePostsEnabled": true,
"isDiscoveryAllowed": true,
"isSubredditChannelsEnabled": {
"isChatEnabled": false,
"isPostEnabled": true
},
"isTopListingAllowed": true,
"language": "en"
}
}
| Field | Meaning |
|---|---|
subredditInfoById.id | The subreddit ID, in the same t5_ format as the input. |
subredditInfoById.allAllowedPostTypes[] | The post types the subreddit accepts, such as LINK, IMAGE and GALLERY. |
subredditInfoById.postFlairSettings.isEnabled / subredditInfoById.authorFlairSettings.isEnabled | Whether post flair and author flair are enabled in this subreddit. |
subredditInfoById.postFlairSettings.isSelfAssignable / subredditInfoById.authorFlairSettings.isSelfAssignable | Whether users can assign the flair to themselves. |
subredditInfoById.commentContributionSettings.allowedMediaTypes[] | The media types allowed in comments, such as GIPHY, STATIC and EXPRESSION. |
subredditInfoById.isSubredditChannelsEnabled.isChatEnabled / subredditInfoById.isSubredditChannelsEnabled.isPostEnabled | Whether chat channels and post channels are enabled for the subreddit. |
subredditInfoById.isDiscoveryAllowed / subredditInfoById.isTopListingAllowed | Whether the subreddit may appear in discovery and in top listings. |
subredditInfoById.isArchivePostsEnabled | Whether archiving of posts is enabled. |
subredditInfoById.language | The language code set for the subreddit, such as en. |
subredditInfoById.amaSettings.postPermissions | The AMA post permission setting. The value OFF is returned in this example. |
subreddit_id from the Reddit App Subreddit Info API. The ID starts with t5_, for example t5_2qh0u.need_format to true to clean and format the data. The default is false.countrySiteSettings.modMigrationAt is an ISO 8601 timestamp in UTC.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"need_format": false,
"subreddit_id": "t5_2qh0u"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
subreddit_idstringerforderlichSubreddit ID with format starting with t5_, e.g., "t5_2qh0u" (can be obtained from the fetch_subreddit_info endpoint)
need_formatbooleanWhether to clean and format the data
Standard: false
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"subredditInfoById": {
"__typename": "Subreddit",
"allAllowedPostTypes": [
"LINK",
"IMAGE",
"GALLERY"
],
"amaSettings": {
"postPermissions": "OFF"
},
"authorFlairSettings": {
"isEnabled": true,
"isSelfAssignable": false
},
"commentContributionSettings": {
"allowedMediaTypes": [
"GIPHY",
"STATIC",
"EXPRESSION",
"… 1 more items in the full response"
]
},
"countrySiteSettings": {
"countryCode": "",
"isCountrySiteEditable": true,
"languageCode": "",
"modMigrationAt": "2023-07-03T16:04:00.000000+0000"
},
"id": "t5_2qh0u",
"isArchivePostsEnabled": true,
"isDiscoveryAllowed": true,
"isSubredditChannelsEnabled": {
"isChatEnabled": false,
"isPostEnabled": true
},
"isTopListingAllowed": true,
"language": "en",
"postFlairSettings": {
"isEnabled": true,
"isSelfAssignable": false
}
}
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Reddit App Subreddit SettingsDiese API Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Anleitungen:Best Reddit API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: subreddit_id (string). Optional: need_format (boolean). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Reddit App Subreddit Settings läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Reddit API beantragen.