获取单个Reddit帖子详情/Fetch Single Reddit Post Details
Changed on[中文]
用途:
- 根据帖子ID获取单个帖子详情
- 可选择性包含特定评论的上下文
参数:
- post_id: 帖子ID,格式如 "t3_XXXXXX"
- include_comment_id: 是否包含特定评论ID,默认False
- comment_id: 评论ID(当include_comment_id为True时使用),格式如 "t1_XXXXXX"
返回:
- 包含帖子详细信息的数据,包括:
- 帖子内容、标题、作者
- 统计数据(点赞数、评论数等)
- 版块信息
- 奖励信息
- 媒体资源
- 推荐原因等
注意:
- APP接口的ID格式与Web接口不同,需要添加类型前缀
- 帖子ID前缀: t3_ (例如: t3_1ojnh50)
- 评论ID前缀: t1_ (例如: t1_abcd123)
[English]
Purpose:
- Fetch single post details by post ID
- Optionally include context for specific comments
Parameters:
- post_id: Post ID, format like "t3_XXXXXX"
- include_comment_id: Whether to include specific comment ID, default False
- comment_id: Comment ID (used when include_comment_id is True), format like "t1_XXXXXX"
Returns:
- Data containing detailed post information including:
- Post content, title, author
- Statistics (upvotes, comment count, etc.)
- Subreddit information
- Award information
- Media resources
- Recommendation reasons, etc.
Note:
- APP API ID format differs from Web API, requires type prefix
- Post ID prefix: t3_ (e.g., t3_1ojnh50)
- Comment ID prefix: t1_ (e.g., t1_abcd123)
[示例/Example]
post_id="t3_1ojnh50" include_comment_id=false comment_id="" 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/Post ID
是否包含特定评论ID/Include specific comment ID
评论ID/Comment ID (when include_comment_id is True)
是否需要清洗数据/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
for the
queryrequest parameterpost_id, the minLength was increased from0to4 - breaking
added the pattern
^(?:|t1_[a-z0-9]{1,17})$to thequeryrequest parametercomment_id - breaking
added the pattern
^t3_[a-z0-9]{1,17}$to thequeryrequest parameterpost_id - warning
for the
queryrequest parametercomment_id, the maxLength was set to20 - warning
for the
queryrequest parameterpost_id, the maxLength was set to20 - info
added the new optional
queryrequest parameterlanguage
- breaking