按分类获取Reddit APP feed/Fetch Reddit APP Topic Feed
Changed on[中文]
用途:
- 获取指定 topic(社区分类)的 feed
- 一般流程: 先调 /fetch_explore_feed 获取所有 topicId,然后选一个 topicId 调这个接口
参数:
- topic_id: 分类ID,格式 "tx1_XXXXX",从 /fetch_explore_feed 返回的 topics[].id 取
- scheme_name: 分类 scheme,App 默认用 "communities_tab_taxonomy_topics_default"
- sort: 排序方式
- time: 时间范围
- need_format: 是否清洗
注意:
- APP接口的ID格式与Web接口不同,需要添加类型前缀
- 分类ID前缀: tx1_ (例如: tx1_29m4k39)
- scheme_name 是 Reddit 内部分类体系标识,默认值即可
[English]
Purpose:
- Fetch the feed for a specific Reddit community topic
- Typical flow: call /fetch_explore_feed first to get topicIds, then pass one here
Parameters:
- topic_id: Topic ID, format "tx1_XXXXX", get from /fetch_explore_feed response's topics[].id
- scheme_name: Topic scheme, App defaults to "communities_tab_taxonomy_topics_default"
- sort: Sort method
- time: Time range
- need_format: Whether to clean
[示例/Example]
topic_id="tx1_29m4k39" scheme_name="communities_tab_taxonomy_topics_default" sort="BEST" time="ALL" need_format=false
Request
- Base URLhttps://api.tikhub.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Query parameters
返回内容使用的语言,采用 IETF 语言标签;默认 en-US / Preferred response language as an IETF language tag; default: en-US
分类ID/Topic ID (从 /fetch_explore_feed 的 topics 拿)
分类 scheme/Topic scheme name (默认 App 用 communities_tab_taxonomy_topics_default)
排序方式/Sort method: BEST, HOT, NEW, TOP, CONTROVERSIAL
时间范围/Time range: ALL, HOUR, DAY, WEEK, MONTH, YEAR
是否需要清洗数据/Whether to clean and format the data
Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- breaking
the
queryrequest parametersortwas restricted to a list of enum values - breaking
the
queryrequest parametertimewas restricted to a list of enum values - breaking
for the
queryrequest parameterscheme_name, the minLength was increased from0to1 - breaking
for the
queryrequest parametertopic_id, the minLength was increased from0to5 - breaking
added the pattern
^[a-z0-9_]+$to thequeryrequest parameterscheme_name - breaking
added the pattern
^tx1_[a-z0-9]{1,16}$to thequeryrequest parametertopic_id - warning
for the
queryrequest parameterscheme_name, the maxLength was set to100 - warning
for the
queryrequest parametertopic_id, the maxLength was set to20 - info
added the new optional
queryrequest parameterlanguage - info
added the new enum value
ALLto thequeryrequest parametertime - info
added the new enum value
BESTto thequeryrequest parametersort - info
added the new enum value
CONTROVERSIALto thequeryrequest parametersort - info
added the new enum value
DAYto thequeryrequest parametertime - info
added the new enum value
HOTto thequeryrequest parametersort - info
added the new enum value
HOURto thequeryrequest parametertime - info
added the new enum value
MONTHto thequeryrequest parametertime - info
added the new enum value
NEWto thequeryrequest parametersort - info
added the new enum value
RISINGto thequeryrequest parametersort - info
added the new enum value
TOPto thequeryrequest parametersort - info
added the new enum value
WEEKto thequeryrequest parametertime - info
added the new enum value
YEARto thequeryrequest parametertime
- breaking