ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## **3.18.1 前瞻分析** ## **1. 历史交锋--变动列表** ~~~ /sport/api/v1/stats/changed/match/fight/202 ~~~ 接口概述:默认返回48小时内,历史交锋接口有数据变动的比赛ID。 建议频率:每天拉取一次。 | 请求参数 | 数据类型 | 是否必填 | 描述 | | -------- | -------- | -------- | -------- | | token | string | 是 | 客户密钥 | 请求url示例 ~~~ /sport/api/v1/stats/changed/match/fight/202?token=XXXXX ~~~ ~~~ { "code": 0, "data": { "matches": [ //接口有数据变动的比赛ID 2268336, 2266197, 2260742, 2268307, 2265871, 2251935, 2243648 ], "total": 7 }, "msg": "" } ~~~ ## **2.历史交锋详情** ~~~ /sport/api/v1/stats/match/fight/{game_id}/{match_id} ~~~ 接口概述:获取两队伍的历史比赛数据。 | 请求参数 | 类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | | match_num | int | 是 | 统计场数(10、20场)默认10场 | | same_side | bool | 否 | 同主客 | | current_league_only | bool | 否 | 只看当前联赛 | 请求URL示例: ~~~ /sport/api/v1/stats/match/fight/202/461500?match_num=10&token=xxxxx ~~~ ~~~ { "game_id": 202, //游戏id "match_id": 271204, //比赛id "win_rate": { //胜率 "rate": 0, //概率 "won_count": 0, //胜 "lost_count": 0, //负 "drawn_count": 1 //平 }, "handicap_rate": { //赢率 "rate": 1, "won_count": 1, "lost_count": 0, "drawn_count": 0 }, "score_rate": { //大率 "rate": 0, "won_count": 0, "lost_count": 1, "drawn_count": 0 }, "teams": [ //队伍信息 { "id": 4224, "name": "阿拉胡埃伦斯", "abbr": "阿拉胡埃伦斯", "logo": "https://example.jpeg", "icon": "https://example.jpeg" }, { "id": 4004, "name": "特温特", "abbr": "特温特", "logo": "https://example.jpegg", "icon": "https://example.jpeg" } ], "matches": [ // 历史赛程列表 { "match_id": 268828, //比赛id "wdl": "d", //胜d平l负 "handicap_count": "-0.250000", //让球数 "handicap_result": 1, //让球输赢 ( 0: -, 1:赢, 2:输, 3:走水) "goal_count": "4.500000", //总进球走势 "goal_result": 2, //进球大小 ( 0: -, 1:大, 2:小, 3:走水) "corner_count": 14, //角球数(仅足球有) "corner_score": "3-11", //角球比分(仅足球有) "teams": [ //队伍信息 { "team_id": 4224, //队伍id "index": 1, //队伍阵营 1主队 2客队 "score": 2, //比分 "first_half_score": 1 //半场比分 }, { "team_id": 4004, "index": 2, "score": 2, "first_half_score": 2 } ] } ] } ~~~ ***** ### **3.近期战绩--变动列表** ~~~ /sport/api/v1/stats/changed/match/analysis/202 ~~~ 接口概述:默认返回48小时内,近期数据接口有数据变动的比赛ID。 建议频率:每天拉取一次。 | 请求参数 | 数据类型 | 是否必填 | 描述 | | -------- | -------- | -------- | -------- | | token | string | 是 | 客户密钥 | 请求url示例 ~~~ /sport/api/v1/stats/changed/match/analysis/202?token=XXXXX ~~~ ~~~ { "code": 0, "data": { "matches": [ //接口有数据变动的比赛ID 2254530, 2269427, 2269434, 2256092, 2234612 ], "total": 5 }, "msg": "" } ~~~ ### **4.近期战绩详情** ~~~ /sport/api/v1/stats/match/analysis/{game_id}/{match_id} ~~~ 接口概述:获取某个队伍,近期的比赛数据。 | 请求参数 | 类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | | match_num | int | 是 | 统计场数(10、20场)默认10场 | | same_side | bool | 否 | 同主客 | | current_league_only | bool | 否 | 只看当前联赛 | 请求URL示例 ~~~ /sport/api/v1/stats/match/analysis/202/461500?match_num=10&token=xxxxx ~~~ ```json { "game_id": 202, // 游戏id "match_id": 257007, // 比赛id "teams": [ // 队伍信息 { "id": 6920, "name": "阿根廷", "abbr": "阿根廷", "logo": "https://example.jpeg", "icon": "https://example.jpeg" }, { "id": 15598, "name": "法国", "abbr": "法国", "logo": "https://example.jpeg", "icon": "https://example.jpeg" } ], "list": [ // 近期赛程列表 { "team_id": 6920, // 队伍id "index": 1, // 队伍阵营 1主队 2客队 "win_rate": { // 胜率 "rate": 0.800000011920929, // 概率 "won_count": 4, // 胜 "lost_count": 0, // 负 "drawn_count": 1 // 平 }, "handicap_rate": { // 赢率 "rate": 0.800000011920929, "won_count": 4, "lost_count": 0, "drawn_count": 1 }, "score_rate": { // 大率 "rate": 0.20000000298023224, "won_count": 1, "lost_count": 4, "drawn_count": 0 }, "matches": [ // 赛程列表 { "match_id": 244924, // 比赛id "wdl": "w", // 胜d平l负 "handicap_count": "0.000000", // 让球数 "handicap_result": 1, // 让球输赢 ( 0: -, 1:赢, 2:输, 3:走水) "goal_count": "3.500000", // 进球数 "goal_result": 2, // 进球大小 ( 0: -, 1:大, 2:小, 3:走水 ) "corner_count": 6, // 角球数(仅足球有) "corner_score": "2-4", // 角球比分(仅足球有) "teams": [ // 队伍信息 { "team_id": 6920, // 队伍id "index": 1, // 队伍阵营 1主队 2客队 "score": 3, // 比分 "first_half_score": 2 // 半场比分 }, { "team_id": 15620, "index": 2, "score": 0, "first_half_score": 0 } "player_stats": [ //选手分析 "player_id": 1779, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": , //选手位置 "integral": 0, //选手评分 }, "goals": 0, //进球 "shots": 1, //射门 "shots_on_target": 2, //射正 "assist": 1, //助攻 "passes": 1, //传球 "long_balls": 3, //长传 "tackles": 1, //抢断 "interceptions": 2 //拦截 "clearances": 2 //解围 "red_cards": 1 //红牌 "yellow_cards": 1 //黄牌 "fastbreaks": 1 //快攻 "hit_woodwork": 1 //击中门框 "poss_losts": 1 //丢失球权 ], ] } ] } ] } ``` ### **5.未来赛程(足球)** ~~~ /sport/api/v1/stats/match/future/{game_id}/{match_id} ~~~ 接口概述:获取队伍本场比赛之后的3场赛程数据 | 请求参数 | 类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | | game_id | int | 是 | 运动ID | | match_id | int | 是 | 比赛ID | ~~~ { "game_id": 202, // 游戏id "match_id": 105135, // 比赛id "teams": [ // 队伍信息 { "id": 15432, "name": "奥地利", "abbr": "奥地利", "logo": "https://example.jpeg", "icon": "https://example.jpeg" }, { "id": 15598, "name": "法国", "abbr": "法国", "logo": "https://example.jpeg", "icon": "https://example.jpeg" } ], "matches": [ // 赛程列表 { "team_id": 15432, // 队伍id "index": 1, // 队伍阵营 1主队 2客队 "list": [ { "match_id": 106912, // 比赛id "teams": [ // 队伍信息 { "team_id": 15432, // 队伍id "index": 2, // 队伍阵营 1主队 2客队 "score": 0 // 比分 }, { "team_id": 15878, "index": 1, "score": 2 } ] } ] } ] } ~~~ ### **6.积分排名---变动列表** ~~~ /sport/api/v1/stats/changed/match/overview/{game_id} ~~~ 接口概述:获取队伍在某赛事下的积分数据 | 请求参数 | 类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | | game_id | int | 否 | 运动ID | | series_id | int | 是 | 赛事ID | | league_id | int | 否 | 联赛ID | ```json { "code": 0, "data": { "matches": [ //接口有数据变动的比赛ID 2254530, 2269427, 2269434, 2256092, 2234612 ], "total": 5 }, "msg": "" } ``` ### **6.积分排名** ~~~ /sport/api/v1/stats/match/overview/{game_id}/{match_id} ~~~ 接口概述:获取比赛对应的赛事下的队伍积分数据 | 请求参数 | 类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | ```json { "series_id": 11465, // 赛事id "list": [ { "team_id": 6410, // 队伍id "list": [ // 积分数据排名 { "total": 13, // 比赛场数 "won_count": 7, // 胜 "lost_count": 3, // 负 "drawn_count": 3, // 平 "scored": 14, // 进 "conceded": 11, // 失 "points": 24, // 积分 "ranking": 5 // 排名 } ] } ] } ```