💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## 3.15.4 前瞻分析接口 ### 近期数据 GET: ~~~ /api/v1/stats/match/analysis/{game_id}/{match_id} ~~~ 接口概述:获取两个队伍分别的近期战绩 建议频率:每天拉取一次 | 请求参数 | 数据类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | | game_id | int | 是 | 游戏ID | | match_id | int | 是 | 比赛ID | | match_num | int | 是 | 统计场数(3、6、10场) | | current_league_only | boolean | 否 | 传ture只看当查赛事| 请求url示例 ~~~ /api/v1/stats/match/analysis/2/234?token=XXXXX&match_num=6 ~~~ ~~~ { "game_id": 2, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 135043, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 2787, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 2787, //队伍id "name": "Astralis", //队伍中文名 "name_en": "", //队伍英文名 "abbr": "", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxx.png" }, "is_stats": true, //是否有统计数据(true有,false无) "stats": { "win": 5, //胜利场次 "lose": 5, //失败场次 "race_win": 11, //小局胜利次数 "race_lose": 13, //小局失败次数 "win_rate": 0.5, //胜率 "race_win_rate": 0.5, //小局胜率 "first_blood_rate": 0, //R1胜率(第1回合胜率) "r_16_win_rate": 0, //R16胜率(第16回合胜率) "five_kills_rate": 1, //先胜5轮 "ten_kills_rate": 0.5, //先胜10轮 "round_num_26_5": 0.5 //回合数大于26.5 "kill_avg": 87.875 //场均击杀 "overtime_rate": 0.45 //超时获胜 "pre_win_rate": 0.81 "ct_win_rate": 0.5555556, //队伍作为CT的胜率 "t_win_rate": 0.43589744 //队伍作为T的胜率 }, "player_stats": [ //选手分析 "player_id": 106869, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": , //选手位置 "power_value": 0, //选手战力值 }, "rating": 6.14, //评分 "kpr": 0.7689288, //kpr值 "dpr": 0.8587025, //dpr值 "kast": 388.90002, //KAST数值 "adr": 512.7, //平均回合造成伤害 "impact": 4.9449997 //impact值 ], "matches": [ { "match_id": 130806, //比赛ID "race_ids": [ //小局id 148951, 148955, 148962 ] }, { "match_id": 130739, //比赛ID "race_ids": [ //小局id 148892, 148907, 148922 ] }, { "match_id": 130587, //比赛ID "race_ids": [ //小局id 148749, 148764, 148775 ] }, { "match_id": 130284, //比赛ID "race_ids": [ //小局id 148498, 148509 ] }, { "match_id": 130240, //比赛ID "race_ids": [ //小局id 148193, 148203, 148215 ] }, { "match_id": 128986, //比赛ID "race_ids": [ //小局id 148161 ] } ] }, ...... ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_blood\_rate | int | R1shouqiang胜 | \--- | | five\_kills\_rate | int | 先胜5轮 | \--- | | game\_id | string | 游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) | \--- | | icon | string | icon | \--- | | id | int | id | \--- | | index | string | 队伍位置,参见字典 | \--- | | logo | string | logo | \--- | | match\_id | int | 比赛ID | \--- | | match\_num | int | 统计场次 | \--- | | name | string | 中文名 | \--- | | race\_win\_rate | int | 小局胜率 | \--- | | round\_num\_26\_5 | int | 回合大于26.5 | \--- | | team\_id | int | 队伍id | \--- | | ten\_kills\_rate | int | 先胜10轮 | \--- | | win\_rate | int | 胜率 | \--- | | kill_avg | int | 场均击杀 | \--- | |overtime_rate | int | 超时获胜 | \--- | | pre_win_rate | int | 预测胜率 | \--- | | is_stats | int | 是否有统计数据(true是 false否) | --- | | ct_win_rate| int | 队伍作为CT的胜率) | --- | |t_win_rate | int | 队伍作为T的胜率 | --- | ***** ### 历史交手记录 GET: ~~~ /api/v1/stats/match/fight/{game_id}/{match_id} ~~~ 接口概述:获取交战两个队伍的统计数据 建议频率:每天拉取一次进行中和未开始的 | 请求参数 | 数据类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | token | string | 是 | 客户密钥 | | game_id | int | 是 | 游戏ID | | match_id | int | 是 | 比赛ID | | match_num | int | 是 | 统计场数(3、6、10场) | | current_league_only | int | 否 | 传ture只看当查赛事| 请求url示例 ~~~ /api/v1/stats/match/Fight/2/32434?token=XXXXX ~~~ ~~~ { "game_id": 2, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 135043, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 2787, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 2787, //id "name": "Astralis", //中文名 "abbr": "", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxx.png" }, "is_stats": true, //是否有统计数据(true有,false无) "stats": { "win": 5, //胜利场次 "lose": 5, //失败场次 "race_win": 11, //小局胜利次数 "race_lose": 13, //小局失败次数 "win_rate": 0.5, //胜率 "race_win_rate": 0.5, //小局胜率 "first_blood_rate": 0, //R1胜率(第1回合胜率) "r_16_win_rate": 0, //R16胜率(第16回合胜率) "five_kills_rate": 1, //先胜5轮 "ten_kills_rate": 0.5, //先胜10轮 "round_num_26_5": 0.5 //回合数大于26.5 "kill_avg": 87.875 //场均击杀 "overtime_rate": 0.45 //超时获胜 "pre_win_rate": 0.81 "ct_win_rate": 0.5555556, //队伍作为CT的胜率 "t_win_rate": 0.43589744 //队伍作为T的胜率 } }, ...... ], "matches": [ { "match_id": 13651, //比赛ID "race_ids": [ 88671 ] }, { "match_id": 13656, //比赛ID "race_ids": [ 12480 ] } ] } ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_blood\_rate | int | R1shouqiang胜 | \--- | | five\_kills\_rate | int | 先胜5轮 | \--- | | game\_id | string | 游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) | \--- | | icon | string | icon | \--- | | id | int | id | \--- | | index | string | 队伍位置,参见字典 | \--- | | logo | string | logo | \--- | | match\_id | int | 比赛ID | \--- | | match\_num | int | 统计场次 | \--- | | name | string | 中文名 | \--- | | race\_win\_rate | int | 小局胜率 | \--- | | round\_num\_26\_5 | int | 回合大于26.5 | \--- | | team\_id | int | 队伍id | \--- | | ten\_kills\_rate | int | 先胜10轮 | \--- | | win\_rate | int | 胜率 | \--- | | kill_avg | int | 场均击杀 | \--- | |overtime_rate | int | 超时获胜 | \--- | | pre_win_rate | int | 预测胜率 | \--- | | is_stats | int | 是否有统计数据(true是 false否) | --- | | ct_win_rate| int | 队伍作为CT的胜率) | --- | |t_win_rate | int | 队伍作为T的胜率 | --- |