Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Reddit App Subreddit Settings

Documentazione API
https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings

Returns settings and configuration details for a specified Reddit subreddit, including posting rules, flair settings, and moderation configurations.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 1 opzionali

Playground

Input
Subreddit ID with format starting with t5_, e.g., "t5_2qh0u" (can be obtained from the fetch_subreddit_info endpoint)
Whether to clean and format the data
OutputEsempio
Rispostaoutputs · 1.2 KB · 48 righe
[
  {
    "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
        }
      }
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

Reddit App Subreddit Settings API

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_.

Use cases

  • Check which post types (LINK, IMAGE, GALLERY) a subreddit accepts before you build a posting tool.
  • Find out whether post flair and user flair are turned on and whether users can assign them to themselves.
  • Compare discovery and top listing settings across a list of subreddits.
  • Check which comment media types a community allows, such as GIPHY or static images.

Request

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.

Parameters

NameTypeRequiredDescription
subreddit_idstringYesSubreddit ID with format starting with t5_, e.g., "t5_2qh0u" (can be obtained from the fetch_subreddit_info endpoint)
need_formatbooleanNoWhether to clean and format the data

Example response

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"
  }
}

Response fields

FieldMeaning
subredditInfoById.idThe 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.isEnabledWhether post flair and author flair are enabled in this subreddit.
subredditInfoById.postFlairSettings.isSelfAssignable / subredditInfoById.authorFlairSettings.isSelfAssignableWhether 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.isPostEnabledWhether chat channels and post channels are enabled for the subreddit.
subredditInfoById.isDiscoveryAllowed / subredditInfoById.isTopListingAllowedWhether the subreddit may appear in discovery and in top listings.
subredditInfoById.isArchivePostsEnabledWhether archiving of posts is enabled.
subredditInfoById.languageThe language code set for the subreddit, such as en.
subredditInfoById.amaSettings.postPermissionsThe AMA post permission setting. The value OFF is returned in this example.

Notes

  • Get the subreddit_id from the Reddit App Subreddit Info API. The ID starts with t5_, for example t5_2qh0u.
  • Set need_format to true to clean and format the data. The default is false.
  • For the rules and style of a subreddit, call Reddit Subreddit Rules and Style Info.
  • countrySiteSettings.modMigrationAt is an ISO 8601 timestamp in UTC.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Reddit$0.001 per chiamataJSON
Reddit$0.001 per chiamataJSON
Reddit$0.001 per chiamataJSON
Reddit$0.001 per chiamataJSON
Reddit$0.001 per chiamataJSON
Reddit$0.001 per chiamataJSON

Guide:Best Reddit API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Reddit App Subreddit Settings?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Reddit App Subreddit Settings?

$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Reddit App Subreddit Settings?

Richiesti: subreddit_id (string). Facoltativi: need_format (boolean). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Reddit App Subreddit Settings?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Reddit?

No. Reddit App Subreddit Settings funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Reddit.