文档
测试

获取变动比赛

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

请求参数

参数名
类型
描述
必填
user
string
用户名
必填
secret
string
用户密钥
必填
id
int
查询大于等于id的记录,根据id排序
必填
time
int
查询大于等于更新时间的记录(时间戳),根据更新时间排序
必填
limit
int
返回数据最大数,默认为1000,最大为1000
必填

响应参数

参数名
类型
描述
必填
code
必填
query
查询情况
必填
type
查询类型,id查询:sequence、time查询:time,默认sequence
必填
results
赛事列表
必填
competition_id
赛事id
必填
home_team_id
主队id
必填
away_team_id
客队id
必填
kind
必填
status_id
必填
match_time
必填
neutral
必填
note
必填
home_scores
必填
away_scores
必填
period_count
必填
coverage
必填
mlive
必填
intelligence
必填
updated_at
必填

说明 / 示例

{ "code": 0, "query": { "total": 5, "type": "sequence", "id": 0, "min_id": 3514531, "max_id": 3514535, "limit": 5 }, "results": [ { "id": 3514531, "competition_id": 57, "home_team_id": 11526, "away_team_id": 11531, "kind": 0, "status_id": 12, "match_time": 1588093200, "neutral": 0, "note": "", "home_scores": [0,0,0,0,0], "away_scores": [0,0,0,0,0], "period_count": 4, "coverage": { "mlive": 0, "intelligence": 0 }, "updated_at": 1586920852 }, { "id": 3514532, "competition_id": 57, "home_team_id": 12070, "away_team_id": 11517, "kind": 0, "status_id": 12, "match_time": 1588093200, "neutral": 0, "note": "", "home_scores": [0,0,0,0,0], "away_scores": [0,0,0,0,0], "period_count": 4, "coverage": { "mlive": 0, "intelligence": 0 }, "updated_at": 1586920852 }, { "id": 3514533, "competition_id": 57, "home_team_id": 12230, "away_team_id": 11530, "kind": 0, "status_id": 12, "match_time": 1588093200, "neutral": 0, "note": "", "home_scores": [0,0,0,0,0], "away_scores": [0,0,0,0,0], "period_count": 4, "coverage": { "mlive": 0, "intelligence": 0 }, "updated_at": 1586920852 }, { "id": 3514534, "competition_id": 57, "home_team_id": 11534, "away_team_id": 11127, "kind": 0, "status_id": 12, "match_time": 1588093200, "neutral": 0, "note": "", "home_scores": [0,0,0,0,0], "away_scores": [0,0,0,0,0], "period_count": 4, "coverage": { "mlive": 0, "intelligence": 0 }, "updated_at": 1586920852 }, { "id": 3514535, "competition_id": 57, "home_team_id": 10899, "away_team_id": 11528, "kind": 0, "status_id": 12, "match_time": 1588093200, "neutral": 0, "note": "", "home_scores": [0,0,0,0,0], "away_scores": [0,0,0,0,0], "period_count": 4, "coverage": { "mlive": 0, "intelligence": 0 }, "updated_at": 1586920852 } ] } 字段解释说明 { "type": "object", "properties": { "code": {"type": "integer"}, "query": { "type": "object", "description": "查询情况", "properties": { "total": {"type": "integer", "description": "返回数据总量"}, "type": { "type": "string", "description": "查询类型,id查询:sequence、time查询:time,默认sequence" }, "id": {"type": "integer", "description": "查询id值,默认为0(id查询,字段返回)"}, "min_id": {"type": "integer", "description": "返回数据最小id(id查询,字段返回)"}, "max_id": {"type": "integer", "description": "返回数据最大id(id查询,字段返回)"}, "limit": {"type": "integer", "description": "可返回数据最大数(id查询,字段返回)"}, "time": {"type": "integer", "description": "查询time值(time查询,字段返回)"}, "min_time": { "type": "integer", "description": "返回数据最小time(更新时间戳)(time查询,字段返回)" }, "max_time": { "type": "integer", "description": "返回数据最大time(更新时间戳)(time查询,字段返回)" } } }, "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": "更新时间"} } } } } }