← 返回接口文档

GET/api/v1/leagues/detail

获取赛事详情
世界杯专题数据包activebetacore可调用(数据有范围)

接口说明

返回全量赛事数据(建议请求频次:1次/min)

调用信息

请求
GET https://api.sports.csap.ai/api/v1/leagues/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-* 头。 详见通用说明

请求参数 0

该接口无请求参数。

请求示例

curl "https://api.sports.csap.ai/api/v1/leagues/detail" \
  -H "X-API-Key: YOUR_API_KEY"

在线调试

示例返回

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

{
  "code": 0,
  "data": [
    {
      "category_id": "1",
      "category_name": "England",
      "city": null,
      "comp_id": "17",
      "competition_id": "17",
      "country": null,
      "country_id": null,
      "divisions": null,
      "end_time": null,
      "gender": null,
      "group_count": null,
      "has_player_stats": null,
      "has_table": null,
      "has_team_stats": null,
      "host": null,
      "id": 1,
      "is_current": null,
      "kind": null,
      "logo": "http://43.99.60.51:8080/logos/111451bfcfb3f00ac16f90d9240e175ce41561d85fd83baff92a4bcedd73d0a6.webp",
      "logo_hash": null,
      "logo_url": "http://43.99.60.51:8080/logos/111451bfcfb3f00ac16f90d9240e175ce41561d85fd83baff92a4bcedd73d0a6.webp",
      "mode": null,
      "most_titles": null,
      "name_zh": null,
      "name_zht": null,
      "newcomers": null,
      "order": null,
      "primary_color": null,
      "round_count": null,
      "rule": null,
      "season_id": null,
      "seasons": null,
      "secondary_color": null,
      "short_name_zh": null,
      "short_name_zht": null,
      "slug": "premier-league",
      "source": "S2",
      "stages": null,
      "start_time": null,
      "title_holder": null,
      "type": null,
      "uid": 1,
      "updated_at": 1794127801097,
      "user_count": 1186113,
      "year": null
    },
    {
      "category_id": "1",
      "category_name": "England",
      "city": null,
      "comp_id": "18",
      "competition_id": "18",
      "country": null,
      "country_id": null,
      "divisions": null,
      "end_time": null,
      "gender": null,
      "group_count": null,
      "has_player_stats": null,
      "has_table": null,
      "has_team_stats": null,
      "host": null,
      "id": 2,
      "is_current": null,
      "kind": null,
      "logo": "http://43.99.60.51:8080/logos/93688a52d86dca1ec1fbf0a2103ff23dfa2a6321dee0706fc96555355164416a.webp",
      "logo_hash": null,
      "logo_url": "http://43.99.60.51:8080/logos/93688a52d86dca1ec1fbf0a2103ff23dfa2a6321dee0706fc96555355164416a.webp",
      "mode": null,
      "most_titles": null,
      "name_zh": null,
      "name_zht": null,
      "newcomers": null,
      "order": null,
      "primary_color": null,
      "round_count": null,
      "rule": null,
      "season_id": null,
      "seasons": null,
      "secondary_color": null,
      "short_name_zh": null,
      "short_name_zht": null,
      "slug": "championship",
      "source": "S2",
      "stages": null,
      "start_time": null,
      "title_holder": null,
      "type": null,
      "uid": 2,
      "updated_at": 1794127801098,
      "user_count": 126287,
      "year": null
    }
  ],
  "message": "success",
  "success": true
}

返回字段 47

category_idstring分类id示例: "1"
category_namestring分类名示例: "England"
citynull可为空城市
comp_idstring赛事 id示例: "17"
competition_idstring赛事 id示例: "17"
countrynull可为空国家 / 地区
country_idnull可为空国家 / 地区 id
divisionsnull可为空赛事层级 字段说明(为空不存在) · example:[[], [83]]
end_timenull可为空结束时间
gendernull可为空性别
group_countnull可为空总组数
has_player_statsnull可为空是否有球员统计,1-是、0-否
has_tablenull可为空是否有积分榜,1-是、0-否
has_team_statsnull可为空是否有球队统计,1-是、0-否
hostnull可为空东道主(为空不存在)
idinteger记录 id;翻页游标(id 参数取 >= 此值的记录)。比赛类接口里是我方比赛 id(gmid)示例: 1
is_currentnull可为空是否最新赛季,1-是、0-否
kindnull可为空种类
logostringlogo(本平台的图片地址;没有时为空)
logo_hashnull可为空logo 文件的 sha256
logo_urlstringlogo(本平台的图片地址;没有时为空)
modenull可为空比赛模式,1-积分赛、2-淘汰赛
most_titlesnull可为空夺冠最多球队 字段说明(为空不存在) · example:[[10135], 20]
name_enstring英文名示例: "Premier League"
name_zhnull可为空中文名
name_zhtnull可为空繁体中文名
newcomersnull可为空晋级淘汰球队 字段说明(为空不存在) · example:[[10021], [10411]]
ordernull可为空排序,阶段的先后顺序
primary_colornull可为空主颜色,可能不存在
round_countnull可为空总轮数
rulenull可为空情报
season_idnull可为空赛季 id
seasonsnull可为空赛季详情
secondary_colornull可为空次颜色,可能不存在
short_name_ennull可为空英文简称
short_name_zhnull可为空中文简称
short_name_zhtnull可为空粤语简称
slugstring英文短名(URL 用)示例: "premier-league"
sourcestring数据来源代号(S1、S2…)示例: "S2"
stagesnull可为空阶段详情
start_timenull可为空开始时间
title_holdernull可为空卫冕冠军 字段说明(为空不存在) · example:[10181, 6]
typenull可为空类型
uidinteger记录唯一游标 id示例: 1
updated_atinteger最后更新时间(UTC,ISO 8601;增量同步用 time 参数按它取)示例: 1794127801097
user_countinteger示例: 1186113
yearnull可为空赛季年份

错误码

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服务端查询失败,可重试