文档
测试

获取赛程赛果列表-日期查询

GET
https://open.sportnanoapi.com/api/v4/basketball/match/diary

请求参数

参数名
类型
描述
必填
user
string
用户名
必填
secret
string
用户密钥
必填
date
int
查询日期,格式为yyyymmdd(20200101)
必填

响应参数

参数名
类型
描述
必填
code
必填
query
查询情况
必填
type
查询类型,id查询:sequence、time查询:time,默认sequence
必填
results
赛事列表
必填

说明 / 示例

{ "code": 0, "query": { "total": 12, "type": "diary" }, "results": [ { "id": 3553533, "competition_id": 3896, "home_team_id": 25506, "away_team_id": 32899, "kind": 0, "status_id": 10, "match_time": 1590510600, "neutral": 0, "note": "", "home_scores": [19,22,14,12,0], "away_scores": [27,20,22,25,0], "period_count": 4, "coverage": { "mlive": 1, "intelligence": 0 }, "updated_at": 1590525829 }, { "id": 3553532, "competition_id": 3896, "home_team_id": 32797, "away_team_id": 32799, "kind": 0, "status_id": 10, "match_time": 1590515100, "neutral": 0, "note": "", "home_scores": [26,21,22,28,0], "away_scores": [17,23,15,17,0], "period_count": 4, "coverage": { "mlive": 1, "intelligence": 0 }, "updated_at": 1590525889 }, ] } 字段解释说明 { "type": "object", "properties": { "code": {"type": "integer"}, "query": { "type": "object", "description": "查询", "properties": { "total": {"type": "integer", "description": "返回数据总量"}, "type": { "type": "string", "description": "查询类型,赛事查询:competition、赛季查询:season、日期查询:diary" } } }, "results": { "type": "array", "items": { "type": "object", "properties": { "id": {"type": "integer", "description": "比赛id"}, "competition_id": {"type": "integer", "description": "赛事id"}, "home_team_id": {"type": "integer", "description": "主队id"}, "away_team_id": {"type": "integer", "description": "客队id"}, "kind": { "type": "integer", "description": "类型id,1-常规赛、2-季后赛、3-季前赛、4-全明星、5-杯赛、0-无" }, "status_id": {"type": "integer", "description": "比赛状态,详见状态码->比赛状态"}, "match_time": {"type": "integer", "description": "比赛时间"}, "neutral": {"type": "integer", "description": "是否中立场,1-是、0-否"}, "note": {"type": "string", "description": "备注"}, "home_scores": { "type": "array", "description": "比分字段说明<br/>example:[0, 0, 0, 0, 0]", "items": "", "enum": [ "第1节分数 - int", "第2节分数 - int", "第3节分数 - int", "第4节分数 - int", "加时分数 - int" ] }, "away_scores": { "type": "array", "description": "比分字段说明<br/>example:[0, 0, 0, 0, 0]", "items": "", "enum": [ "第1节分数 - int", "第2节分数 - int", "第3节分数 - int", "第4节分数 - int", "加时分数 - int" ] }, "period_count": {"type": "integer", "description": "比赛总节数"}, "coverage": { "type": "object", "description": "动画、情报 字段", "properties": { "mlive": {"type": "integer", "description": "是否有动画,1-是、0-否"}, "intelligence": { "type": "integer", "description": "是否有情报,1-是、0-否" } } }, "season_id": {"type": "integer", "description": "赛季id,没有不存在"}, "round": { "type": "object", "description": "轮次,没有不存在", "properties": { "stage_id": {"type": "integer", "description": "阶段id"}, "group_num": { "type": "integer", "description": "第几组,1-A、2-B以此类推" }, "round_num": {"type": "integer", "description": "第几轮"} } }, "venue_id": {"type": "integer", "description": "场馆id,没有不存在"}, "position": { "type": "object", "description": "排名,没有不存在", "properties": { "home": {"type": "string", "description": "主队排名"}, "away": {"type": "string", "description": "客队排名"} } }, "updated_at": {"type": "integer", "description": "更新时间"} } } } } }