Reddit App Fetch Subreddit Post Channels
## Purpose Retrieve post-channel information for a specified Reddit subreddit, with sorting and time-range options. ## Inputs All inputs are optional: - `subreddit_name`: Subreddit name without `r/`; 2–21 letters, digits, or underscores. Default: `pics`. - `sort`: `BEST`, `HOT`, `NEW`, `TOP`, `CONTROVERSIAL`, or `RISING`. Default: `HOT`. - `range`: `ALL`, `HOUR`, `DAY`, `WEEK`, `MONTH`, or `YEAR`. Default: `DAY`. The documentation does not specify how each sort mode uses this range. - `language`: Preferred response language as an IETF language tag, such as `en-US`. Must be 2–16 characters and match the parameter's language-tag pattern. Default: `en-US`. - `need_format`: Whether to request cleaned and formatted data. Default: `false`. ## Result Returns a JSON response with the requested subreddit post-channel information in `data`, which may be null. The nested data structure is not specified, so individual post fields are not guaranteed. ## Example `{"subreddit_name":"pics","sort":"HOT","range":"DAY","language":"en-US","need_format":false}`
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 |
|---|---|---|---|---|
sort | enum (BEST | HOT | NEW | TOP | CONTROVERSIAL | RISING) | No | 排序方式/Sort method: HOT, NEW, TOP, CONTROVERSIAL, RISING | HOT |
range | enum (ALL | HOUR | DAY | WEEK | MONTH | YEAR) | No | 时间范围/Time range: HOUR, DAY, WEEK, MONTH, YEAR, ALL | DAY |
language | string | No | 返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-US | en-US |
need_format | boolean | No | 是否需要清洗数据/Whether to clean and format the data | false |
subreddit_name | string | No | 版块名称/Subreddit name | pics |
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_subreddit_post_channels' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {}
}'No response example available yet.

