- 快速开始
- API指南
- API文档
- 体育比分
- 基础数据
- 实时数据
- 指数数据
- 统计数据
- 高阶数据
- 历史数据
- 比赛对应接口
- 长链接推送
- 基础数据
- 电竞比分
- 体彩数据
- 媒体数据
- 动画直播
- 常见问题
- 更新日志
篮球重要事件接口
正式环境
正式环境
GET
/sport/api/v3/live/201/event
获取篮球比赛的重要事件数据-自定义参数查询(不同项目的路径不同)
该接口返回所请求参数的全量重要事件数据(请求限制:前后30天的赛程)
更新数据:
方案1:有需求时请求指定比赛的重要事件数据:
方案2:接推送,接收实时有变化的数据(长链接推送/实时数据增强版/事件数据推送)
频率限制:30次/min
请求参数
Query 参数
match_id
string
可选
示例值:
443027
page
integer
页数
per_page
integer
每页数据条数
recent_update
string
可选
Header 参数
app_id
string
用户ID
默认值:
marz2025
app_secret
string
用户秘钥
默认值:
d9b8eafc3b5a48b7a5f1c6d2e4f8a9e5b3d7c2a1f4e6b8a9d5f1c7e2b9d3a6f4
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.esportsdata.cc/sport/api/v3/live/201/event?match_id=443027&page&per_page&recent_update' \
--header 'app_id;' \
--header 'app_secret;'
返回响应
🟢200成功
application/json
Body
code
integer
错误码
data
object
必需
list
array [object {4}]
必需
total
integer
总条数
msg
string
接口响应信息
示例
{
"code": 0,
"data": {
"list": [
{
"sport_id": 201,
"match_id": 2755208,
"event_data": [
{
"type": 11,
"position": 0,
"state": 0,
"time": 700,
"event_time": 1718671139,
"home_score": 0,
"away_score": 0,
"reason": 0,
"result": 0
},
{
"type": 1,
"position": 1,
"state": 1,
"time": 700,
"event_time": 1718671139,
"home_score": 2,
"away_score": 0,
"reason": 1,
"result": 1
},
{
"type": 2,
"position": 2,
"state": 1,
"time": 676,
"event_time": 1718671168,
"home_score": 2,
"away_score": 0,
"reason": 3,
"result": 8
},
{
"type": 2,
"position": 1,
"state": 1,
"time": 642,
"event_time": 1718671240,
"home_score": 2,
"away_score": 0,
"reason": 3,
"result": 8
},
{
"type": 1,
"position": 1,
"state": 1,
"time": 574,
"event_time": 1718671322,
"home_score": 4,
"away_score": 0,
"reason": 1,
"result": 1
},
{
"type": 1,
"position": 2,
"state": 1,
"time": 539,
"event_time": 1718671369,
"home_score": 4,
"away_score": 2,
"reason": 1,
"result": 1
},
{
"type": 1,
"position": 1,
"state": 1,
"time": 508,
"event_time": 1718671415,
"home_score": 4,
"away_score": 2,
"reason": 1,
"result": 1
},
{
"type": 1,
"position": 1,
"state": 1,
"time": 448,
"event_time": 1718671519,
"home_score": 9,
"away_score": 2,
"reason": 1,
"result": 2
},
{
"type": 10,
"position": 2,
"state": 1,
"time": 448,
"event_time": 1718671526,
"home_score": 9,
"away_score": 2,
"reason": 5,
"result": 16
},
{
"type": 2,
"position": 1,
"state": 1,
"time": 432,
"event_time": 1718671764,
"home_score": 9,
"away_score": 2,
"reason": 3,
"result": 8
},
{
"type": 1,
"position": 2,
"state": 1,
"time": 422,
"event_time": 1718671795,
"home_score": 9,
"away_score": 4,
"reason": 1,
"result": 1
},
{
"type": 3,
"position": 2,
"state": 1,
"time": 422,
"event_time": 1718671823,
"home_score": 9,
"away_score": 5,
"reason": 2,
"result": 4
},
{
"type": 3,
"position": 1,
"state": 1,
"time": 409,
"event_time": 1718671868,
"home_score": 10,
"away_score": 5,
"reason": 2,
"result": 4
}
],
"update_time": 1734333653
}
],
"total": 1
},
"msg": "success"
}
修改于 2025-03-21 10:24:55