体育数据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天)
(PS:比赛实时数据在实时统计数据接口获取)

当天赛程 建议请求频次:10min/次(全量更新)
未来赛程 建议请求频次:30min/次(全量更新)
(PS:获取比赛列表接口全量数据,该接口可不用再获取)

请求参数:TREE

  • userstring

    用户名,请联系商务

    必填

  • secretstring

    用户密钥,请联系商务

    必填

  • datestring

    查询日期,格式为yyyymmdd(20200101)

    必填

返回参数:TREE

{

code:

integer

query: {

查询

total: integer

返回数据总量

type: string

查询类型,日期查询:diary、赛季查询:season、阶段查询:tournament

}results:[ {

比赛列表

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

更新时间

}]results_extra: {

关联数据

unique_tournament:[

赛事

 {

赛事列表

id: integer

赛事id

name: string

赛事名称

logo: string

赛事logo

}]team:[

球队

 {

球队列表

id: integer

球队id

name: string

球队名称

logo: string

球队logo

}]venue:[

场馆

 {

场馆列表

id: integer

场馆id

name: string

场馆名称

}]season:[

赛季

 {

赛季列表

id: integer

赛季id

unique_tournament_id: integer

赛事id

year: string

赛季年份

}]tournament:[

阶段

 {

阶段列表

id: integer

阶段id

unique_tournament_id: integer

赛事id

season_id: integer

赛季id

name: string

阶段名称

}]}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值