数据查询

资讯新闻接口文档

聚合主流新闻来源。

接口参数与返回字段速查

聚合主流新闻来源。

每 20 分钟采集,约 5 分钟后同步至公开接口。

请求参数

  • apikey(string,必选):浏览器中的 Test Request 会在发送时自动注入;其他调用请[前往个人中心获取](/console)。
  • apiname(string(news),必选):接口名称
  • fields(string|null,可选):| 字段 | 类型 | 名称 | 示例值 | 描述 | | --- | --- | --- | --- | --- | | `published_at` | `string\|null` | 发布时间 | `2026-08-23T12:40:00` | 新闻来源标注的发布时间。 | | `display_at` | `string` | 展示时间 | `2026-08-23T12:40:00` | 用于统一排序和展示的北京时间。 | | `time_label` | `string\|null` | 时间标签 | `12:40` | 页面使用的简短时间标签。 | | `source` | `string` | 来源代码 | `cls_depth_1000` | 新闻来源的稳定代码。 | | `source_name` | `string` | 来源名称 | `财联社头条` | 新闻来源的中文名称。 | | `title` | `string` | 标题 | `人工智能板块午后走强` | 新闻标题。 | | `summary` | `string\|null` | 摘要 | `多只人工智能概念股上涨。` | 新闻摘要;来源未提供时返回 null。 | | `url` | `string\|null` | 原文链接 | `https://www.cls.cn/detail/1234567` | 新闻原文地址;来源未提供时返回 null。 | | `image` | `string\|null` | 封面图片 | `https://img.cls.cn/news/1234567.jpg` | 新闻封面图片地址;来源未提供时返回 null。 | | `rank` | `integer\|null` | 来源排序 | `1` | 新闻在原始来源列表中的排序。 | | `source_id` | `string` | 来源记录 ID | `1234567` | 新闻在原始来源中的记录标识。 | | `item_type` | `string` | 内容类型 | `top_article` | 来源记录的内容类型。 | | `updated_at` | `string` | 缓存更新时间 | `2026-08-23T12:40:00` | Datacenter 新闻快照的采集时间。 |
  • params(object,可选):| 参数 | 类型 | 是否必选 | 示例值 | 描述 | | --- | --- | --- | --- | --- | | `limit` | `integer` | 可选 | `100` | 每个列表或来源分组最多返回的记录数,取值范围 1~500。 | | `view` | `string` | 可选 | `time` | 展示方式:time 按时间列表返回,source 按来源分组返回。 | | `sources` | `string\|array` | 可选 | `cls_depth_1000,yicai_home` | 新闻来源过滤条件。当前支持 cls_depth_1000、cls_depth_1003、cls_hot_article、yicai_home。 | | `keyword` | `string` | 可选 | `人工智能` | 关键词,按标题和摘要模糊搜索。 |
  • keyword(string,可选):关键词,按标题和摘要模糊搜索。
  • limit(integer,可选):每个列表或来源分组最多返回的记录数,取值范围 1~500。
  • sources(string|array<string>,可选):新闻来源过滤条件。当前支持 cls_depth_1000、cls_depth_1003、cls_hot_article、yicai_home。
  • view(string(time / source),可选):展示方式:time 按时间列表返回,source 按来源分组返回。

返回字段

  • published_at(string|null):新闻来源标注的发布时间。
  • display_at(string):用于统一排序和展示的北京时间。
  • time_label(string|null):页面使用的简短时间标签。
  • source(string):新闻来源的稳定代码。
  • source_name(string):新闻来源的中文名称。
  • title(string):新闻标题。
  • summary(string|null):新闻摘要;来源未提供时返回 null。
  • url(string|null):新闻原文地址;来源未提供时返回 null。
  • image(string|null):新闻封面图片地址;来源未提供时返回 null。
  • rank(integer|null):新闻在原始来源列表中的排序。
  • source_id(string):新闻在原始来源中的记录标识。
  • item_type(string):来源记录的内容类型。
  • updated_at(string):Datacenter 新闻快照的采集时间。