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.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.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.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
cursor | string | Yes | 评论游标/Comment cursor from more.cursor field | — |
post_id | string | Yes | 帖子ID/Post ID | — |
language | string | No | 返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-US | en-US |
sort_type | enum (CONFIDENCE | NEW | TOP | HOT | CONTROVERSIAL | OLD | RANDOM) | No | 排序方式/Sort method: CONFIDENCE, NEW, TOP, HOT, CONTROVERSIAL, OLD, RANDOM | CONFIDENCE |
need_format | boolean | No | 是否需要清洗数据/Whether to clean and format the data | false |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --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"
}
}'{
"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.

