体育数据API纳米篮球数据API:网球数据接口文档API示例④

纳米体育数据的数据接口通过JSON拉流方式获取200多个国家的体育赛事实时数据或历史数据的编程接口,无请求次数限制,可按需购买,接口稳定高效;

覆盖项目包括足球、篮球、网球、电子竞技、奥运等专题、数据内容。纳米数据API2.0版本包含http协议以及websocket协议,主要通过http获取数据,实时数据通过websocket获取。http协议支持http和https,每个接口都需要传递用户名和密钥用于验证接口权限,白名单ip才能够获取相关数据。

websocket协议域名为s.sportnanoapi.com,通过mqtt的websocket协议实现,用户名、密钥和白名单ip必须正确才能订阅数据,否则无法授权,api通过java、python示例,同时也包含其他语言。


获取比赛分析数据

返回比赛的分析统计数据(比赛信息、历史交锋/近期战绩、未来赛程)

该接口用于请求未开赛的比赛的历史对阵等数据,多为历史数据,变化不频繁
请求限制:前30天比赛

请求次数:60次/min

请求参数:TREE
  • userstring

    用户名,请联系商务

    必填

  • secretstring

    用户密钥,请联系商务

    必填

  • idinteger

    比赛id

返回参数:TREE

{

code:

integer

results: {

比赛信息、历史交锋/近期战绩、未来赛程

info: {

比赛列表

id: integer

比赛id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

tournament_id: integer

阶段id

venue_id: integer

场馆id

home_team_id: integer

主队id

away_team_id: integer

客队id

match_time: integer

比赛时间

status_id: integer

比赛状态,详见 状态码->比赛状态

neutral: integer

是否中立场,1-是、0-否

bestof: integer

盘数,3-BO3、5-BO5、0-未知

coverage: {

动画字段

mlive: integer

是否有动画,1-是、0-否

}scores: {

比分数据(可能为空)
ft-总比分
p*-盘比分(*-盘数,1、2、3...)
x*-抢7比分(*-盘数,1、2、3...)
pt-实时局比分

ft:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]p*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]x*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]pt:[Enum:Array[2]

0:"主队分数 - string"

1:"客队分数 - string"

]}match_ids:[

团体赛下关联的比赛
example:[3942891, 3942892, 3942893]

Enum:Array[1]

0:"比赛id - int"

]weather: {

天气(没有数据,字段不存在)

desc: string

天气描述

pressure: integer

气压 mmHg

temp: integer

温度 ℃

wind: integer

风速 m/s

humidity: integer

湿度 %

}updated_at: integer

更新时间

}history: {

历史交锋/近期战绩

vs:[

历史交锋,没有数据为空

 {

比赛列表

id: integer

比赛id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

tournament_id: integer

阶段id

venue_id: integer

场馆id

home_team_id: integer

主队id

away_team_id: integer

客队id

match_time: integer

比赛时间

status_id: integer

比赛状态,详见 状态码->比赛状态

neutral: integer

是否中立场,1-是、0-否

bestof: integer

盘数,3-BO3、5-BO5、0-未知

coverage: {

动画字段

mlive: integer

是否有动画,1-是、0-否

}scores: {

比分数据(可能为空)
ft-总比分
p*-盘比分(*-盘数,1、2、3...)
x*-抢7比分(*-盘数,1、2、3...)
pt-实时局比分

ft:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]p*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]x*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]pt:[Enum:Array[2]

0:"主队分数 - string"

1:"客队分数 - string"

]}match_ids:[

团体赛下关联的比赛
example:[3942891, 3942892, 3942893]

Enum:Array[1]

0:"比赛id - int"

]weather: {

天气(没有数据,字段不存在)

desc: string

天气描述

pressure: integer

气压 mmHg

temp: integer

温度 ℃

wind: integer

风速 m/s

humidity: integer

湿度 %

}updated_at: integer

更新时间

}]home:[

主队近期战绩,没有数据为空

 {

比赛列表

id: integer

比赛id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

tournament_id: integer

阶段id

venue_id: integer

场馆id

home_team_id: integer

主队id

away_team_id: integer

客队id

match_time: integer

比赛时间

status_id: integer

比赛状态,详见 状态码->比赛状态

neutral: integer

是否中立场,1-是、0-否

bestof: integer

盘数,3-BO3、5-BO5、0-未知

coverage: {

动画字段

mlive: integer

是否有动画,1-是、0-否

}scores: {

比分数据(可能为空)
ft-总比分
p*-盘比分(*-盘数,1、2、3...)
x*-抢7比分(*-盘数,1、2、3...)
pt-实时局比分

ft:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]p*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]x*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]pt:[Enum:Array[2]

0:"主队分数 - string"

1:"客队分数 - string"

]}match_ids:[

团体赛下关联的比赛
example:[3942891, 3942892, 3942893]

Enum:Array[1]

0:"比赛id - int"

]weather: {

天气(没有数据,字段不存在)

desc: string

天气描述

pressure: integer

气压 mmHg

temp: integer

温度 ℃

wind: integer

风速 m/s

humidity: integer

湿度 %

}updated_at: integer

