> ## 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帖子评论

> 获取指定帖子下的评论。

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">1 credit</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">每次请求</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 让 AI 帮你写调用代码</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">点击按钮复制一段结构化提示词，可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。</p>
  </div>

  <div className="mt-4">
    <button type="button" className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50" onClick={() => navigator.clipboard.writeText("我想调用 KeyAPI 接口：GET https://api.keyapi.ai/v1/reddit/fetch_post_comments\n\n请帮我编写调用代码，并包含必要的错误处理、参数校验和响应处理逻辑。\n\n接口信息：\n\nEndpoint: GET https://api.keyapi.ai/v1/reddit/fetch_post_comments\n\nDescription: Reddit 的「帖子评论」接口用于查询评论内容、作者信息、互动指标和分页信息。常用必填参数包括 post_id。\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- post_id (Required): 帖子 ID. Example: t3_1ojnvca\n- sort_type (Optional): sort_type 参数. Example: CONFIDENCE\n- after (Optional): after 参数\n- need_format (Optional): need_format 参数. Example: false\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"postInfoById\": {\n      \"__typename\": \"SubredditPost\",\n      \"id\": \"t3_1ojnvca\",\n      \"title\": \"Official photo of Trump-Xi meeting in Busan, South Korea\",\n      \"subreddit\": {\n        \"id\": \"t5_2qh0u\",\n        \"name\": \"pics\",\n        \"prefixedName\": \"r/pics\",\n        \"moderation\": {\n          \"isShowCommentRemovalReasonPrompt\": true\n        },\n        \"allowedMediaInComments\": [\n          \"GIPHY\",\n          \"STATIC\",\n          \"EXPRESSION\"\n        ],\n        \"isQuarantined\": false,\n        \"tippingStatus\": null\n      },\n      \"commentForest\": {\n        \"__typename\": \"CommentForest\",\n        \"trees\": [\n          {\n            \"depth\": 0,\n            \"more\": null,\n            \"parentId\": null,\n            \"node\": {\n              \"__typename\": \"Comment\",\n              \"id\": \"t1_nm4g5sx\",\n              \"createdAt\": \"2025-10-30T02:17:24.998000+0000\",\n              \"editedAt\": null,\n              \"isAdminTakedown\": false,\n              \"isRemoved\": false,\n              \"removedByCategory\": null,\n              \"isLocked\": false,\n              \"isGildable\": true,\n              \"isInitiallyCollapsed\": true,\n              \"initiallyCollapsedReason\": \"STICKY_AUTOMOD\",\n              \"content\": {\n                \"__typename\": \"Content\",\n                \"markdown\": \"It looks like this post is about Politics. Various methods of filtering out content relating to Politics can be found [here](https://www.reddit.com/r/pics/wiki/v2/resources/filter/politics).\\n\\n*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/pics) if you have any questions or concerns.*\",\n                \"preview\": \"It looks like this post is about Politics. Various methods of filtering out content relating to Politics can be found here. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.\",\n                \"richtext\": \"{\\\"document\\\":[{\\\"c\\\":[{\\\"e\\\":\\\"text\\\",\\\"t\\\":\\\"It looks like this post is about Politics. Various methods of filtering out content relating to Politics can be found \\\"},{\\\"e\\\":\\\"link\\\",\\\"t\\\":\\\"here\\\",\\\"u\\\":\\\"https://www.reddit.com/r/pics/wiki/v2/resources/filter/politics\\\"},{\\\"e\\\":\\\"text\\\",\\\"t\\\":\\\".\\\"}],\\\"e\\\":\\\"par\\\"},{\\\"c\\\":[{\\\"e\\\":\\\"text\\\",\\\"f\\\":[[2,0,64]],\\\"t\\\":\\\"I am a bot, and this action was performed automatically. Please \\\"},{\\\"e\\\":\\\"link\\\",\\\"f\\\":[[2,0,40]],\\\"t\\\":\\\"contact the moderators of this subreddit\\\",\\\"u\\\":\\\"/message/compose/?to=/r/pics\\\"},{\\\"e\\\":\\\"text\\\",\\\"f\\\":[[2,0,39]],\\\"t\\\":\\\" if you have any questions or concerns.\\\"}],\\\"e\\\":\\\"par\\\"}]}\",\n                \"typeHint\": \"TEXT\",\n                \"richtextMedia\": [],\n                \"translationInfo\": {\n                  \"isTranslated\": false,\n                  \"translatedLanguage\": null\n                }\n              },\n              \"isTranslatable\": false,\n              \"languageCode\": \"en\",\n              \"authorInfo\": {\n                \"__typename\": \"Redditor\",\n                \"id\": \"t2_6l4z3\",\n                \"name\": \"AutoModerator\",\n                \"isBlocked\": false,\n                \"isCakeDayNow\": false,\n                \"newIcon\": {\n                  \"__typename\": \"MediaSource\",\n                  \"url\": \"https://styles.redditmedia.com/t5_1yz875/styles/profileIcon_klqlly9fc4l41.png?s=354f9fde85e0b4ddf82981f04133d48d856ca7d8\",\n                  \"dimensions\": {\n                    \"width\": 256,\n                    \"height\": 256\n                  }\n                },\n                \"iconSmall\": {\n                  \"__typename\": \"MediaSource\",\n                  \"url\": \"https://styles.redditmedia.com/t5_1yz875/styles/profileIcon_klqlly9fc4l41.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=75d82dd0dc0f698f4c89f5b2b88dc2027d57c0fa\",\n                  \"dimensions\": {\n                    \"width\": 50,\n                    \"height\": 50\n                  }\n                },\n                \"snoovatarIcon\": null,\n                \"profile\": {\n                  \"isNsfw\": false\n                },\n                \"accountType\": \"USER\",\n                \"isPremiumAvatarTreatment\": true\n              },\n              \"authorCommunityBadge\": null,\n              \"score\": 1,\n              \"voteState\": \"NONE\",\n              \"authorFlair\": null,\n              \"isSaved\": false,\n              \"isStickied\": true,\n              \"isScoreHidden\": true,\n              \"isArchived\": false,\n              \"distinguishedAs\": \"MODERATOR\",\n              \"permalink\": \"/r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4g5sx/\",\n              \"modContentDiscussion\": null,\n              \"moderationInfo\": null,\n              \"isCommercialCommunication\": false,\n              \"commentStats\": null\n            },\n            \"childCount\": 0\n          },\n          {\n            \"depth\": 0,\n            \"more\": null,\n            \"parentId\": null,\n            \"node\": {\n              \"__typename\": \"Comment\",\n              \"id\": \"t1_nm4jkk6\",\n              \"createdAt\": \"2025-10-30T02:37:01.531000+0000\",\n              \"editedAt\": null,\n              \"isAdminTakedown\": false,\n              \"isRemoved\": false,\n              \"removedByCategory\": null,\n              \"isLocked\": false,\n              \"isGildable\": true,\n              \"isInitiallyCollapsed\": false,\n              \"initiallyCollapsedReason\": null,\n              \"content\": {\n                \"__typename\": \"Content\",\n                \"markdown\": \"This bitch is melting\",\n                \"preview\": \"This bitch is melting\",\n                \"richtext\": \"{\\\"document\\\":[{\\\"c\\\":[{\\\"e\\\":\\\"text\\\",\\\"t\\\":\\\"This bitch is melting\\\"}],\\\"e\\\":\\\"par\\\"}]}\",\n                \"typeHint\": \"TEXT\",\n                \"richtextMedia\": [],\n                \"translationInfo\": {\n                  \"isTranslated\": false,\n                  \"translatedLanguage\": null\n                }\n              },\n              \"isTranslatable\": false,\n              \"languageCode\": \"en\",\n              \"authorInfo\": {\n                \"__typename\": \"Redditor\",\n                \"id\": \"t2_1m3v2g9pqs\",\n                \"name\": \"eddietheeddie\",\n                \"isBlocked\": false,\n                \"isCakeDayNow\": false,\n                \"newIcon\": {\n                  \"__typename\": \"MediaSource\",\n                  \"url\": \"https://preview.redd.it/snoovatar/avatars/bba140a1-10e6-4ac5-9ab3-51503d3527d2-headshot.png?auto=webp&s=25d7ce6eecdbb87b0853fb8fe14d6d6c3a4df9f5\",\n                  \"dimensions\": {\n                    \"width\": 256,\n                    \"height\": 256\n                  }\n                },\n                \"iconSmall\": {\n                  \"__typename\": \"MediaSource\",\n                  \"url\": \"https://preview.redd.it/snoovatar/avatars/bba140a1-10e6-4ac5-9ab3-51503d3527d2-headshot.png?width=50&height=50&auto=webp&s=c72fcb1dbd61209983461bee73e29b101cee84aa\",\n                  \"dimensions\": {\n                    \"width\": 50,\n                    \"height\": 50\n                  }\n                },\n                \"snoovatarIcon\": {\n                  \"__typename\": \"MediaSource\",\n                  \"url\": \"https://i.redd.it/snoovatar/avatars/bba140a1-10e6-4ac5-9ab3-51503d3527d2.png\",\n                  \"dimensions\": {\n                    \"width\": 380,\n                    \"height\": 600\n                  }\n                },\n                \"profile\": {\n                  \"isNsfw\": false\n                },\n                \"accountType\": \"USER\",\n                \"isPremiumAvatarTreatment\": false\n              },\n              \"authorCommunityBadge\": null,\n              \"score\": 4698,\n              \"voteState\": \"NONE\",\n              \"authorFlair\": null,\n              \"isSaved\": false,\n              \"isStickied\": false,\n              \"isScoreHidden\": false,\n              \"isArchived\": false,\n              \"distinguishedAs\": null,\n              \"permalink\": \"/r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4jkk6/\",\n              \"modContentDiscussion\": null,\n              \"moderationInfo\": null,\n              \"isCommercialCommunication\": false,\n              \"commentStats\": null\n            },\n            \"childCount\": 11\n          },\n          {\n            \"depth\": 1,\n            \"more\": null,\n            \"parentId\": \"t1_nm4jkk6\",\n            \"node\": {\n              \"__typename\": \"Comment\",\n              \"id\": \"t1_nm4ugib\",\n              \"createdAt\": \"2025-10-30T03:46:42.342000+0000\",\n              \"editedAt\": \"2025-10-31T04:59:45.702000+0000\",\n              \"isAdminTakedown\": false,\n              \"isRemoved\": false,\n              \"removedByCategory\": null,\n              \"isLocked\": false,\n              \"isGildable\": true,\n              \"isInitiallyCollapsed\": false,\n              \"initiallyCollapsedReason\": null,\n              \"content\": {\n                \"__typename\": \"Content\",\n                \"markdown\": \"![gif](giphy|GCkHxV0XSKjf2)\\n\\nHoly Shrimp over 195k people saw this gif/comment????\",\n                \"preview\": \"Holy Shrimp over 195k people saw this gif/comment????\",\n                \"richtext\": \"{\\\"document\\\":[{\\\"c\\\":[{\\\"e\\\":\\\"gif\\\",\\\"id\\\":\\\"giphy|GCkHxV0XSKjf2\\\"}],\\\"e\\\":\\\"par\\\"},{\\\"c\\\":[{\\\"e\\\":\\\"text\\\",\\\"t\\\":\\\"Holy Shrimp over 195k people saw this gif/comment????\\\"}],\\\"e\\\":\\\"par\\\"}]}\",\n                \"typeHint\": \"RTJSON\",\n                \"richtextMedia\": [\n                  {\n                    \"__typename\": \"ImageAsset\",\n                    \"id\": \"giphy|GCkHxV0XSKjf2\",\n                    \"userId\": null,\n                    \"mimetype\": \"image/gif\",\n                    \"width\": 266,\n                    \"height\": 200,\n                    \"status\": \"VALID\",\n                    \"url\": \"https://external-preview.redd.it/1fRn1DPbNnOwcehc-7mq9oaWrAznVgLKbIwFJKjz_W8.gif?auto=webp&s=07bce103588c17b8b752ac33753d4d0238e43e3f\",\n                    \"small\": {\n                      \"__typename\": \"MediaSource\",\n                      \"url\": \"https://external-preview.redd.it/1fRn1DPbNnOwcehc-7mq9oaWrAznVgLKbIwFJKjz_W8.gif?width=108&auto=webp&s=5ad5c105acfdf675b80a342b3f0849761acf7531\",\n                      \"dimensions\": {\n                        \"width\": 108,\n                        \"height\": 81\n                      }\n                    },\n                    \"medium\": {\n                      \"__typename\": \"MediaSource\",\n                      \"url\": \"https://external-preview.redd.it/1fRn1DPbNnOwcehc-7mq9oaWrAznVgLKbIwFJKjz_W8.gif?width=216&auto=webp&s=6f29b3d4e5ec0ffc53f514215687da5d81d9ecd2\",\n                      \"dimensions\": {\n                        \"width\": 216,\n                        \"height\": 162\n                      }\n                    },\n                    \"large\": null,\n                    \"xlarge\": null,\n                    \"xxlarge\": null,\n                    \"xxxlarge\": null,\n                    \"obfuscated_small\": null,\n                    \"obfuscated_medium\": null,\n                    \"obfuscated_large\": null,\n                    \"obfuscated_xlarge\": null,\n                    \"obfuscated_xxlarge\": null,\n                    \"obfuscated_xxxlarge\": null\n                  }\n                ],\n                \"translationInfo\": {\n                  \"isTranslated\": false,\n                  \"translatedLanguage\": null\n                }\n              },\n              \"isTranslatable\": false,\n              \"languageCode\": \"en\",\n              \"authorInfo\": {\n                \"__typename\": \"Redditor\",\n                \"id\": \"t2_z1uiu\",\n                \"name\": \"SpeedBlitzX\",\n                \"isBlocked\": false,\n                \"isCakeDayNow\": false,\n                \"newIcon\": {\n                  \"__typename\": \"MediaSource\",\n                  \"url\": \"https://styles.redditmedia.com/t5_bs271/styles/profileIcon_snooec0133dd-3f43-4d38-8006-402176562809-headshot-f.png?s=f3690a4d467001d88e6a25c6ad42b8737e3ce22d\",\n                  \"dimensions\": {\n                    \"width\": 256,\n                    \"height\"\n... truncated ...\n\n请根据以上信息给出可直接运行的示例代码。")}>
      ✨ 复制给 AI
    </button>
  </div>
