← 返回接口文档

GET/api/v1/matches/lineups

获取比赛阵容详情
实时数据包世界杯专题数据包activebetacore可调用(数据有范围)

接口说明

返回单场比赛阵容数据(根据“赛程赛果接口”中“是否有阵容”字段来判断是否调用该接口)
请求次数:120次/min

坐标说明:
主队坐标原点:左上;即:x轴方向向右,y轴方向向下;
客队坐标原点:右下;即:x轴方向向左,y轴方向向上。

含球员事件,请求限制:前30天比赛

PS:‘数据更新’接口获取变动比赛id

调用信息

请求
GET https://api.sports.csap.ai/api/v1/matches/lineups
鉴权
请求头 X-API-Key: <你的 key>(也支持 Authorization: Bearer <key>;?key= 仍可用但不建议,key 会留在地址和日志里)
外部 key
可调用(数据有范围)外部 key 可以调用,但只返回开放范围内的数据,见「通用说明 · 外部 key 的数据范围」。
频率限制
每分钟 3000 次 · 每天 200000 次 · 按 key 配置(以 /api/v1/account 返回的 rate_per_min、quota_daily 为准;上面是试用 key 的值),超出回 429。另外整表快照、不带比赛 id 的统计列表等重型请求全站同时只处理 2 个,排不上回 429 + Retry-After。响应里暂时没有 X-RateLimit-* 头。 详见通用说明

请求参数 1

参数类型必填示例说明
idinteger必填5179比赛id

请求示例

curl "https://api.sports.csap.ai/api/v1/matches/lineups?id=5179" \
  -H "X-API-Key: YOUR_API_KEY"

在线调试

示例返回

下面是 2026/11/09 22:28(北京时间) 用外部 key 实际请求的返回:HTTP 200,1000 行,401 ms(数据只留前 2 行)

{
  "code": 0,
  "data": [
    {
      "away": null,
      "away_coach_id": null,
      "away_color": null,
      "away_formation": null,
      "away_score": null,
      "belong": "home",
      "captain": null,
      "confirmed": false,
      "first": null,
      "gpid": 109,
      "home": null,
      "home_coach_id": null,
      "home_color": null,
      "home_formation": null,
      "home_score": null,
      "id": 5390,
      "incidents": null,
      "is_substitute": false,
      "logo": null,
      "match_source": "S4",
      "name": "Phurba Tempa Lachenpa",
      "name_zh": "拉琴帕",
      "national_logo": null,
      "player": null,
      "player_id": "1207576",
      "player_name": "Phurba Lachenpa",
      "player_zh": null,
      "position": "11",
      "rating": null,
      "reason_type": null,
      "shirt_number": "1",
      "side": "home",
      "team_id": null,
      "time": null,
      "type": null,
      "updated_at": 1794081150598,
      "x": null,
      "y": null
    },
    {
      "away": null,
      "away_coach_id": null,
      "away_color": null,
      "away_formation": null,
      "away_score": null,
      "belong": "home",
      "captain": null,
      "confirmed": false,
      "first": null,
      "gpid": 111,
      "home": null,
      "home_coach_id": null,
      "home_color": null,
      "home_formation": null,
      "home_score": null,
      "id": 5391,
      "incidents": null,
      "is_substitute": false,
      "logo": null,
      "match_source": "S4",
      "name": "Diego Živulić",
      "name_zh": "祖维利奇",
      "national_logo": null,
      "player": null,
      "player_id": "251254",
      "player_name": "Diego Živulić",
      "player_zh": null,
      "position": "35",
      "rating": null,
      "reason_type": null,
      "shirt_number": "21",
      "side": "home",
      "team_id": null,
      "time": null,
      "type": null,
      "updated_at": 1794081150600,
      "x": null,
      "y": null
    }
  ],
  "message": "success",
  "success": true
}

返回字段 40

awaynull可为空客队阵型球员列表
away_coach_idnull可为空客队带队教练
away_colornull可为空客队球衣颜色
away_formationnull可为空客队阵型
away_scorenull可为空客队比分(常规时间,含补时)
belongstring发生方,0-中立、1-主队、2-客队示例: "home"
captainnull可为空是否队长,1-是、0-否
confirmedboolean是否为确认阵容示例: false
firstnull可为空是否首发,1-是、0-否
gpidinteger我方球员 id示例: 109
homenull可为空主队阵型球员列表
home_coach_idnull可为空主队带队教练
home_colornull可为空主队球衣颜色
home_formationnull可为空主队阵型
home_scorenull可为空主队比分(常规时间,含补时)
idinteger记录 id;翻页游标(id 参数取 >= 此值的记录)。比赛类接口里是我方比赛 id(gmid)示例: 5390
incidentsnull可为空球员事件列表,有事件存在,默认不存在
is_substituteboolean可为空是否替补示例: false
logonull可为空logo(本平台的图片地址;没有时为空)
match_sourcestring这行数据的来源代号示例: "S4"
gmidinteger可为空我方比赛 id(gmid,全平台唯一)
namestring名称示例: "Phurba Tempa Lachenpa"
name_enstring英文名示例: "Phurba Tempa Lachenpa"
name_zhstring可为空中文名示例: "拉琴帕"
national_logonull可为空球员logo(国家队)
playernull可为空球员名
player_idstring球员 id示例: "1207576"
player_namestring球员名示例: "Phurba Lachenpa"
player_zhnull可为空球员中文名
positionstring可为空位置示例: "11"
ratingnull可为空评分
reason_typenull可为空红黄牌、换人事件原因,详见状态码->事件原因(红黄牌、换人事件存在)
shirt_numberstring球衣号码示例: "1"
sidestringhome 主队 / away 客队示例: "home"
team_idnull可为空球队 id
timenull可为空时间 / 分钟
typenull可为空类型
updated_atinteger最后更新时间(UTC,ISO 8601;增量同步用 time 参数按它取)示例: 1794081150598
xnull可为空阵容x坐标,总共100
ynull可为空阵容y坐标,总共100

错误码

HTTPmessage场景
401missing API key / unauthorized没带 X-API-Key 或 key 无效、已停用
400bad param …参数格式不对(如 id 不是数字或 u<uid>)
301match merged into <gmid>按旧比赛 id 查,这场已合并到新 gmid:Location 指向新地址,返回体带 moved_to
404not found比赛 / 球队 / 赛事不存在,或不在这个 key 的可见范围内(外部 key 只能看到开放范围内的比赛)
429rate limit exceeded / daily quota exceeded超过 key 的每分钟次数或每日配额
429server busy, retry later服务端并发名额已满(重型请求同时只有 2 个),按 Retry-After 秒后重试
500query error服务端查询失败,可重试