账户
浏览产品与网站导航

比赛-阵容列表

GET https://api.superscore.cn/football/change/lineupList

接口说明

建议每60秒更新

请求方式
GET
请求地址
https://api.superscore.cn/football/change/lineupList
Content-Type
application/x-www-form-urlencoded;charset=UTF-8

请求头与鉴权

字段类型必填文档示例值说明
tokenstring是传商户KEYtoken(传商户KEY)仅供测试,正式站请设置IP

商户密钥仅保存在自己的服务端。测试 token 与正式 IP 授权的适用范围以本表及账户授权说明为准。

请求参数

Query 查询参数

无需额外查询参数。

示例值用于说明字段;比赛、球队、联赛等 ID 应从实际接口取得,不能直接使用占位值。字段中的日期、枚举、分页范围与更新建议完整保留原始说明。

调用示例

替换 YOUR_MERCHANT_KEY、YOUR_MATCH_ID 等占位值后,在已授权的服务端调用。示例不会在本页面发起真实请求。

cURL

curl --get 'https://api.superscore.cn/football/change/lineupList' \
  --header 'token: YOUR_MERCHANT_KEY'

JavaScript / Node.js

// 仅在服务端保存商户密钥;替换示例占位值。
const url = new URL("https://api.superscore.cn/football/change/lineupList");
url.search = new URLSearchParams({});
const response = await fetch(url, {
  method: "GET",
  headers: {
  "token": "YOUR_MERCHANT_KEY"
}
});
if (!response.ok) throw new Error('HTTP ' + response.status);
const result = await response.json();
if (result.success !== true) throw new Error(String(result.message || result.code));
console.log(result.data);
Python 标准库示例
# 标准库示例;商户密钥仅保存在服务端。
import json
from urllib.parse import urlencode
from urllib.request import Request, urlopen

parameters = {}
headers = {
  "token": "YOUR_MERCHANT_KEY"
}
url = "https://api.superscore.cn/football/change/lineupList"
if parameters:
    url += '?' + urlencode(parameters)
with urlopen(Request(url, headers=headers, method="GET"), timeout=15) as response:
    result = json.load(response)
if not result.get('success'):
    raise RuntimeError(result.get('message') or result.get('code'))
print(result.get('data'))

返回参数

字段路径保留完整层级;[] 表示数组元素,<key> 表示按数据内容变化的映射键。success、code、message 与 data 均按接口定义列出。

字段路径类型说明与枚举
successboolean状态码
codestring状态编号
messagestring描述
dataarray数据
data[].matchIdint32比赛ID
data[].homeFormationstring主队阵型
data[].awayFormationstring客队阵型
data[].homeStartersarray主队首发
data[].homeStarters[].playerIdint32球员ID
data[].homeStarters[].namestring球员名称
data[].homeStarters[].imagestring球员图片
data[].homeStarters[].numberint32号码
data[].homeStarters[].positionint32位置
data[].homeStarters[].positionXint32位置X
data[].homeStarters[].positionYint32位置Y
data[].homeStarters[].isStarterint32是否首发
data[].homeStarters[].substituteTimeint32替补时间
data[].homeStarters[].goalsint32进球数
data[].homeStarters[].assistsint32助攻数
data[].homeStarters[].yellowCardsint32黄牌
data[].homeStarters[].redCardsint32红牌
data[].homeStarters[].ratingstring评分
data[].awayStartersarray客队首发
data[].awayStarters[].playerIdint32球员ID
data[].awayStarters[].namestring球员名称
data[].awayStarters[].imagestring球员图片
data[].awayStarters[].numberint32号码
data[].awayStarters[].positionint32位置
data[].awayStarters[].positionXint32位置X
data[].awayStarters[].positionYint32位置Y
data[].awayStarters[].isStarterint32是否首发
data[].awayStarters[].substituteTimeint32替补时间
data[].awayStarters[].goalsint32进球数
data[].awayStarters[].assistsint32助攻数
data[].awayStarters[].yellowCardsint32黄牌
data[].awayStarters[].redCardsint32红牌
data[].awayStarters[].ratingstring评分
data[].homeSubstitutesarray主队替补
data[].homeSubstitutes[].playerIdint32球员ID
data[].homeSubstitutes[].namestring球员名称
data[].homeSubstitutes[].imagestring球员图片
data[].homeSubstitutes[].numberint32号码
data[].homeSubstitutes[].positionint32位置
data[].homeSubstitutes[].positionXint32位置X
data[].homeSubstitutes[].positionYint32位置Y
data[].homeSubstitutes[].isStarterint32是否首发
data[].homeSubstitutes[].substituteTimeint32替补时间
data[].homeSubstitutes[].goalsint32进球数
data[].homeSubstitutes[].assistsint32助攻数
data[].homeSubstitutes[].yellowCardsint32黄牌
data[].homeSubstitutes[].redCardsint32红牌
data[].homeSubstitutes[].ratingstring评分
data[].awaySubstitutesarray客队替补
data[].awaySubstitutes[].playerIdint32球员ID
data[].awaySubstitutes[].namestring球员名称
data[].awaySubstitutes[].imagestring球员图片
data[].awaySubstitutes[].numberint32号码
data[].awaySubstitutes[].positionint32位置
data[].awaySubstitutes[].positionXint32位置X
data[].awaySubstitutes[].positionYint32位置Y
data[].awaySubstitutes[].isStarterint32是否首发
data[].awaySubstitutes[].substituteTimeint32替补时间
data[].awaySubstitutes[].goalsint32进球数
data[].awaySubstitutes[].assistsint32助攻数
data[].awaySubstitutes[].yellowCardsint32黄牌
data[].awaySubstitutes[].redCardsint32红牌
data[].awaySubstitutes[].ratingstring评分

