今日头条热榜 API
今日头条热榜事件
数据来源:今日头条
返回统一的 JSON 格式 { code, message, cached, stale, updatedAt, data },支持跨域,免注册每天可免费调用 100 次,注册后每天 10000 次。
获取今日头条热榜
GET /api/hot/toutiao
请求参数
limit:返回条数上限(1~100,默认全部),示例10
返回字段
source(string):来源 id,固定为 toutiaotitle(string):榜单名称,固定为「今日头条热榜」items(array):热点事件,按今日头条热榜顺序排列(不含置顶新闻)items[].rank(number):排名,从 1 开始连续编号(已去掉广告、无标题等条目后重新编号,可能与上游页面上的名次不同)items[].title(string):热点事件标题items[].url(string|null):头条热点聚合页链接 https://www.toutiao.com/trending/事件ID/;没有事件 ID 时为上游 Url;都没有时为 nullitems[].hot(number|null):今日头条热度值(上游 HotValue);缺失时为 nullitems[].desc(null):今日头条热榜没有摘要,恒为 nullitems[].extra(object):该来源特有的附加信息,字段见下。值为空的字段直接省略(不会是 null);全部为空时整个 extra 不返回items[].extra.label(string):热点标签文字(上游 LabelDesc),如 热、新;无标签时不返回items[].extra.cover(string):配图链接;没有配图时不返回items[].extra.category(string):兴趣分类,上游 InterestCategory 的英文代码,多个用英文逗号连接,如 society、sports 或 society,entertainment;无分类时不返回