获取用户发布的帖子列表/Fetch User Posts
Changed on[中文]
用途:
- 获取指定用户发布的帖子列表
参数:
- username: Reddit用户名
- sort: 排序方式,可选值: NEW(最新), TOP(最热), HOT(热门), CONTROVERSIAL(有争议)
- after: 分页参数,用于获取下一页
返回:
- 用户帖子列表JSON数据,包含:
- 帖子标题和内容
- 发布时间
- 所属版块
- 点赞数和评论数
- 帖子类型(文本/图片/视频/链接)
- 媒体内容(如有)
- 分页信息
[English]
Purpose:
- Fetch list of posts submitted by the specified user
Parameters:
- username: Reddit username
- sort: Sort method, options: NEW (newest), TOP (top rated), HOT (hot), CONTROVERSIAL (controversial)
- after: Pagination parameter for fetching next page
Returns:
- JSON data of user posts containing:
- Post title and content
- Submission time
- Subreddit
- Upvote and comment counts
- Post type (text/image/video/link)
- Media content (if any)
- Pagination information
[示例/Example]
username="spez" sort="NEW" after="" 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
用户名/Username
排序方式/Sort method: NEW, TOP, HOT, CONTROVERSIAL
分页参数/Pagination parameter
是否需要清洗数据/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
for the
queryrequest parameterusername, the minLength was increased from0to1 - breaking
added the pattern
^[A-Za-z0-9_-]+$to thequeryrequest parameterusername - warning
for the
queryrequest parameterafter, the maxLength was set to4096 - warning
for the
queryrequest parameterusername, the maxLength was set to20 - info
added the new optional
queryrequest parameterlanguage - info
added the new enum value
CONTROVERSIALto thequeryrequest parametersort - info
added the new enum value
HOTto thequeryrequest parametersort - info
added the new enum value
NEWto thequeryrequest parametersort - info
added the new enum value
TOPto thequeryrequest parametersort
- breaking