公开内容
获取帖子及递归回复
GET /v1/site/posts/{id}
GET
/v1/site/posts/{id}返回 20 条直接回复,每个节点最多预览 2 个直接子回复;继续阅读通过回复分页接口。replyCount 是全部可见回复数。
无需认证;可选 Bearer 令牌(post:read:feed),拒绝 Cookie
路径参数
idstring必填长度 ≥ 1
返回值
成功
idstring必填bodystring必填titlestring | null必填kindstring必填statestring | null必填authorIdstring必填previewstring可选authorobject | null可选
authorobject | null可选idstring必填namestring必填avatarstring | null必填badgesstring[]必填
badgesstring[]必填[]stringcolorstring可选parentPostIdstring | null可选rootPostIdstring | null可选depthnumber可选createdAtstring可选createdRelstring可选updatedAtstring可选lastActivityAtstring可选lastActivityRelstring可选replyCountnumber可选refobject | null可选
refobject | null可选typestring | null必填idstring必填slugstring | null必填titlestring | null必填summarystring | null必填coverstring | null必填tombstoneboolean必填repliesobject[]必填
repliesobject[]必填idstring必填bodystring必填titlestring | null可选kindstring可选statestring | null可选authorIdstring可选previewstring可选authorobject | null可选
authorobject | null可选idstring必填namestring必填avatarstring | null必填badgesstring[]必填
badgesstring[]必填[]stringcolorstring可选parentPostIdstring | null可选rootPostIdstring | null可选depthnumber可选createdAtstring可选createdRelstring可选updatedAtstring可选lastActivityAtstring可选lastActivityRelstring可选replyCountnumber可选refobject | null可选
refobject | null可选typestring | null必填idstring必填slugstring | null必填titlestring | null必填summarystring | null必填coverstring | null必填tombstoneboolean必填tombstoneboolean必填childrenobject[]必填
childrenobject[]必填idstring必填bodystring必填titlestring | null可选kindstring可选statestring | null可选authorIdstring可选previewstring可选authorobject | null可选
authorobject | null可选idstring必填namestring必填avatarstring | null必填badgesstring[]必填
badgesstring[]必填[]stringcolorstring可选parentPostIdstring | null可选rootPostIdstring | null可选depthnumber可选createdAtstring可选createdRelstring可选updatedAtstring可选lastActivityAtstring可选lastActivityRelstring可选replyCountnumber可选refobject | null可选
refobject | null可选typestring | null必填idstring必填slugstring | null必填titlestring | null必填summarystring | null必填coverstring | null必填tombstoneboolean必填tombstoneboolean必填childrenobject[]必填
childrenobject[]必填[]object递归引用,后续结构与当前类型相同。
childrenTotalinteger必填≥ 0 · ≤ 9007199254740991
childrenNextCursorstring | null必填reactionsobject可选
reactionsobject可选likenumber必填favoritenumber必填childrenTotalinteger必填≥ 0 · ≤ 9007199254740991
childrenNextCursorstring | null必填reactionsobject可选
reactionsobject可选likenumber必填favoritenumber必填referencesobject[]必填
referencesobject[]必填idstring必填source_typestring可选source_idstring可选source_release_idstring | null可选target_typestring | null可选target_idstring | null可选relationstring可选rolestring | null可选external_namestring | null可选external_keystring | null可选external_urlstring | null可选kindstring可选fragment_typestring | null可选fragment_idstring | null可选notestring | null可选sort_orderinteger可选≥ 0 · ≤ 9007199254740991
created_atstring可选target_slugstring | null可选target_titlestring | null可选target_coverstring | null可选target_summarystring | null可选target_deleted_atstring | null可选target_statusstring | null可选tombstoneboolean可选relatedobject[]必填
relatedobject[]必填idstring必填bodystring必填titlestring | null必填kindstring必填statestring | null必填authorIdstring必填previewstring可选authorobject | null可选
authorobject | null可选idstring必填namestring必填avatarstring | null必填badgesstring[]必填
badgesstring[]必填[]stringcolorstring可选parentPostIdstring | null可选rootPostIdstring | null可选depthnumber可选createdAtstring可选createdRelstring可选updatedAtstring可选lastActivityAtstring可选lastActivityRelstring可选replyCountnumber可选refobject | null可选
refobject | null可选typestring | null必填idstring必填slugstring | null必填titlestring | null必填summarystring | null必填coverstring | null必填tombstoneboolean必填repliesTotalinteger必填≥ 0 · ≤ 9007199254740991
repliesNextCursorstring | null必填replyRevisionstring必填ancestorsobject[]必填
ancestorsobject[]必填idstring必填parentPostIdstring | null必填depthinteger必填≥ 0 · ≤ 9007199254740991
tombstoneboolean必填reactionsobject可选
reactionsobject可选likenumber必填favoritenumber必填refDetailobject | null可选
refDetailobject | null可选typestring | null必填idstring必填slugstring | null必填titlestring | null必填summarystring | null必填coverstring | null必填tombstoneboolean必填statestring必填kindstring | null必填versionNumberstring | null必填typeLabelstring | null必填接口信息
接口: GET /v1/site/posts/{id}
operationId: getPost
使用令牌时所需权限: post:read:feed
返回 20 条直接回复,每个节点最多预览 2 个直接子回复;继续阅读通过回复分页接口。replyCount 是全部可见回复数。
参数:
pathid(必填)