Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Reddit App Subreddit Settings

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

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 1 opsional

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
OutputContoh
Responsoutputs · 1.2 KB · 48 baris
[
  {
    "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
        }
      }
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke 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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON

Panduan:Best Reddit API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Reddit App Subreddit Settings?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/reddit/app/subreddit-settings dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Reddit App Subreddit Settings?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Reddit App Subreddit Settings?

Wajib: subreddit_id (string). Opsional: need_format (boolean). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Reddit App Subreddit Settings?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Reddit?

Tidak. Reddit App Subreddit Settings berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Reddit secara terpisah.