PRDS DATA 开发文档 首页 密钥登录

四、通用新闻

4.1 通用新闻

GET/api/latest

财经、经济、突发事件等多语言、多国家的新闻,可以按国家、语言、类型、关键字、时间范围、情绪筛选,带正文、图片和视频地址。

用途地址
通用新闻http://hk.psbangu.cn:2004/api/latest

通用新闻单独一个端口(2004),鉴权方式和其它接口相同。下面的参数全部是可选的。

请求

请求头 Authorization:你的密钥(必填)。

参数是否必填说明
country可选国家代码,如 us;全部取值见「新闻的国家与语言代码」
language可选语言代码,如 en
category可选新闻类型,如 business;可选值见下面
q可选搜索关键字,需要 URL 编码,最长 512 个字符
qInTitle可选只在标题里搜索的关键字,需要 URL 编码,最长 512 个字符
qInMeta可选在标题、网址、关键词和摘要里搜索的关键字,需要 URL 编码;不能和 q、qInTitle 一起用
timeframe可选只要最近一段时间的新闻:按小时直接写数字(1~48),按分钟在数字后面加 m(1m~2880m)
sentiment可选按情绪筛选:positive、neutral、negative
prioritydomain可选只要热门新闻站点的:top 前 10%、medium 前 30%、low 前 50%
removeduplicate可选1 去掉重复的文章,0 不去
full_content可选是否返回正文:1 返回,0 不返回(content 为 null);不传时返回
image可选是否返回图片地址:1 返回,0 不返回(image_url 为 null);不传时返回
video可选是否返回视频地址:1 返回,0 不返回
size可选每页条数,1~50
page可选翻页用:填上一次返回里的 nextPage

新闻类型 category

business、crime、domestic、education、entertainment、environment、food、health、lifestyle、other、politics、science、sports、technology、top、tourism、world

返回

字段说明
status成功时为 success
totalResults符合条件的新闻总条数
results本页的新闻(数组)
nextPage下一页的起始值,翻页时填到 page 参数里

results 每条的字段

字段说明
article_id文章编号
title标题
link原文地址
description摘要
content正文
keywords关键词(数组)
creator作者(数组),没有为 null
pubDate发布时间,yyyy-MM-dd HH:mm:ss
pubDateTZ发布时间的时区,UTC
fetched_at收录时间
image_url图片地址
video_url视频地址
source_id新闻站点的标识
source_name新闻站点的名称
source_url新闻站点的网址
source_icon新闻站点的图标
source_priority新闻站点的热门程度排名,数字越小越热门
language语言,英文全称(如 english)
country国家(数组),英文全称(如 united states of america)
category新闻类型(数组)
datatype内容类型
sentiment情绪:positive、neutral、negative
sentiment_stats三种情绪各自的占比
ai_tag自动识别的主题
ai_region自动识别的地区
ai_org自动识别的机构
ai_summary自动生成的摘要
duplicate是否是重复文章

说明

错误

HTTP返回情况
200{"Cmd":"api","State":-1,"Msg":"订单[密钥]已过期或者次数不足"}没带密钥、密钥无效、已过期或次数用完
200{"Cmd":"api","State":-1,"Msg":"接口请求出错,请检测参数,或者请联系管理员!"}参数不对,如 category 写错、size 超过 50、qInMeta 和 q 一起用

示例

GET/latest?country=us&language=en&category=business&q=Tesla&size=2

请求头 Authorization: 你的密钥 · HTTP 200

{
  "status": "success",                                   // 成功时为 success
  "totalResults": 77,                                    // 符合条件的新闻总条数
  "results": [                                           // 本页的新闻
    {
      "article_id": "cdcc48a6ad9de56032d9c12380815c98",  // 文章编号
      // 原文地址
      "link": "https://nynewscast.com/ccb-investigation-notification-coastal-financial-is-under-investigation-for-securities-fraud-over-banking-services-issues-contact-bfa-law-if-you-suffered-losses-262581/",
      // 标题
      "title": "CCB Investigation Notification: Coastal Financial is Under Investigation for Securities Fraud over Banking Services Issues – Contact BFA Law if You Suffered Losses",
      // 摘要
      "description": "BFA Law is investigating whether Coastal Financial Corporation committed securities fraud relating to statements concerning the financial performance and credit quality of its banking as a service segment, including the.…",
      // 正文
      "content": "CCB Investigation Notification: Coastal Financial is Under Investigation for Securities Fraud over Banking Services Issues – Contact BFA Law if You Suffered Losses BFA Law is investigating whether Coastal Financial Corpo…",
      "keywords": [                                      // 关键词(数组)
        "brand post"
      ],
      "creator": [                                       // 作者(数组),没有为 null
        "globenewswire"
      ],
      "language": "english",                             // 语言,英文全称(如 english)
      "country": [                                       // 国家(数组),英文全称(如 united states of america)
        "united states of america"
      ],
      "category": [                                      // 新闻类型(数组)
        "top"
      ],
      "datatype": "news",                                // 内容类型
      "pubDate": "2026-10-05 10:07:00",                  // 发布时间,yyyy-MM-dd HH:mm:ss
      "pubDateTZ": "UTC",                                // 发布时间的时区,UTC
      "fetched_at": "2026-10-05 10:28:28",               // 收录时间
      // 图片地址
      "image_url": "https://nynewscast.com/wp-content/uploads/2025/10/WhatsApp-Image-2025-10-31-at-00.04.14.jpeg",
      "video_url": null,                                 // 视频地址
      "source_id": "nynewscast",                         // 新闻站点的标识
      "source_name": "Nynewscast",                       // 新闻站点的名称
      "source_priority": 99999999,                       // 新闻站点的热门程度排名,数字越小越热门
      "source_url": "https://nynewscast.com",            // 新闻站点的网址
      "source_icon": "https://i.newsdata.io/nynewscast.png",  // 新闻站点的图标
      "sentiment": "neutral",                            // 情绪:positive、neutral、negative
      "sentiment_stats": {                               // 三种情绪各自的占比
        "negative": 20.8,                                // 负面的占比(%)
        "neutral": 79.08,                                // 中性的占比(%)
        "positive": 0.12                                 // 正面的占比(%)
      },
      "ai_tag": [                                        // 自动识别的主题
        "banking and finance"
      ],
      "ai_region": null,                                 // 自动识别的地区
      "ai_org": [                                        // 自动识别的机构
        "coastal financial"
      ],
      // 自动生成的摘要
      "ai_summary": "BFA Law is investigating Coastal Financial Corporation for potential securities fraud related to statements about the financial performance and credit quality of its banking as a service segment, including CCBX partner r…",
      "duplicate": false                                 // 是否是重复文章
    }
  ],
  "nextPage": "1791194820519981649"                      // 下一页的起始值,翻页时填到 page 参数里
}

results 共 2 条,示例只列出前 1 条;results.category 共 2 条,示例只列出前 1 条;results.ai_org 共 3 条,示例只列出前 1 条。