Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Reddit App Subreddit Settings

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.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 1 件

プレイグラウンド

入力
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
出力例
レスポンスoutputs · 1.2 KB · 48 行
[
  {
    "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
        }
      }
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

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.

さらに探索

関連 APIs

すべての APIs
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

ガイド:Best Reddit API in 2026: Pricing Compared

質問

FAQ

Reddit App Subreddit Settings API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Reddit App Subreddit Settings API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Reddit App Subreddit Settings API はどのパラメータを受け付けますか?

必須: subreddit_id (string)。 任意: need_format (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Reddit App Subreddit Settings API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Reddit の開発者アカウントまたは API key は必要ですか?

いいえ。Reddit App Subreddit Settings は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Reddit の API アクセスを別途申請する必要はありません。