Reddit App Fetch Comment Replies

2.07 credits/call
ae_reddit_app_fetch_comment_replies

Fetch replies to a Reddit comment. Required inputs: - post_id: The post ID, such as t3_1qmup73. It must start with t3_ followed by 1–17 lowercase letters or digits. - cursor: Copy the target comment node's more.cursor value from previously retrieved comment data. It must begin with commenttree: and be 13–4096 characters long; a comment ID is not a substitute. Optional inputs: - sort_type: CONFIDENCE (default), NEW, TOP, HOT, CONTROVERSIAL, OLD or RANDOM. - language: Preferred response language as an IETF language tag, default en-US. - need_format: Whether to clean and format the data, default false. First retrieve the post's comments, then find the desired comment with child replies and a more.cursor value. Submit that cursor unchanged with the same post ID. Returns JSON data for the retrieved replies, including sub-comment details such as text, authors and upvotes, along with pagination information. The data structure may vary; one response should not be assumed to contain every reply in the thread.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
cursorstringYes评论游标/Comment cursor from more.cursor field—
post_idstringYes帖子ID/Post ID—
languagestringNo返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-USen-US
sort_typeenum (CONFIDENCE | NEW | TOP | HOT | CONTROVERSIAL | OLD | RANDOM)No排序方式/Sort method: CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOMCONFIDENCE
need_formatbooleanNo是否需要清洗数据/Whether to clean and format the datafalse

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_reddit_app_fetch_comment_replies' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "cursor": "commenttree:b36ad71e,::2:d1:t1_p9bndr4",
    "need_format": false,
    "post_id": "t3_1we891g",
    "sort_type": "CONFIDENCE"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "postInfoById": {
      "__typename": "SubredditPost",
      "commentCount": 17,
      "commentForest": {
        "__typename": "CommentForest",
        "pageInfo": {
          "hasNextPage": false
        },
        "trees": [
          {
            "childCount": 1,
            "depth": 2,
            "node": {},
            "parentId": "t1_p9bndr4"
          }
        ]
      },
      "id": "t3_1we891g",
      "subreddit": {
        "allowedMediaInComments": [
          "GIPHY"
        ],
        "id": "t5_2qhix",
        "isQuarantined": false,
        "moderation": {
          "isShowCommentRemovalReasonPrompt": true
        },
        "name": "poker",
        "prefixedName": "r/poker"
      },
      "title": "What's up with these recent massive heads-up matches?"
    }
  },
  "docs": "https://api.tikhub.io/#/Reddit-APP-API/fetch_comment_replies_api_v1_reddit_app_fetch_comment_replies_get",
  "message": "Request successful. This request will incur a charge."
}

This example shows part of the response. Copied content is valid JSON.