接口说明
去重合并后的全局球员,按全局 id(gpid)查询。带多语言名、位置、球衣号、国籍,以及深度资料 birthday / height / weight / preferred_foot。游标用 id(uid),limit 上限 1000。
调用信息
- 请求
GET https://api.sports.csap.ai/api/v1/players/global- 鉴权
- 请求头 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-* 头。 详见通用说明
请求参数 3
| 参数 | 类型 | 必填 | 示例 | 说明 |
|---|---|---|---|---|
| id | integer | 可选 | 6917 | 游标:返回 uid(=gpid)>= 此值;支持批量 id=1,2,3 |
| time | integer | 可选 | 增量:更新时间 >= 此 unix 秒 | |
| limit | integer | 可选 | 2 | 默认 1000,最大 1000 |
请求示例
curl "https://api.sports.csap.ai/api/v1/players/global?limit=2" \ -H "X-API-Key: YOUR_API_KEY"
在线调试
示例返回
{
"code": 0,
"data": [
{
"birthday": null,
"contract_until": null,
"gpid": 1,
"height": null,
"logo": "http://43.99.60.51:8080/logos/eb96c508b9667372c09a7c65500ffdceda500e4951fcadafa2b71ba9a763a396.webp",
"name_zh": "英戈洛蒂",
"name_zht": null,
"nationality": null,
"position": "G",
"position_id": 5,
"position_zh": "守门员",
"preferred_foot": null,
"shirt_number": "1",
"source_count": 5,
"sources": {
"S2": "871745",
"S3": "90993",
"S4": "844389",
"S5": "jr7owi2pemteq0e",
"S8": "167458"
},
"uid": 1,
"updated_at": "2026-11-09T14:24:18.565174Z",
"weight": null
},
{
"birthday": null,
"contract_until": null,
"gpid": 2,
"height": null,
"logo": "http://43.99.60.51:8080/logos/39d90a87c7de8f5b4b13325971b80e5df5e6e5e60592b0f9731e33d291ef858f.webp",
"name_zh": "帕拉西奥多",
"name_zht": null,
"nationality": null,
"position": "D",
"position_id": 4,
"position_zh": "后卫",
"preferred_foot": null,
"shirt_number": "24",
"source_count": 5,
"sources": {
"S2": "546338",
"S3": "54378",
"S4": "426353",
"S5": "m2q15igj43tj76x",
"S8": "121061"
},
"uid": 2,
"updated_at": "2026-11-09T14:24:21.45685Z",
"weight": null
}
],
"message": "success",
"success": true
}返回字段 20
birthdaynull可为空出生日期
contract_untilnull可为空合同到期日
gpidinteger我方球员 id
示例: 1heightnull可为空身高(厘米)
logostringlogo(本平台的图片地址;没有时为空)
name_enstring英文名
示例: "Luis Ingolotti"name_zhstring中文名
示例: "英戈洛蒂"name_zhtnull可为空繁体中文名
nationalitynull可为空国籍
positionstring位置
示例: "G"position_idinteger
示例: 5position_zhstring位置中文名
示例: "守门员"preferred_footnull可为空惯用脚
shirt_numberstring球衣号码
示例: "1"short_name_ennull可为空英文简称
source_countinteger来源数
示例: 5sourcesobject这条合并记录的来源代号列表(逗号分隔)· 5
uidinteger记录唯一游标 id
示例: 1updated_atstring最后更新时间(UTC,ISO 8601;增量同步用 time 参数按它取)
示例: "2026-11-09T14:24:18.565174Z"weightnull可为空体重 kg(多数为空)
错误码
| HTTP | message | 场景 |
|---|---|---|
| 401 | missing API key / unauthorized | 没带 X-API-Key 或 key 无效、已停用 |
| 400 | bad param … | 参数格式不对(如 id 不是数字或 u<uid>) |
| 301 | match merged into <gmid> | 按旧比赛 id 查,这场已合并到新 gmid:Location 指向新地址,返回体带 moved_to |
| 404 | not found | 比赛 / 球队 / 赛事不存在,或不在这个 key 的可见范围内(外部 key 只能看到开放范围内的比赛) |
| 429 | rate limit exceeded / daily quota exceeded | 超过 key 的每分钟次数或每日配额 |
| 429 | server busy, retry later | 服务端并发名额已满(重型请求同时只有 2 个),按 Retry-After 秒后重试 |
| 500 | query error | 服务端查询失败,可重试 |