Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Reddit App Comment Replies

API 문서
https://api.sandbase.ai/v1/api/reddit/app/comment-replies

Returns replies and nested sub-comments under a Reddit post comment using a continuation cursor. Supports custom sorting methods and data formatting options.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 2개 · 선택 사항 2개

Playground

입력
Comment cursor from the more.cursor field in comment data, format like "commenttree:ex:(xxx)"
Post ID, format like "t3_XXXXXX"
Whether to clean and format the data
Sort method, supports CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOM
출력예시
응답outputs · 11.0 KB · 273줄
[
  {
    "data": {
      "postInfoById": {
        "__typename": "SubredditPost",
        "commentCount": 3049,
        "commentForest": {
          "__typename": "CommentForest",
          "pageInfo": {
            "commentCount": 5,
            "hasNextPage": false
          },
          "trees": [
            {
              "childCount": 0,
              "depth": 0,
              "more": null,
              "node": {
                "__typename": "Comment",
                "authorCommunityBadge": null,
                "authorFlair": null,
                "authorInfo": {
                  "__typename": "Redditor",
                  "accountType": "USER",
                  "iconSmall": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 50,
                      "width": 50
                    },
                    "url": "https://styles.redditmedia.com/t5_p96kp/styles/profileIcon_a0kdvkgnwc7c1.jpeg?width=50&height=50&frame=1&auto=webp&crop=50%3A50%2Csmart&s=5ae545cdcd96b08cbaedd0e4616f6083726a0f21"
                  },
                  "id": "t2_236f6ttn",
                  "isBlocked": false,
                  "isCakeDayNow": false,
                  "isPremiumAvatarTreatment": false,
                  "name": "welfedad",
                  "newIcon": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 256,
                      "width": 256
                    },
                    "url": "https://styles.redditmedia.com/t5_p96kp/styles/profileIcon_a0kdvkgnwc7c1.jpeg?frame=1&auto=webp&crop=256%3A256%2Csmart&s=8b6fbd31e342674ad6dfcb3691ee7282c0f70a49"
                  },
                  "profile": {
                    "isNsfw": false
                  },
                  "snoovatarIcon": null
                },
                "commentStats": null,
                "content": {
                  "__typename": "Content",
                  "markdown": "Looks like an eye booger or am I missing something",
                  "preview": "Looks like an eye booger or am I missing something",
                  "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Looks like an eye booger or am I missing something\"}],\"e\":\"par\"}]}",
                  "richtextMedia": [],
                  "translationInfo": {
                    "isTranslated": false,
                    "translatedLanguage": null
                  },
                  "typeHint": "TEXT"
                },
                "createdAt": "2026-01-26T05:47:01.149000+0000",
                "distinguishedAs": null,
                "editedAt": null,
                "id": "t1_o1rqk7i",
                "initiallyCollapsedReason": null,
                "isAdminTakedown": false,
                "isArchived": true,
                "isCommercialCommunication": false,
                "isGildable": true,
                "isInitiallyCollapsed": false,
                "isLocked": false,
                "isRemoved": false,
                "isSaved": false,
                "isScoreHidden": false,
                "isStickied": false,
                "isTranslatable": false,
                "languageCode": "en",
                "modContentDiscussion": null,
                "moderationInfo": null,
                "permalink": "/r/cats/comments/1qmup73/we_found_this_poor_little_kitten_in_the_woods/o1rqk7i/",
                "removedByCategory": null,
                "score": 3,
                "voteState": "NONE"
              },
              "parentId": "t1_o1q99np"
            },
            {
              "childCount": 0,
              "depth": 0,
              "more": null,
              "node": {
                "__typename": "Comment",
                "authorCommunityBadge": null,
                "authorFlair": null,
                "authorInfo": {
                  "__typename": "Redditor",
                  "accountType": "USER",
                  "iconSmall": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 256,
                      "width": 256
                    },
                    "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_1.png"
                  },
                  "id": "t2_1744je4v1d",
                  "isBlocked": false,
                  "isCakeDayNow": false,
                  "isPremiumAvatarTreatment": false,
                  "name": "Key_Painter_5099",
                  "newIcon": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 256,
                      "width": 256
                    },
                    "url": "https://www.redditstatic.com/avatars/defaults/v2/avatar_default_1.png"
                  },
                  "profile": {
                    "isNsfw": false
                  },
                  "snoovatarIcon": null
                },
                "commentStats": null,
                "content": {
                  "__typename": "Content",
                  "markdown": "I’m not seeing anything in her right eye?",
                  "preview": "I’m not seeing anything in her right eye?",
                  "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"I\\u2019m not seeing anything in her right eye?\"}],\"e\":\"par\"}]}",
                  "richtextMedia": [],
                  "translationInfo": {
                    "isTranslated": false,
                    "translatedLanguage": null
                  },
                  "typeHint": "TEXT"
                },
                "createdAt": "2026-01-26T03:11:44.062000+0000",
                "distinguishedAs": null,
                "editedAt": null,
                "id": "t1_o1r22ur",
                "initiallyCollapsedReason": null,
                "isAdminTakedown": false,
                "isArchived": true,
                "isCommercialCommunication": false,
                "isGildable": true,
                "isInitiallyCollapsed": false,
                "isLocked": false,
                "isRemoved": false,
                "isSaved": false,
                "isScoreHidden": false,
                "isStickied": false,
                "isTranslatable": false,
                "languageCode": "en",
                "modContentDiscussion": null,
                "moderationInfo": null,
                "permalink": "/r/cats/comments/1qmup73/we_found_this_poor_little_kitten_in_the_woods/o1r22ur/",
                "removedByCategory": null,
                "score": 2,
                "voteState": "NONE"
              },
              "parentId": "t1_o1q99np"
            },
            {
              "childCount": 0,
              "depth": 0,
              "more": null,
              "node": {
                "__typename": "Comment",
                "authorCommunityBadge": null,
                "authorFlair": null,
                "authorInfo": {
                  "__typename": "Redditor",
                  "accountType": "USER",
                  "iconSmall": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 50,
                      "width": 50
                    },
                    "url": "https://preview.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfNmFjYjhmYjgyODgwZDM5YzJiODQ0NmY4Nzc4YTE0ZDM0ZWU2Y2ZiN184ODk3MA_rare_8ffac4fe-6cfe-4955-afa3-1a7b522b522b-headshot.png?width=50&height=50&auto=webp&s=84f907f3d475bf2e3a25dfc1a52c77218357b294"
                  },
                  "id": "t2_gpdg2",
                  "isBlocked": false,
                  "isCakeDayNow": false,
                  "isPremiumAvatarTreatment": false,
                  "name": "actuallycallie",
                  "newIcon": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 256,
                      "width": 256
                    },
                    "url": "https://preview.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfNmFjYjhmYjgyODgwZDM5YzJiODQ0NmY4Nzc4YTE0ZDM0ZWU2Y2ZiN184ODk3MA_rare_8ffac4fe-6cfe-4955-afa3-1a7b522b522b-headshot.png?auto=webp&s=8602228a169ef327b4738f15b8575825aaf49b83"
                  },
                  "profile": {
                    "isNsfw": false
                  },
                  "snoovatarIcon": {
                    "__typename": "MediaSource",
                    "dimensions": {
                      "height": 600,
                      "width": 380
                    },
                    "url": "https://i.redd.it/snoovatar/avatars/nftv2_bmZ0X2VpcDE1NToxMzdfNmFjYjhmYjgyODgwZDM5YzJiODQ0NmY4Nzc4YTE0ZDM0ZWU2Y2ZiN184ODk3MA_rare_8ffac4fe-6cfe-4955-afa3-1a7b522b522b.png"
                  }
                },
                "commentStats": null,
                "content": {
                  "__typename": "Content",
                  "markdown": "the saddest little face!",
                  "preview": "the saddest little face!",
                  "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"the saddest little face!\"}],\"e\":\"par\"}]}",
                  "richtextMedia": [],
                  "translationInfo": {
                    "isTranslated": false,
                    "translatedLanguage": null
                  },
                  "typeHint": "RTJSON"
                },
                "createdAt": "2026-01-26T01:51:32.314000+0000",
                "distinguishedAs": null,
                "editedAt": null,
                "id": "t1_o1qm9rb",
                "initiallyCollapsedReason": null,
                "isAdminTakedown": false,
                "isArchived": true,
                "isCommercialCommunication": false,
                "isGildable": true,
                "isInitiallyCollapsed": false,
                "isLocked": false,
                "isRemoved": false,
                "isSaved": false,
                "isScoreHidden": false,
                "isStickied": false,
                "isTranslatable": false,
                "languageCode": "en",
                "modContentDiscussion": null,
                "moderationInfo": null,
                "permalink": "/r/cats/comments/1qmup73/we_found_this_poor_little_kitten_in_the_woods/o1qm9rb/",
                "removedByCategory": null,
                "score": 1,
                "voteState": "NONE"
              },
              "parentId": "t1_o1q99np"
            },
            "… 2 more items in the full response"
          ]
        },
        "id": "t3_1qmup73",
        "subreddit": {
          "allowedMediaInComments": [
            "GIPHY",
            "STATIC",
            "ANIMATED",
            "… 2 more items in the full response"
          ],
          "id": "t5_2qhta",
          "isQuarantined": false,
          "moderation": {
            "isShowCommentRemovalReasonPrompt": true
          },
          "name": "cats",
          "prefixedName": "r/cats",
          "tippingStatus": null
        },
        "title": "We found this poor little kitten in the woods, covered in ice, with her fur stuck to the hunk of plastic she was hiding under for shelter. We saved her 😁"
      }
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Reddit App Comment Replies API

