文档
测试

获取赛事列表

GET
https://open.sportnanoapi.com/api/v4/football/competition/list

接口描述

返回赛事数据列表,可以根据时间戳增量获取新增或变动的数据

请求参数

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

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
query
object
数据字典
必填
total
int
示例:1000
必填
type
string
示例:sequence
必填
id
int
示例:0
必填
min_id
int
示例:1
必填
max_id
int
示例:1509
必填
limit
int
示例:1000
必填
results
array
数据列表
必填
id
int
示例:1
必填
category_id
int
示例:1
必填
country_id
int
示例:0
必填
name_en
string
示例:FIFA World Cup
必填
name_zh
string
示例:世界杯
必填
name_zht
string
示例:世界盃
必填
short_name_en
string
示例:World Cup
必填
short_name_zh
string
示例:世界杯
必填
short_name_zht
string
示例:世界盃
必填
type
int
示例:2
必填
cur_season_id
int
示例:7555
必填
cur_stage_id
int
示例:8545
必填
cur_round
int
示例:0
必填
round_count
int
示例:0
必填
logo
string
示例:https://cdn.sportnanoapi.com/football/competition/3901a01c4d76ef57fa641b37bf09d297.png
必填
updated_at
int
示例:1590546349
必填
title_holder
array
数据列表
必填
most_titles
array
数据列表
必填
0
int
示例:10477
必填
host
object
数据字典
必填
country
string
示例:Russia
必填
id
int
示例:8
必填
category_id
int
示例:1
必填
country_id
int
示例:0
必填
name_en
string
示例:FIFA World Cup qualification (OFC)
必填
name_zh
string
示例:世界杯大洋洲区预选赛
必填
name_zht
string
示例:世界盃大洋洲區預選賽
必填
short_name_en
string
示例:WCPO
必填
short_name_zh
string
示例:大洋预选
必填
short_name_zht
string
示例:大洋預選
必填
type
int
示例:2
必填
cur_season_id
int
示例:24
必填
cur_stage_id
int
示例:14144
必填
cur_round
int
示例:0
必填
round_count
int
示例:0
必填
logo
string
示例:https://cdn.sportnanoapi.com/football/competition/8bb068f19c99af99b7d202ed5c204926.png
必填
updated_at
int
示例:1590546349
必填

说明 / 示例

{ "code": 0, "query": { "total": 1000, "type": "sequence", "id": 0, "min_id": 1, "max_id": 1509, "limit": 1000 }, "results": [ { "id": 1, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup", "name_zh": "世界杯", "name_zht": "世界盃", "short_name_en": "World Cup", "short_name_zh": "世界杯", "short_name_zht": "世界盃", "type": 2, "cur_season_id": 7555, "cur_stage_id": 8545, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/3901a01c4d76ef57fa641b37bf09d297.png", "updated_at": 1590546349, "title_holder": [10234,2], "most_titles": [ [10477], 5 ], "host": { "country": "Russia" } }, { "id": 2, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup qualification (UEFA)", "name_zh": "世界杯欧洲区预选赛", "name_zht": "世界盃歐洲區預選賽", "short_name_en": "WCPEU", "short_name_zh": "欧洲预选", "short_name_zht": "歐洲預選", "type": 2, "cur_season_id": 6, "cur_stage_id": 14146, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/c74920992c3b47b82b192e7a1993f2cb.png", "updated_at": 1590546349 }, { "id": 3, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup qualification (AFC)", "name_zh": "世界杯亚洲区预选赛", "name_zht": "世界盃亞洲区預選賽", "short_name_en": "FIFA WCQL", "short_name_zh": "亚洲预选", "short_name_zht": "亞洲預選", "type": 2, "cur_season_id": 9012, "cur_stage_id": 44867, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/60bb93dd0aa84ebc1bab248d248b54d8.png", "updated_at": 1590546349 }, { "id": 4, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup qualification (CONMEBOL)", "name_zh": "世界杯南美洲区预选赛", "name_zht": "世界盃南美洲區預選賽", "short_name_en": "WCPSA", "short_name_zh": "南美预选", "short_name_zht": "南美預選", "type": 2, "cur_season_id": 12, "cur_stage_id": 14150, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/61fc217820b8cdfaa11872fa211f40c5.png", "updated_at": 1590546349 }, { "id": 5, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup qualification (CAF)", "name_zh": "世界杯非洲区预选赛", "name_zht": "世界盃非洲區預選賽", "short_name_en": "WCPAF", "short_name_zh": "非洲预选", "short_name_zht": "非洲預選", "type": 2, "cur_season_id": 9270, "cur_stage_id": 45268, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/0d27b2c1ad4aeacfbd3ca99f009e6beb.png", "updated_at": 1590371029 }, { "id": 6, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup qualification (CONCACAF)", "name_zh": "世界杯中北美洲区预选赛", "name_zht": "世界盃中北美洲區預選賽", "short_name_en": "WCPCA", "short_name_zh": "北美预选", "short_name_zht": "北美預選", "type": 2, "cur_season_id": 18, "cur_stage_id": 14155, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/b0e91bd19cd82090047a4c6879ce230b.png", "updated_at": 1590456649, "primary_color": "#9a1133", "secondary_color": "#c11541" }, { "id": 7, "category_id": 1, "country_id": 0, "name_en": "FIFA Confederations Cup", "name_zh": "国际足联联合会杯", "name_zht": "國際足聯聯合會杯", "short_name_en": "FICC", "short_name_zh": "洲际杯", "short_name_zht": "洲際盃", "type": 2, "cur_season_id": 6177, "cur_stage_id": 2243, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/e7f69dbd9ebd30df8d70d0d332dc18fc.png", "updated_at": 1590277116, "title_holder": [11746,1], "most_titles": [ [10477], 4 ] }, { "id": 8, "category_id": 1, "country_id": 0, "name_en": "FIFA World Cup qualification (OFC)", "name_zh": "世界杯大洋洲区预选赛", "name_zht": "世界盃大洋洲區預選賽", "short_name_en": "WCPO", "short_name_zh": "大洋预选", "short_name_zht": "大洋預選", "type": 2, "cur_season_id": 24, "cur_stage_id": 14144, "cur_round": 0, "round_count": 0, "logo": "https://cdn.sportnanoapi.com/football/competition/8bb068f19c99af99b7d202ed5c204926.png", "updated_at": 1590546349 } ] }