> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取Reddit APP版块设置

> 获取指定版块的设置信息,包括发帖规则、用户标签设置、审核设置等配置信息。

 返回：
		指定版块的设置信息JSON数据,包含以下主要字段：
- subredditType: 版块类型(public/private/restricted)
- submissionType: 允许提交的内容类型(any/link/self)
- allowImages: 是否允许图片
- allowVideos: 是否允许视频
- allowPolls: 是否允许投票
- suggestedCommentSort: 建议的评论排序方式
- spoilersEnabled: 是否启用剧透标记
- allowedPostTypes: 允许的帖子类型配置
- contentOptions: 内容选项设置
- flairSettings: 用户/帖子标签设置

🪙
1 credits每次请求

## 复制给 AI

🤖 为什么还要自己写代码？让 AI 来处理重复工作。点击按钮即可复制一段整理好的提示词，用于 ChatGPT、Claude 或你常用的 AI 助手。

✨
复制给 AI


## OpenAPI

````yaml /zh/reddit.zh.openapi.json get /v1/reddit/fetch_subreddit_settings
openapi: 3.0.1
info:
  title: Reddit API 中文文档
  description: Reddit API 的中文参考文档，包含接口用途、参数说明、响应状态和示例结构。
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security:
  - JWT Bearer: []
tags:
  - name: Reddit 帖子
  - name: Reddit 用户与社区
paths:
  /v1/reddit/fetch_subreddit_settings:
    get:
      tags:
        - Reddit 用户与社区
      summary: 获取Reddit APP版块设置
      description: "获取指定版块的设置信息,包括发帖规则、用户标签设置、审核设置等配置信息。\n\n 返回：\n\t\t指定版块的设置信息JSON数据,包含以下主要字段：\n- subredditType: 版块类型(public/private/restricted)\n- submissionType: 允许提交的内容类型(any/link/self)\n- allowImages: 是否允许图片\n- allowVideos: 是否允许视频\n- allowPolls: 是否允许投票\n- suggestedCommentSort: 建议的评论排序方式\n- spoilersEnabled: 是否启用剧透标记\n- allowedPostTypes: 允许的帖子类型配置\n- contentOptions: 内容选项设置\n- flairSettings: 用户/帖子标签设置"
      parameters:
        - name: subreddit_id
          in: query
          description: >-
            版块ID，格式如：t5_xxxx（t5_开头的唯一标识符）。例如：t5_2qh0u(可从fetch_subreddit_info接口获取版块ID)
          required: true
          example: t5_2qh0u
          schema:
            type: string
            example: t5_2qh0u
        - name: need_format
          in: query
          description: 是否需要清洗数据
          required: false
          example: 'false'
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  subredditInfoById:
                    __typename: Subreddit
                    id: t5_2qh0u
                    isTopListingAllowed: true
                    isDiscoveryAllowed: true
                    language: en
                    allAllowedPostTypes:
                      - LINK
                      - IMAGE
                      - GALLERY
                    postFlairSettings:
                      isEnabled: true
                      isSelfAssignable: false
                    authorFlairSettings:
                      isEnabled: true
                      isSelfAssignable: false
                    isArchivePostsEnabled: true
                    countrySiteSettings:
                      countryCode: ''
                      languageCode: ''
                      isCountrySiteEditable: true
                      modMigrationAt: 2023-07-03T16:04:00.000000+0000
                    commentContributionSettings:
                      allowedMediaTypes:
                        - GIPHY
                        - STATIC
                        - EXPRESSION
                    isSubredditChannelsEnabled:
                      isChatEnabled: false
                      isPostEnabled: true
                    amaSettings:
                      postPermissions: 'OFF'
                requestId: 9c6d0f76-2b86-4a13-afc9-5f734e4961a5
          headers: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      deprecated: false
      security:
        - JWT Bearer: []
components:
  responses:
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            example:
              code: 400
              data: null
              message: 'Missing required parameter: handle'
    '401':
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            example:
              code: 401
              data: null
              message: apiKey is null
    '402':
      description: Payment Required
      content:
        application/json:
          schema:
            type: object
            example:
              code: 402
              data: null
              message: apiKey quota is not enough
    '429':
      description: Too Many Requests
      content:
        application/json:
          schema:
            type: object
            example:
              code: 429
              data: null
              message: qps limit exceeded
    '500':
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            example:
              code: 500
              data: null
              message: Internal server error
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.