接口说明
返回查询球队的记录数据
请求次数:120次/min
请求次数:120次/min
调用信息
- 请求
GET https://api.sports.csap.ai/api/v1/teams/records/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-* 头。 详见通用说明
请求参数 2
| 参数 | 类型 | 必填 | 示例 | 说明 |
|---|---|---|---|---|
| ids | string | 必填 | 多id查询,逗号(,)区分,最大200个 | |
| type | string | 必填 | 记录类型,1-最年轻进球记录、2-最年长进球记录、3-被进球记录 |
请求示例
curl "https://api.sports.csap.ai/api/v1/teams/records/detail" \ -H "X-API-Key: YOUR_API_KEY"
在线调试
示例返回
{
"code": 0,
"data": [
{
"age": null,
"goals": null,
"id": 51,
"matches": null,
"owner_id": "281",
"player_id": "174694",
"player_name": "Rony Lopes",
"record": null,
"record_type": "youngest_scorer",
"scope": "team",
"season_id": null,
"source": "S6",
"team_id": "281",
"time": 1357344000,
"updated_at": 1793900581565,
"value": null
},
{
"age": null,
"goals": null,
"id": 52,
"matches": null,
"owner_id": "281",
"player_id": "1513598",
"player_name": "Ron Frost",
"record": null,
"record_type": "youngest_scorer",
"scope": "team",
"season_id": null,
"source": "S6",
"team_id": "281",
"time": -185500800,
"updated_at": 1793900581565,
"value": null
}
],
"message": "success",
"success": true
}返回字段 16
agestring可为空年龄
示例: "17/2/23"goalsnull可为空进球
idinteger记录 id;翻页游标(id 参数取 >= 此值的记录)。比赛类接口里是我方比赛 id(gmid)
示例: 51matchesnull可为空场次
owner_idstring所属球队 / 赛事 id
示例: "281"player_idstring球员 id
示例: "174694"player_namestring球员名
示例: "Rony Lopes"recordnull可为空球队记录列表
record_typestring记录类型
示例: "youngest_scorer"scopestring范围
示例: "team"season_idnull可为空赛季 id
sourcestring数据来源代号(S1、S2…)
示例: "S6"team_idstring球队 id
示例: "281"timeinteger时间 / 分钟
示例: 1357344000updated_atinteger最后更新时间(UTC,ISO 8601;增量同步用 time 参数按它取)
示例: 1793900581565valuenull可为空值
错误码
| 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 | 服务端查询失败,可重试 |