Skip to content

Latest commit

 

History

History
129 lines (119 loc) · 13.3 KB

post.md

File metadata and controls

129 lines (119 loc) · 13.3 KB

Post

视频、笔记、推文或文章,所有平台同一种结构。

网页版:https://okdata.online/zh/docs/objects/post/

所有平台同一种结构。平台没有的字段为 null,meta.unavailable 会说明原因。用 fields= 只取需要的字段。

字段 类型 说明
id string 内容在平台上的 ID。
url string 内容链接。
type string 内容类型。
title string | null 标题(视频、笔记、文章才有)。
text string 文案、正文或简介,纯文本;文章为 Markdown。
lang string | null 语言代码,平台给出或检测得到。
published_at string | null 发布时间,ISO 8601,UTC;只有数据源不给时间时为 null(wechat_mp.articles.metrics、wechat_channels.videos.metrics、youtube.channels.videos.list 取 Shorts 时),并列在 meta.unavailable 里。
author AccountRef 发布者。
metrics Metrics 抓取时的数据;平台不公开的为 null。
images string[] | null 图文内容的图片地址。
hashtags string[] | null 话题标签,不带 #。
ext object 平台特有字段,只在 view=full 时返回。

AccountRef

字段 类型 说明
id string 平台上的账号 ID。
username string | null 用户名(平台有的话)。
name string | null 昵称。
avatar_url string | null 头像图片地址。
followers integer | null 抓取时的粉丝数。
verified boolean | null 平台是否显示认证标识。

Metrics

字段 类型 说明
views integer | null 播放或阅读数。
likes integer | null 点赞数。
comments integer | null 评论数。
shares integer | null 分享数。
favorites integer | null 收藏数。
reposts integer | null 转发数。

返回 Post 的接口