跳转到主要内容

数据流内容

针对特定 fixtureId 的实时比分更新。 每个 payload.scores 对象按节次(resultp1 等)进行键控。

路由

  • 实体键:payload.fixtureId
  • 过滤器:sportIdstournamentIdsfixtureIds
  • 访问权限:由您的 apiKey 决定直播/赛前访问权

负载结构

字段类型描述
fixtureIdstring此比分适用的赛事
scoresobject各节次比分
scores[period]object每节的比分和元数据
updatedAtstring (ISO)此节次最后已知更新时间

示例:结果更新

{
  "channel": "scores",
  "type": "UPDATE",
  "payload": {
    "fixtureId": "id1500025662664057",
    "scores": {
      "result": {
        "period": "result",
        "participant1Score": 2,
        "participant2Score": 1,
        "updatedAt": "2025-12-28T16:24:11.426852+00:00"
      }
    }
  },
  "ts": 1766939805321,
  "entryId": "1766939805321-3077"
}

示例:多节次更新

{
  "channel": "scores",
  "type": "UPDATE",
  "payload": {
    "fixtureId": "id2503637767171366",
    "scores": {
      "p1": {
        "period": "p1",
        "participant1Score": 7,
        "participant2Score": 6,
        "updatedAt": "2025-12-28T16:34:02.865934+00:00"
      },
      "result": {
        "period": "result",
        "participant1Score": 0,
        "participant2Score": 0,
        "updatedAt": "2025-12-28T16:32:18.616082+00:00"
      }
    }
  },
  "ts": 1766939642953,
  "entryId": "1766939642953-1905"
}

说明

  • 节次可能包括 resultp11stHalf
  • 使用 updatedAt 检测过期比分
  • 此数据流包含比赛状态(参见 fixtures