</div>


## OpenAPI

````yaml zh/reddit.zh.openapi.json GET /v1/reddit/fetch_post_comments
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: []
paths:
  /v1/reddit/fetch_post_comments:
    get:
      tags: []
      summary: 获取Reddit APP帖子评论
      description: 获取指定帖子下的评论。
      parameters:
        - name: post_id
          in: query
          description: 帖子ID，格式如： t3_XXXXXX
          required: true
          example: t3_1ojnvca
          schema:
            type: string
            example: t3_1ojnvca
        - name: sort_type
          in: query
          description: 排序方式，可选值:CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOM
          required: false
          example: CONFIDENCE
          schema:
            type: string
            default: CONFIDENCE
        - name: after
          in: query
          description: 分页参数，获取下一页时使用。在commentForest里的最后一个评论节点中
          required: false
          schema:
            type: string
        - 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:
                  postInfoById:
                    __typename: SubredditPost
                    id: t3_1ojnvca
                    title: Official photo of Trump-Xi meeting in Busan, South Korea
                    subreddit:
                      id: t5_2qh0u
                      name: pics
                      prefixedName: r/pics
                      moderation:
                        isShowCommentRemovalReasonPrompt: true
                      allowedMediaInComments:
                        - GIPHY
                        - STATIC
                        - EXPRESSION
                      isQuarantined: false
                      tippingStatus: null
                    commentForest:
                      __typename: CommentForest
                      trees:
                        - depth: 0
                          more: null
                          parentId: null
                          node:
                            __typename: Comment
                            id: t1_nm4g5sx
                            createdAt: 2025-10-30T02:17:24.998000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: true
                            initiallyCollapsedReason: STICKY_AUTOMOD
                            content:
                              __typename: Content
                              markdown: >-
                                It looks like this post is about Politics.
                                Various methods of filtering out content
                                relating to Politics can be found
                                [here](https://www.reddit.com/r/pics/wiki/v2/resources/filter/politics).


                                *I am a bot, and this action was performed
                                automatically. Please [contact the moderators of
                                this subreddit](/message/compose/?to=/r/pics) if
                                you have any questions or concerns.*
                              preview: >-
                                It looks like this post is about Politics.
                                Various methods of filtering out content
                                relating to Politics can be found here. I am a
                                bot, and this action was performed
                                automatically. Please contact the moderators of
                                this subreddit if you have any questions or
                                concerns.
                              richtext: >-
                                {"document":[{"c":[{"e":"text","t":"It looks
                                like this post is about Politics. Various
                                methods of filtering out content relating to
                                Politics can be found
                                "},{"e":"link","t":"here","u":"https://www.reddit.com/r/pics/wiki/v2/resources/filter/politics"},{"e":"text","t":"."}],"e":"par"},{"c":[{"e":"text","f":[[2,0,64]],"t":"I
                                am a bot, and this action was performed
                                automatically. Please
                                "},{"e":"link","f":[[2,0,40]],"t":"contact the
                                moderators of this
                                subreddit","u":"/message/compose/?to=/r/pics"},{"e":"text","f":[[2,0,39]],"t":"
                                if you have any questions or
                                concerns."}],"e":"par"}]}
                              typeHint: TEXT
                              richtextMedia: []
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: en
                            authorInfo:
                              __typename: Redditor
                              id: t2_6l4z3
                              name: AutoModerator
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://styles.redditmedia.com/t5_1yz875/styles/profileIcon_klqlly9fc4l41.png?s=354f9fde85e0b4ddf82981f04133d48d856ca7d8
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://styles.redditmedia.com/t5_1yz875/styles/profileIcon_klqlly9fc4l41.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=75d82dd0dc0f698f4c89f5b2b88dc2027d57c0fa
                                dimensions:
                                  width: 50
                                  height: 50
                              snoovatarIcon: null
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: true
                            authorCommunityBadge: null
                            score: 1
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: true
                            isScoreHidden: true
                            isArchived: false
                            distinguishedAs: MODERATOR
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4g5sx/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 0
                        - depth: 0
                          more: null
                          parentId: null
                          node:
                            __typename: Comment
                            id: t1_nm4jkk6
                            createdAt: 2025-10-30T02:37:01.531000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: This bitch is melting
                              preview: This bitch is melting
                              richtext: >-
                                {"document":[{"c":[{"e":"text","t":"This bitch
                                is melting"}],"e":"par"}]}
                              typeHint: TEXT
                              richtextMedia: []
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: en
                            authorInfo:
                              __typename: Redditor
                              id: t2_1m3v2g9pqs
                              name: eddietheeddie
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://preview.redd.it/snoovatar/avatars/bba140a1-10e6-4ac5-9ab3-51503d3527d2-headshot.png?auto=webp&s=25d7ce6eecdbb87b0853fb8fe14d6d6c3a4df9f5
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://preview.redd.it/snoovatar/avatars/bba140a1-10e6-4ac5-9ab3-51503d3527d2-headshot.png?width=50&height=50&auto=webp&s=c72fcb1dbd61209983461bee73e29b101cee84aa
                                dimensions:
                                  width: 50
                                  height: 50
                              snoovatarIcon:
                                __typename: MediaSource
                                url: >-
                                  https://i.redd.it/snoovatar/avatars/bba140a1-10e6-4ac5-9ab3-51503d3527d2.png
                                dimensions:
                                  width: 380
                                  height: 600
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 4698
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4jkk6/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 11
                        - depth: 1
                          more: null
                          parentId: t1_nm4jkk6
                          node:
                            __typename: Comment
                            id: t1_nm4ugib
                            createdAt: 2025-10-30T03:46:42.342000+0000
                            editedAt: 2025-10-31T04:59:45.702000+0000
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: >-
                                ![gif](giphy|GCkHxV0XSKjf2)


                                Holy Shrimp over 195k people saw this
                                gif/comment????
                              preview: >-
                                Holy Shrimp over 195k people saw this
                                gif/comment????
                              richtext: >-
                                {"document":[{"c":[{"e":"gif","id":"giphy|GCkHxV0XSKjf2"}],"e":"par"},{"c":[{"e":"text","t":"Holy
                                Shrimp over 195k people saw this
                                gif/comment????"}],"e":"par"}]}
                              typeHint: RTJSON
                              richtextMedia:
                                - __typename: ImageAsset
                                  id: giphy|GCkHxV0XSKjf2
                                  userId: null
                                  mimetype: image/gif
                                  width: 266
                                  height: 200
                                  status: VALID
                                  url: >-
                                    https://external-preview.redd.it/1fRn1DPbNnOwcehc-7mq9oaWrAznVgLKbIwFJKjz_W8.gif?auto=webp&s=07bce103588c17b8b752ac33753d4d0238e43e3f
                                  small:
                                    __typename: MediaSource
                                    url: >-
                                      https://external-preview.redd.it/1fRn1DPbNnOwcehc-7mq9oaWrAznVgLKbIwFJKjz_W8.gif?width=108&auto=webp&s=5ad5c105acfdf675b80a342b3f0849761acf7531
                                    dimensions:
                                      width: 108
                                      height: 81
                                  medium:
                                    __typename: MediaSource
                                    url: >-
                                      https://external-preview.redd.it/1fRn1DPbNnOwcehc-7mq9oaWrAznVgLKbIwFJKjz_W8.gif?width=216&auto=webp&s=6f29b3d4e5ec0ffc53f514215687da5d81d9ecd2
                                    dimensions:
                                      width: 216
                                      height: 162
                                  large: null
                                  xlarge: null
                                  xxlarge: null
                                  xxxlarge: null
                                  obfuscated_small: null
                                  obfuscated_medium: null
                                  obfuscated_large: null
                                  obfuscated_xlarge: null
                                  obfuscated_xxlarge: null
                                  obfuscated_xxxlarge: null
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: en
                            authorInfo:
                              __typename: Redditor
                              id: t2_z1uiu
                              name: SpeedBlitzX
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://styles.redditmedia.com/t5_bs271/styles/profileIcon_snooec0133dd-3f43-4d38-8006-402176562809-headshot-f.png?s=f3690a4d467001d88e6a25c6ad42b8737e3ce22d
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://styles.redditmedia.com/t5_bs271/styles/profileIcon_snooec0133dd-3f43-4d38-8006-402176562809-headshot-f.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=500dde32eab9c5f6142e0fb0c0a15f5ade86a27c
                                dimensions:
                                  width: 50
                                  height: 50
                              snoovatarIcon:
                                __typename: MediaSource
                                url: >-
                                  https://i.redd.it/snoovatar/avatars/ec0133dd-3f43-4d38-8006-402176562809.png
                                dimensions:
                                  width: 380
                                  height: 600
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 916
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4ugib/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 2
                        - depth: 2
                          more:
                            count: 2
                            cursor: commenttree:5a19c0ce,::d1:t1_nm4ugib
                            isTooDeepForCount: false
                          parentId: t1_nm4ugib
                          node: null
                          childCount: 2
                        - depth: 1
                          more: null
                          parentId: t1_nm4jkk6
                          node:
                            __typename: Comment
                            id: t1_nm4rdh0
                            createdAt: 2025-10-30T03:25:26.226000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: LOL
                              preview: LOL
                              richtext: >-
                                {"document":[{"c":[{"e":"text","t":"LOL"}],"e":"par"}]}
                              typeHint: TEXT
                              richtextMedia: []
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: und
                            authorInfo:
                              __typename: Redditor
                              id: t2_w3ug8fo7
                              name: Benromaniac
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://www.redditstatic.com/avatars/defaults/v2/avatar_default_7.png
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://www.redditstatic.com/avatars/defaults/v2/avatar_default_7.png
                                dimensions:
                                  width: 256
                                  height: 256
                              snoovatarIcon: null
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 51
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4rdh0/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 0
                        - depth: 1
                          more: null
                          parentId: t1_nm4jkk6
                          node:
                            __typename: Comment
                            id: t1_nm5bykg
                            createdAt: 2025-10-30T06:16:38.091000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: '![gif](giphy|SNuaWp9sCuirJURRhd|downsized)'
                              preview: ''
                              richtext: >-
                                {"document":[{"c":[{"e":"gif","id":"giphy|SNuaWp9sCuirJURRhd|downsized"}],"e":"par"}]}
                              typeHint: RTJSON
                              richtextMedia:
                                - __typename: ImageAsset
                                  id: giphy|SNuaWp9sCuirJURRhd|downsized
                                  userId: null
                                  mimetype: image/gif
                                  width: 480
                                  height: 480
                                  status: VALID
                                  url: >-
                                    https://external-preview.redd.it/Zp9ULW_f8jv-PMdWY7ehc88_dm0DbogE9nQ15ohIAzo.gif?auto=webp&s=3cbd71250d2a762605a4ce54b6dc532ba04b3ad5
                                  small:
                                    __typename: MediaSource
                                    url: >-
                                      https://external-preview.redd.it/Zp9ULW_f8jv-PMdWY7ehc88_dm0DbogE9nQ15ohIAzo.gif?width=108&auto=webp&s=ea244a4488eaa703b4158e0fd8f6cf326ab2aba0
                                    dimensions:
                                      width: 108
                                      height: 108
                                  medium:
                                    __typename: MediaSource
                                    url: >-
                                      https://external-preview.redd.it/Zp9ULW_f8jv-PMdWY7ehc88_dm0DbogE9nQ15ohIAzo.gif?width=216&auto=webp&s=e66f85687a355ae811e2d9cc6cadf8da62f3fac6
                                    dimensions:
                                      width: 216
                                      height: 216
                                  large:
                                    __typename: MediaSource
                                    url: >-
                                      https://external-preview.redd.it/Zp9ULW_f8jv-PMdWY7ehc88_dm0DbogE9nQ15ohIAzo.gif?width=320&auto=webp&s=fe7c20b5edb09b14bbc3ee9afb56bfa3b795781a
                                    dimensions:
                                      width: 320
                                      height: 320
                                  xlarge: null
                                  xxlarge: null
                                  xxxlarge: null
                                  obfuscated_small: null
                                  obfuscated_medium: null
                                  obfuscated_large: null
                                  obfuscated_xlarge: null
                                  obfuscated_xxlarge: null
                                  obfuscated_xxxlarge: null
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: und
                            authorInfo:
                              __typename: Redditor
                              id: t2_1c2bkyx6ay
                              name: mortgage_queen
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://preview.redd.it/snoovatar/avatars/14bc7f7b-f509-47e9-8214-097cd9057654-headshot.png?auto=webp&s=3c3e4079d6ce02dff2acf5ddb6d79216aacc5817
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://preview.redd.it/snoovatar/avatars/14bc7f7b-f509-47e9-8214-097cd9057654-headshot.png?width=50&height=50&auto=webp&s=16e2c7cb91ccc9dded26524d9037a709742e4b61
                                dimensions:
                                  width: 50
                                  height: 50
                              snoovatarIcon:
                                __typename: MediaSource
                                url: >-
                                  https://i.redd.it/snoovatar/avatars/14bc7f7b-f509-47e9-8214-097cd9057654.png
                                dimensions:
                                  width: 380
                                  height: 600
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 8
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm5bykg/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 0
                        - depth: 1
                          more:
                            count: 6
                            cursor: commenttree:9b834618,::ex:(F18Gg:D:1]B""H2
                            isTooDeepForCount: false
                          parentId: t1_nm4jkk6
                          node: null
                          childCount: 6
                        - depth: 0
                          more: null
                          parentId: null
                          node:
                            __typename: Comment
                            id: t1_nm4h4xx
                            createdAt: 2025-10-30T02:22:55.632000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: Trump looks stroked out.
                              preview: Trump looks stroked out.
                              richtext: >-
                                {"document":[{"c":[{"e":"text","t":"Trump looks
                                stroked out."}],"e":"par"}]}
                              typeHint: TEXT
                              richtextMedia: []
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: en
                            authorInfo:
                              __typename: Redditor
                              id: t2_57zro69n
                              name: wabashcanonball
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://preview.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfYzhkM2EzYTgzYmRlNWRhZDA2ZDQzNjY5NGUzZTIyYWMzZTY0ZDU3N18yMjE2MjU_rare_c574ac4e-2f6c-4a2c-9a8f-8baabd48b355-headshot.png?auto=webp&s=9aa7cd52121bd39a4ce992dbf252c607524729b3
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://preview.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfYzhkM2EzYTgzYmRlNWRhZDA2ZDQzNjY5NGUzZTIyYWMzZTY0ZDU3N18yMjE2MjU_rare_c574ac4e-2f6c-4a2c-9a8f-8baabd48b355-headshot.png?width=50&height=50&auto=webp&s=32ada3711ebd6891a7d54bc99fca416b1665dca5
                                dimensions:
                                  width: 50
                                  height: 50
                              snoovatarIcon:
                                __typename: MediaSource
                                url: >-
                                  https://i.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfYzhkM2EzYTgzYmRlNWRhZDA2ZDQzNjY5NGUzZTIyYWMzZTY0ZDU3N18yMjE2MjU_rare_c574ac4e-2f6c-4a2c-9a8f-8baabd48b355.png
                                dimensions:
                                  width: 380
                                  height: 600
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 14046
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4h4xx/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 337
                        - depth: 1
                          more: null
                          parentId: t1_nm4h4xx
                          node:
                            __typename: Comment
                            id: t1_nm4k1zj
                            createdAt: 2025-10-30T02:39:52.096000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: Only because of all of the strokes.
                              preview: Only because of all of the strokes.
                              richtext: >-
                                {"document":[{"c":[{"e":"text","t":"Only because
                                of all of the strokes."}],"e":"par"}]}
                              typeHint: TEXT
                              richtextMedia: []
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: en
                            authorInfo:
                              __typename: Redditor
                              id: t2_4cg40
                              name: jpiro
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://styles.redditmedia.com/t5_20ttn9/styles/profileIcon_snoo4eb48f15-7011-4d0e-80ee-0a963e17abdf-headshot.png?s=551805c360d3bb43634aa29ea147c6ef44589b81
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://styles.redditmedia.com/t5_20ttn9/styles/profileIcon_snoo4eb48f15-7011-4d0e-80ee-0a963e17abdf-headshot.png?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=6fa172e2af95511b178e8dc364dfbf53d0286a93
                                dimensions:
                                  width: 50
                                  height: 50
                              snoovatarIcon:
                                __typename: MediaSource
                                url: >-
                                  https://i.redd.it/snoovatar/avatars/4eb48f15-7011-4d0e-80ee-0a963e17abdf.png
                                dimensions:
                                  width: 380
                                  height: 600
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 5870
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4k1zj/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 98
                        - depth: 2
                          more: null
                          parentId: t1_nm4k1zj
                          node:
                            __typename: Comment
                            id: t1_nm4l308
                            createdAt: 2025-10-30T02:45:57.143000+0000
                            editedAt: null
                            isAdminTakedown: false
                            isRemoved: false
                            removedByCategory: null
                            isLocked: false
                            isGildable: true
                            isInitiallyCollapsed: false
                            initiallyCollapsedReason: null
                            content:
                              __typename: Content
                              markdown: >-
                                The medical kind, not the Epstein kind. But
                                also: release the Epstein files
                              preview: >-
                                The medical kind, not the Epstein kind. But
                                also: release the Epstein files
                              richtext: >-
                                {"document":[{"c":[{"e":"text","t":"The medical
                                kind, not the Epstein kind. But also: release
                                the Epstein files"}],"e":"par"}]}
                              typeHint: TEXT
                              richtextMedia: []
                              translationInfo:
                                isTranslated: false
                                translatedLanguage: null
                            isTranslatable: false
                            languageCode: en
                            authorInfo:
                              __typename: Redditor
                              id: t2_trrmrr1x
                              name: BaggyLarjjj
                              isBlocked: false
                              isCakeDayNow: false
                              newIcon:
                                __typename: MediaSource
                                url: >-
                                  https://www.redditstatic.com/avatars/defaults/v2/avatar_default_5.png
                                dimensions:
                                  width: 256
                                  height: 256
                              iconSmall:
                                __typename: MediaSource
                                url: >-
                                  https://www.redditstatic.com/avatars/defaults/v2/avatar_default_5.png
                                dimensions:
                                  width: 256
                                  height: 256
                              snoovatarIcon: null
                              profile:
                                isNsfw: false
                              accountType: USER
                              isPremiumAvatarTreatment: false
                            authorCommunityBadge: null
                            score: 2172
                            voteState: NONE
                            authorFlair: null
                            isSaved: false
                            isStickied: false
                            isScoreHidden: false
                            isArchived: false
                            distinguishedAs: null
                            permalink: >-
                              /r/pics/comments/1ojnvca/official_photo_of_trumpxi_meeting_in_busan_south/nm4l308/
                            modContentDiscussion: null
                            moderationInfo: null
                            isCommercialCommunication: false
                            commentStats: null
                          childCount: 72
                        - depth: 3
                          more:
                            count: 72
                            cursor: commenttree:548c9596,::d1:t1_nm4l308
                            isTooDeepForCount: false
                          parentId: t1_nm4l308
                          node: null
                          childCount: 72
                        - depth: 2
                          more:
                            count: 25
                            cursor: commenttree:24258be0,::ex:(F0tMo
                            isTooDeepForCount: false
                          parentId: t1_nm4k1zj
                          node: null
                          childCount: 25
                        - depth: 1
                          more:
                            count: 238
                            cursor: commenttree:5047e3ce,::ex:(F0nwz
                            isTooDeepForCount: false
                          parentId: t1_nm4h4xx
                          node: null
                          childCount: 238
                        - depth: 0
                          more:
                            count: 2858
                            cursor: commenttree:a013aefe,::ex:(F0YwI:C:&9a.-!
                            isTooDeepForCount: false
                          parentId: null
                          node: null
                          childCount: 2858
                      pageInfo:
                        commentCount: 3209
                        hasNextPage: true
                    commentCount: 1919
                requestId: ecd2fa89-78f2-4295-b7f2-3d23ebf8b9c5
          headers: {}
        '400':
          description: 请求参数错误，请检查必填字段和参数格式
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: 鉴权失败，请检查 Authorization Header 中的 Bearer Token 或 API Key 是否有效
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: 账户余额或额度不足
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: 请求过于频繁，已触发限流
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: 服务器内部错误，请稍后重试
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/reddit/fetch_post_comments?post_id=t3_1ojnvca&sort_type=CONFIDENCE&need_format=false' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/reddit/fetch_post_comments',
                params={"post_id": "t3_1ojnvca", "sort_type": "CONFIDENCE", "need_format": "false"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"post_id": "t3_1ojnvca",
            "sort_type": "CONFIDENCE", "need_format": "false"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/reddit/fetch_post_comments?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````