Returns the replies under one collapsed Reddit comment thread, plus basic info about the parent post and subreddit. It needs a post_id and a cursor taken from the more.cursor field of a comment tree.

Use cases

  • Expand a "load more replies" branch from a long Reddit thread to read the hidden comments.
  • Collect reply text and author names for sentiment analysis on one discussion branch.
  • Rebuild a full comment tree by following each reply back to its parent with parentId.
  • Check which replies come from distinguished accounts, such as moderators.

Request

curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/comment-replies" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cursor": "commenttree:ex:(RjiJd", "post_id": "t3_1qmup73"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
cursorstringYesComment cursor from the more.cursor field in comment data, format like "commenttree:ex:(xxx)"
post_idstringYesPost ID, format like "t3_XXXXXX"
need_formatbooleanNoWhether to clean and format the data
sort_typestringNoSort method, supports CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOM

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "postInfoById": {
    "__typename": "SubredditPost",
    "commentCount": 3048,
    "commentForest": {
      "__typename": "CommentForest",
      "pageInfo": {
        "commentCount": 5,
        "hasNextPage": false
      },
      "trees": [
        {
          "childCount": 0,
          "depth": 0,
          "more": null,
          "node": {
            "__typename": "Comment",
            "authorCommunityBadge": null,
            "authorFlair": null,
            "authorInfo": {
              "__typename": "Redditor",
              "accountType": "USER",
              "iconSmall": {
                "__typename": "MediaSource",
                "dimensions": {
                  "height": 50,
                  "width": 50
                },
                "url": "https://styles.redditmedia.com/t5_p96kp/styles/profileIcon_a0kdvkgnwc7c1.jpeg?wi…"
              },
              "id": "t2_236f6ttn",
              "isBlocked": false,
              "isCakeDayNow": false,
              "isPremiumAvatarTreatment": false,
              "name": "welfedad"
            },
            "commentStats": null,
            "content": {
              "__typename": "Content",
              "markdown": "Looks like an eye booger or am I missing something",
              "preview": "Looks like an eye booger or am I missing something",
              "richtext": "{\"document\":[{\"c\":[{\"e\":\"text\",\"t\":\"Looks like an eye booger or am I missing som…",
              "richtextMedia": [],
              "translationInfo": {
                "isTranslated": false,
                "translatedLanguage": null
              },
              "typeHint": "TEXT"
            },
            "createdAt": "2026-01-26T05:47:01.149000+0000",
            "distinguishedAs": null
          },
          "parentId": "t1_o1q99np"
        }
      ]
    },
    "id": "t3_1qmup73",
    "subreddit": {
      "allowedMediaInComments": [
        "GIPHY"
      ],
      "id": "t5_2qhta",
      "isQuarantined": false,
      "moderation": {
        "isShowCommentRemovalReasonPrompt": true
      },
      "name": "cats",
      "prefixedName": "r/cats",
      "tippingStatus": null
    },
    "title": "We found this poor little kitten in the woods, covered in ice, with her fur stuc…"
  }
}