响应结构示例

下面的值仅展示字段类型,不是实时数据或真实调用结果。动态 map 的键取决于实际返回,不编造固定字段。

展开完整 JSON 结构
{
  "success": false,
  "code": "示例字符串",
  "message": "示例字符串",
  "data": [
    {
      "matchId": 0,
      "homeFormation": "示例字符串",
      "awayFormation": "示例字符串",
      "homeStarters": [
        {
          "playerId": 0,
          "name": "示例字符串",
          "image": "示例字符串",
          "number": 0,
          "position": 0,
          "positionX": 0,
          "positionY": 0,
          "isStarter": 0,
          "substituteTime": 0,
          "goals": 0,
          "assists": 0,
          "yellowCards": 0,
          "redCards": 0,
          "rating": "示例字符串"
        }
      ],
      "awayStarters": [
        {
          "playerId": 0,
          "name": "示例字符串",
          "image": "示例字符串",
          "number": 0,
          "position": 0,
          "positionX": 0,
          "positionY": 0,
          "isStarter": 0,
          "substituteTime": 0,
          "goals": 0,
          "assists": 0,
          "yellowCards": 0,
          "redCards": 0,
          "rating": "示例字符串"
        }
      ],
      "homeSubstitutes": [
        {
          "playerId": 0,
          "name": "示例字符串",
          "image": "示例字符串",
          "number": 0,
          "position": 0,
          "positionX": 0,
          "positionY": 0,
          "isStarter": 0,
          "substituteTime": 0,
          "goals": 0,
          "assists": 0,
          "yellowCards": 0,
          "redCards": 0,
          "rating": "示例字符串"
        }
      ],
      "awaySubstitutes": [
        {
          "playerId": 0,
          "name": "示例字符串",
          "image": "示例字符串",
          "number": 0,
          "position": 0,
          "positionX": 0,
          "positionY": 0,
          "isStarter": 0,
          "substituteTime": 0,
          "goals": 0,
          "assists": 0,
          "yellowCards": 0,
          "redCards": 0,
          "rating": "示例字符串"
        }
      ]
    }
  ]
}

错误处理与使用说明

  1. 先检查 HTTP 状态,再解析 JSON;网络失败或非 JSON 响应不能当作成功。
  2. 业务响应 success 为 false 时,读取 code 和 message;不要把业务错误与 HTTP 状态混为一谈。
  3. 保存原始错误码、请求时间及接口路径用于排查,日志中移除商户密钥。
  4. 按该接口的数据更新建议、账户授权和调用频率请求;日期和时间戳单位以字段说明为准。
  5. 允许字段缺失或数据为空,按接口中的稳定 ID 关联资料,不依赖数组顺序。