Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Reddit App Subreddit Settings

API dokümanları
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.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 1 isteğe bağlı

Oynatma Alanı

Girdi
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
ÇıktıÖrnek
Yanıtoutputs · 1.2 KB · 48 satır
[
  {
    "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
        }
      }
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON
Reddit$0.001 çağrı başınaJSON

Kılavuzlar:Best Reddit API in 2026: Pricing Compared

Sorular

SSS

Reddit App Subreddit Settings API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Reddit App Subreddit Settings API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Reddit App Subreddit Settings API'si hangi parametreleri kabul eder?

Gerekli: subreddit_id (string). İsteğe bağlı: need_format (boolean). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Reddit App Subreddit Settings API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Reddit geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Reddit App Subreddit Settings, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Reddit API erişimi için ayrıca başvuru yapmanız gerekmez.