Response fields

FieldMeaning
postInfoById.title / postInfoById.idTitle and ID of the post the replies belong to. The ID uses the t3_ prefix.
postInfoById.commentCountTotal number of comments on the post, not only the replies in this response.
postInfoById.commentForest.trees[]List of reply nodes returned for the cursor. Each item holds one comment in node.
postInfoById.commentForest.trees[].node.content.markdown / postInfoById.commentForest.trees[].node.content.previewText of the comment. markdown holds the full comment text and preview holds a short version.
postInfoById.commentForest.trees[].node.authorInfo.name / postInfoById.commentForest.trees[].node.authorInfo.idUsername and account ID of the comment author. The ID uses the t2_ prefix.
postInfoById.commentForest.trees[].node.createdAtTime the comment was posted, as an ISO 8601 timestamp with a +0000 offset.
postInfoById.commentForest.trees[].parentIdID of the parent comment, with the t1_ prefix.
postInfoById.commentForest.trees[].childCount / postInfoById.commentForest.trees[].depthNumber of child replies under this comment and its depth value in the tree.
postInfoById.commentForest.trees[].moreSet when more replies are collapsed under this node. It is null when nothing more is hidden.
postInfoById.commentForest.pageInfo.hasNextPageTells you whether more replies are available after this page.
postInfoById.subreddit.prefixedNameSubreddit name with the r/ prefix, for example r/cats.

Notes

  • Take cursor from the more.cursor field of a comment tree item. It looks like commenttree:ex:(xxx). Get the top-level comments first with Reddit App Post Comments.
  • post_id must include the t3_ prefix, for example t3_1qmup73.
  • sort_type accepts CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD or RANDOM.
  • If hasNextPage is true, or a node has a non-null more, use its cursor in a new call to get the rest.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
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 Comment Replies API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/reddit/app/comment-replies에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Reddit App Comment Replies API 비용은 얼마인가요?

호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Reddit App Comment Replies API는 어떤 매개변수를 받나요?

필수: cursor (string) 및 post_id (string). 선택: need_format (boolean) 및 sort_type (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Reddit App Comment Replies API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Reddit 개발자 계정이나 API 키가 필요한가요?

아니요. Reddit App Comment Replies은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Reddit API 액세스를 별도로 신청할 필요는 없습니다.