更新时间

}]away:[

客队近期战绩,没有数据为空

 {

比赛列表

id: integer

比赛id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

tournament_id: integer

阶段id

venue_id: integer

场馆id

home_team_id: integer

主队id

away_team_id: integer

客队id

match_time: integer

比赛时间

status_id: integer

比赛状态,详见 状态码->比赛状态

neutral: integer

是否中立场,1-是、0-否

bestof: integer

盘数,3-BO3、5-BO5、0-未知

coverage: {

动画字段

mlive: integer

是否有动画,1-是、0-否

}scores: {

比分数据(可能为空)
ft-总比分
p*-盘比分(*-盘数,1、2、3...)
x*-抢7比分(*-盘数,1、2、3...)
pt-实时局比分

ft:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]p*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]x*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]pt:[Enum:Array[2]

0:"主队分数 - string"

1:"客队分数 - string"

]}match_ids:[

团体赛下关联的比赛
example:[3942891, 3942892, 3942893]

Enum:Array[1]

0:"比赛id - int"

]weather: {

天气(没有数据,字段不存在)

desc: string

天气描述

pressure: integer

气压 mmHg

temp: integer

温度 ℃

wind: integer

风速 m/s

humidity: integer

湿度 %

}updated_at: integer

更新时间

}]}future: {

未来赛程

home:[

主队未来赛程,没有数据为空

 {

比赛列表

id: integer

比赛id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

tournament_id: integer

阶段id

venue_id: integer

场馆id

home_team_id: integer

主队id

away_team_id: integer

客队id

match_time: integer

比赛时间

status_id: integer

比赛状态,详见 状态码->比赛状态

neutral: integer

是否中立场,1-是、0-否

bestof: integer

盘数,3-BO3、5-BO5、0-未知

coverage: {

动画字段

mlive: integer

是否有动画,1-是、0-否

}scores: {

比分数据(可能为空)
ft-总比分
p*-盘比分(*-盘数,1、2、3...)
x*-抢7比分(*-盘数,1、2、3...)
pt-实时局比分

ft:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]p*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]x*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]pt:[Enum:Array[2]

0:"主队分数 - string"

1:"客队分数 - string"

]}match_ids:[

团体赛下关联的比赛
example:[3942891, 3942892, 3942893]

Enum:Array[1]

0:"比赛id - int"

]weather: {

天气(没有数据,字段不存在)

desc: string

天气描述

pressure: integer

气压 mmHg

temp: integer

温度 ℃

wind: integer

风速 m/s

humidity: integer

湿度 %

}updated_at: integer

更新时间

}]away:[

客队未来赛程,没有数据为空

 {

比赛列表

id: integer

比赛id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

tournament_id: integer

阶段id

venue_id: integer

场馆id

home_team_id: integer

主队id

away_team_id: integer

客队id

match_time: integer

比赛时间

status_id: integer

比赛状态,详见 状态码->比赛状态

neutral: integer

是否中立场,1-是、0-否

bestof: integer

盘数,3-BO3、5-BO5、0-未知

coverage: {

动画字段

mlive: integer

是否有动画,1-是、0-否

}scores: {

比分数据(可能为空)
ft-总比分
p*-盘比分(*-盘数,1、2、3...)
x*-抢7比分(*-盘数,1、2、3...)
pt-实时局比分

ft:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]p*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]x*:[Enum:Array[2]

0:"主队分数 - int"

1:"客队分数 - int"

]pt:[Enum:Array[2]

0:"主队分数 - string"

1:"客队分数 - string"

]}match_ids:[

团体赛下关联的比赛
example:[3942891, 3942892, 3942893]

Enum:Array[1]

0:"比赛id - int"

]weather: {

天气(没有数据,字段不存在)

desc: string

天气描述

pressure: integer

气压 mmHg

temp: integer

温度 ℃

wind: integer

风速 m/s

humidity: integer

湿度 %

}updated_at: integer

更新时间

}]}}

}

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值