Reddit App Fetch User Comments
Fetch comments written by a specified Reddit user, with sorting and pagination. Inputs: - username (required): 1–20 letters, digits, underscores, or hyphens. - sort: NEW (newest, default), TOP (top rated), HOT (hot), or CONTROVERSIAL (controversial). - page_size: Number of comments requested per page, from 1 to 100; default 25. - after: Pagination cursor for the next page, using the pagination information from a previous result; default empty, maximum 4096 characters. - language: Preferred response language as an IETF language tag, such as en-US; 2–16 characters, default en-US. - need_format: Whether to clean and format the data; default false. Returns JSON response data for a page of the user's comments and pagination information. Documented comment details include comment content, associated post information, timestamps, upvote counts, and reply counts. The response schema does not specify a fixed structure for these details, so availability depends on the returned data. This tool retrieves comments authored by the user, not the full comment thread of a post.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
Each call has a fixed charge of 2.07 credits. 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 |
|---|---|---|---|---|
sort | enum (NEW | TOP | HOT | CONTROVERSIAL) | No | 排序方式/Sort method: NEW, TOP, HOT, CONTROVERSIAL | NEW |
after | string | No | 分页参数/Pagination parameter | "" |
language | string | No | 返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-US | en-US |
username | string | Yes | 用户名/Username | — |
page_size | integer | No | 每页数量/Page size (default: 25) | 25 |
need_format | boolean | No | 是否需要清洗数据/Whether to clean and format the data | false |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_reddit_app_fetch_user_comments' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"username": "xxx"
}
}'No response example available yet.

