REST 接口 · 文档目录

美股 新闻资讯 · REST 接口

新闻资讯。获取指定代码的最新相关新闻,含摘要、来源详情与情绪分析。该接口汇总相关财经新闻,提取关联代码、给出情绪判断并提供原文链接,同时附发布方信息、文章元数据与情绪依据,便于快速把握市场情绪与公司动态。

GET /v2/reference/news
上游时效说明

每小时更新

上游历史范围

数据可追溯至 2016 年 6 月 22 日

适用场景

  • 市场情绪分析、投资研究、自动化监控、组合策略优化。
接入地址与凭据以实际开通时下发为准。下面是上游字段定义与响应示例,文档收录不等于本站已开放全部能力。

查询参数

参数类型必填说明
tickerstringNo指定区分大小写的标的代码。例如 AAPL 代表苹果公司。
published_utcN/ANo返回在该日期当日、之前或之后发布的结果。
ticker.gtestringNo按 ticker 搜索。
ticker.gtstringNo按 ticker 搜索。
ticker.ltestringNo按 ticker 搜索。
ticker.ltstringNo按 ticker 搜索。
published_utc.gteN/ANo按 published_utc 搜索。
published_utc.gtN/ANo按 published_utc 搜索。
published_utc.lteN/ANo按 published_utc 搜索。
published_utc.ltN/ANo按 published_utc 搜索。
orderstringNo按 sort 字段对结果排序。
limitintegerNo限制返回结果数量,默认 10,最大 1000。
sortstringNo用于排序的字段。

响应字段

字段类型说明
countinteger本次请求的结果总数。
next_urlstring若存在,可用该值获取下一页数据。
request_idstring服务器分配的请求 ID。
resultsarray[object]包含所请求数据的数组。
results[].amp_urlstring适配移动端的加速移动页面(AMP)URL。
results[].article_urlstring新闻文章的链接。
results[].authorstring文章作者。
results[].descriptionstring文章摘要。
results[].idstring文章的唯一标识。
results[].image_urlstring文章的图片 URL。
results[].insightsarray[object]与文章相关的洞察分析。
results[].keywordsarray[string]与文章关联的关键词(因发布来源不同而有所差异)。
results[].published_utcstring文章发布的 UTC 日期与时间,采用 RFC3339 标准格式(如 YYYY-MM-DDTHH:MM:SSZ)。
results[].publisherobject新闻文章来源的详细信息,含发布方名称、标识与主页 URL。这些信息便于用户识别并访问新闻内容的原始来源。
results[].tickersarray[string]与文章关联的代码。
results[].titlestring新闻文章的标题。
statusstring本次请求响应的状态。

响应示例

{
  "count": 1,
  "next_url": "https://api.massive.com:443/v2/reference/news?cursor=eyJsaW1pdCI6MSwic29ydCI6InB1Ymxpc2hlZF91dGMiLCJvcmRlciI6ImFzY2VuZGluZyIsInRpY2tlciI6e30sInB1Ymxpc2hlZF91dGMiOnsiZ3RlIjoiMjAyMS0wNC0yNiJ9LCJzZWFyY2hfYWZ0ZXIiOlsxNjE5NDA0Mzk3MDAwLG51bGxdfQ",
  "request_id": "831afdb0b8078549fed053476984947a",
  "results": [
    {
      "amp_url": "https://m.uk.investing.com/news/stock-market-news/markets-are-underestimating-fed-cuts-ubs-3559968?ampMode=1",
      "article_url": "https://uk.investing.com/news/stock-market-news/markets-are-underestimating-fed-cuts-ubs-3559968",
      "author": "Sam Boughedda",
      "description": "UBS analysts warn that markets are underestimating the extent of future interest rate cuts by the Federal Reserve, as the weakening economy is likely to justify more cuts than currently anticipated.",
      "id": "8ec638777ca03b553ae516761c2a22ba2fdd2f37befae3ab6fdab74e9e5193eb",
      "image_url": "https://i-invdn-com.investing.com/news/LYNXNPEC4I0AL_L.jpg",
      "insights": [
        {
          "sentiment": "positive",
          "sentiment_reasoning": "UBS analysts are providing a bullish outlook on the extent of future Federal Reserve rate cuts, suggesting that markets are underestimating the number of cuts that will occur.",
          "ticker": "UBS"
        }
      ],
      "keywords": [
        "Federal Reserve",
        "interest rates",
        "economic data"
      ],
      "published_utc": "2024-06-24T18:33:53Z",
      "publisher": {
        "favicon_url": "https://s3.massive.com/public/assets/news/favicons/investing.ico",
        "homepage_url": "https://www.investing.com/",
        "logo_url": "https://s3.massive.com/public/assets/news/logos/investing.png",
        "name": "Investing.com"
      },
      "tickers": [
        "UBS"
      ],
      "title": "Markets are underestimating Fed cuts: UBS By Investing.com - Investing.com UK"
    }
  ],
  "status": "OK"
}

原文:Massive 文档 ↗