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 वैकल्पिक

प्लेग्राउंड

इनपुट
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.

और जानें

संबंधित APIs

सभी APIs
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 का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/reddit/app/comment-replies पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Reddit App Comment Replies API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Reddit App Comment Replies API कौन-से parameters स्वीकार करती है?

आवश्यक: cursor (string) और post_id (string)। वैकल्पिक: need_format (boolean) और sort_type (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Reddit App Comment Replies API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Reddit developer account या API key चाहिए?

नहीं। Reddit App Comment Replies SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Reddit API access के लिए आवेदन करने की आवश्यकता नहीं है।