接口说明
返回指定赛季id的最佳阵容数据(建议请求频次:60次/min)
调用信息
- 请求
GET https://api.sports.csap.ai/api/v1/matches/season/best/lineups/detail- 鉴权
- 请求头 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
| 参数 | 类型 | 必填 | 示例 | 说明 |
|---|---|---|---|---|
| season_id | string | 必填 | 赛季id查询 |
请求示例
curl "https://api.sports.csap.ai/api/v1/matches/season/best/lineups/detail" \ -H "X-API-Key: YOUR_API_KEY"
在线调试
示例返回
{
"code": 0,
"data": [
{
"competition_id": "16",
"details": null,
"formation": "4-1-2-3",
"location_x": null,
"location_y": null,
"name_zh": null,
"player_id": "556866",
"player_name": "Gregor Kobel",
"position": "G",
"rating": null,
"season_id": "58210",
"source": "S2",
"stage_id": "58210",
"team_id": null,
"update_time": null,
"updated_at": 1794214860293
},
{
"competition_id": "16",
"details": null,
"formation": "4-1-2-3",
"location_x": null,
"location_y": null,
"name_zh": null,
"player_id": "913654",
"player_name": "Pedro Porro",
"position": "D",
"rating": null,
"season_id": "58210",
"source": "S2",
"stage_id": "58210",
"team_id": null,
"update_time": null,
"updated_at": 1794214860299
}
],
"message": "success",
"success": true
}返回字段 17
competition_idstring赛事 id
示例: "16"detailsnull可为空阵容球员列表
formationstring阵型
示例: "4-1-2-3"location_xnull可为空x坐标,总共100
location_ynull可为空y坐标,总共100
name_ennull可为空英文名
name_zhnull可为空中文名
player_idstring球员 id
示例: "556866"player_namestring球员名
示例: "Gregor Kobel"positionstring位置
示例: "G"ratingnull可为空评分
season_idstring赛季 id
示例: "58210"sourcestring数据来源代号(S1、S2…)
示例: "S2"stage_idstring阶段id
示例: "58210"team_idnull可为空球队 id
update_timenull可为空数据发布时间
updated_atinteger最后更新时间(UTC,ISO 8601;增量同步用 time 参数按它取)
示例: 1794214860293错误码
| HTTP | message | 场景 |
|---|---|---|
| 401 | missing API key / unauthorized | 没带 X-API-Key 或 key 无效、已停用 |
| 429 | rate limit exceeded / daily quota exceeded | 超过 key 的每分钟次数或每日配额 |
| 429 | server busy, retry later | 服务端并发名额已满(重型请求同时只有 2 个),按 Retry-After 秒后重试 |
| 500 | query error | 服务端查询失败,可重试 |