- 快速开始
- API指南
- API文档
- 体育比分
- 基础数据
- 实时数据
- 指数数据
- 统计数据
- 高阶数据
- 历史数据
- 比赛对应接口
- 长链接推送
- 基础数据
- 电竞比分
- 体彩数据
- 媒体数据
- 动画直播
- 常见问题
- 更新日志
篮球文字直播接口
正式环境
https://api.esportsdata.cc
正式环境
https://api.esportsdata.cc
GET
/sport/api/v3/live/201/tlive
获取篮球比赛的文字直播数据-自定义参数查询(不同项目的路径不同)
该接口返回所请求参数的全量文字直播数据(请求限制:前后30天的赛程)
更新数据:
方案1:有需求时请求指定比赛的文字直播数据:
方案2:接推送,接收实时有变化的数据(长链接推送/实时赛果数据推送/文字直播推送)
频率限制:30次/min
请求参数
Query 参数
match_id
string
可选
示例值:
2755208
page
integer
页数
per_page
integer
每页数据条数
language
string
可选
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/tlive?match_id=2755208&page&per_page&language&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,
"text_live": [
[
{
"data": "加福德 vs. 霍福德 (布朗 得到球)",
"event_time": 1718671155,
"position": 1,
"score": "0-0",
"time": "12:00"
},
{
"data": "霍勒迪 突破上篮得分 (塔图姆 助攻)",
"event_time": 1718671212,
"position": 1,
"score": "0-2",
"time": "11:40"
},
{
"data": "第一节结束",
"event_time": 1718672658,
"position": 0,
"score": "18-28",
"time": "0.0"
}
],
[
{
"data": "霍福德 上场替换 波尔津吉斯",
"event_time": 1718672889,
"position": 1,
"score": "18-28",
"time": "12:00"
},
{
"data": "东契奇 上场替换 埃克萨姆",
"event_time": 1718673612,
"position": 2,
"score": "22-34",
"time": "10:00"
},
{
"data": "塔图姆 突破上篮得分",
"event_time": 1718673391,
"position": 1,
"score": "31-45",
"time": "07:08"
},
{
"data": "塔图姆 投篮犯规",
"event_time": 1718673469,
"position": 1,
"score": "31-46",
"time": "06:56"
},
{
"data": "霍勒迪 进攻篮板",
"event_time": 1718673997,
"position": 1,
"score": "31-46",
"time": "06:45"
},
{
"data": "霍勒迪 3英尺技巧上篮不中",
"event_time": 1718673997,
"position": 1,
"score": "31-46",
"time": "06:45"
},
{
"data": "豪瑟尔 进攻篮板",
"event_time": 1718673997,
"position": 1,
"score": "35-46",
"time": "05:37"
},
{
"data": "霍勒迪 上篮命中 (塔图姆 助攻)",
"event_time": 1718674400,
"position": 1,
"score": "39-52",
"time": "02:51"
},
{
"data": "华盛顿传球失误(霍福德 抢断)",
"event_time": 1718674816,
"position": 2,
"score": "39-52",
"time": "02:30"
},
{
"data": "布朗 两分投篮命中 (霍福德 助攻)",
"event_time": 1718674816,
"position": 1,
"score": "39-54",
"time": "02:26"
},
{
"data": "第二节结束",
"event_time": 1718674817,
"position": 0,
"score": "46-67",
"time": "0.0"
}
],
[
{
"data": "怀特 上场替换 普里查德",
"event_time": 1718675797,
"position": 1,
"score": "46-67",
"time": "12:00"
},
{
"data": "第四节结束",
"event_time": 1718679586,
"position": 0,
"score": "88-106",
"time": "0.0"
},
{
"data": "比赛结束",
"event_time": 1718679650,
"position": 0,
"score": "88-106",
"time": "0.0"
}
]
],
"update_time": 1721273608
}
],
"total": 1
},
"msg": "success"
}
修改于 2025-05-20 09:31:12