> ## 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社区亮点

> 获取指定社区的精选亮点内容,包括热门帖子和重要公告。

🪙
1 credits每次请求

## 复制给 AI

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

✨
复制给 AI


## OpenAPI

````yaml /zh/reddit.zh.openapi.json get /v1/reddit/fetch_community_highlights
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_community_highlights:
    get:
      tags:
        - Reddit 帖子
      summary: 获取Reddit APP社区亮点
      description: 获取指定社区的精选亮点内容,包括热门帖子和重要公告。
      parameters:
        - name: subreddit_id
          in: query
          description: 版块ID（需要添加类型前缀，格式如：t5_XXXXX）。可从fetch_subreddit_info接口获取
          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
                    highlightedPosts: null
                    id: t5_2qh0u
                    name: pics
                    modPermissions: null
                requestId: 2fef0dae-a239-45ea-a9b5-163028a7b004
        '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.