Reddit App Fetch News Feed
## Purpose Retrieve a page of news recommendations from the Reddit app, including news posts and current-affairs discussions when available. ## Inputs All inputs are optional. - `subtopic_ids`: Subtopic IDs to include. Defaults to `["all"]`, meaning all news categories. Supply up to 50 IDs; each must be 1–64 characters containing only letters, digits, underscores or hyphens. - `after`: Pagination value for a subsequent page. Defaults to `""` for the initial request; maximum 4096 characters. - `language`: Preferred response language as an IETF language tag, such as `en-US`. Defaults to `en-US`; must be 2–16 characters and match the parameter's language-tag pattern. - `need_format`: Whether to clean and format the returned data. Defaults to `false`. ## Result Returns JSON containing the news feed in `data`, which may be null. Feed content may include news posts, current-affairs discussions, trending topics, and news sources or links. The nested feed structure is not specified, so individual fields are not guaranteed. Use an available pagination value as `after` to request another page; no particular response field for that value is guaranteed. ## Example `{"subtopic_ids":["all"],"after":"","language":"en-US","need_format":false}`
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 |
|---|---|---|---|---|
after | string | No | 分页参数/Pagination parameter | "" |
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 |
subtopic_ids | array | No | 子话题ID列表/Subtopic IDs list | ["all"] |
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_news_feed' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {}
}'No response example available yet.

