← 返回接口文档

GET/api/v1/data/delete/records

获取删除数据
实时数据包世界杯专题数据包activebetacore可调用

接口说明

返回最近24小时内删除的数据id(比赛、球队、球员、教练、赛事、赛季、阶段),需定时同步

建议请求频次:1~5min/次

调用信息

请求
GET https://api.sports.csap.ai/api/v1/data/delete/records
鉴权
请求头 X-API-Key: <你的 key>(也支持 Authorization: Bearer <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-* 头。 详见通用说明

请求参数 0

该接口无请求参数。

请求示例

curl "https://api.sports.csap.ai/api/v1/data/delete/records" \
  -H "X-API-Key: YOUR_API_KEY"

在线调试

示例返回

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

{
  "code": 0,
  "data": [
    {
      "coach": null,
      "competition": null,
      "deleted_at": "2026-11-05T09:41:04.72405Z",
      "entity_id": "1431",
      "entity_type": "match",
      "match": null,
      "player": null,
      "season": null,
      "stage": null,
      "team": null,
      "updated_at": 1793871664724
    },
    {
      "coach": null,
      "competition": null,
      "deleted_at": "2026-11-05T09:41:04.72405Z",
      "entity_id": "1734",
      "entity_type": "match",
      "match": null,
      "player": null,
      "season": null,
      "stage": null,
      "team": null,
      "updated_at": 1793871664724
    }
  ],
  "message": "success",
  "success": true
}

返回字段 11

coachnull可为空没有数据,字段不存在 · example:[0]
competitionnull可为空赛事
deleted_atstring示例: "2026-11-05T09:41:04.72405Z"
entity_idstring示例: "1431"
entity_typestring示例: "match"
matchnull可为空没有数据,字段不存在 · example:[0]
playernull可为空球员名
seasonnull可为空赛季
stagenull可为空没有数据,字段不存在 · example:[0]
teamnull可为空球队名
updated_atinteger最后更新时间(UTC,ISO 8601;增量同步用 time 参数按它取)示例: 1793871664724

错误码

HTTPmessage场景
401missing API key / unauthorized没带 X-API-Key 或 key 无效、已停用
429rate limit exceeded / daily quota exceeded超过 key 的每分钟次数或每日配额
429server busy, retry later服务端并发名额已满(重型请求同时只有 2 个),按 Retry-After 秒后重试
500query error服务端查询失败,可重试