ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 3.15.3 前瞻分析接口 ### 近期数据 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/3/234?token=XXXXX&match_num=6 ~~~ ~~~ { "game_id": 3, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 135750, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 12257, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 12257, //id "name": "无锡JXG", //中文名 "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, //一 血率 "first_turret_rate": 0.5, //一 塔率 "five_kills_rate": 1, //5杀率 "ten_kills_rate": 0.5, //10杀率 "first_drakes_rate": 0.5652174, //首暴君率 "first_nashors_rate": 0.6086956, //首主宰率 "kill_num_23_5": 0.13043478, "time_num_19": 0.39130434, "kill_avg": 87.875 //场均击杀 "duration_avg": 1900.5 //场均时长 "pre_win_rate": 0.81 //预测胜率 }, "player_stats": { //选手分析 "adc": { //选手位置,射手 "player_id": 106869, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": adc, //选手位置 "power_value": 0, //选手战力值 }, "kill_avg": 21.454546, //场均击杀 "lh_per_min": 9.142921, //分均正补 "kill_participation": 11.372878, //参团率 "damage_per_min": 515.82275, //分均伤害 "damage_convert": 21.454546, //伤害转换 "damage_rate": 0.26399168, //伤害占比 "survivability": 0.53125, //生存能力 "gold_per_min": 2417.65317, //分均经济 "roles": [ //选手所使用的英雄信息 { "role_id": 106869, "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "num": 5, //使用英雄次数 "win_rate": 0.6, //该英雄胜率 }, "jun": { //选手位置,打野 "player_id": 106869, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": adc, //选手位置 "power_value": 0, //选手战力值 }, "damage_taken_per_min": 21.454546, //分均承伤 "kill_participation": 11.372878, //参团率 "jungle_per_min":6.4403024, //分均刷野 "resource_control_avg": 0.5014706, //资源控制率 "damage_per_min": 296.9972, //分均伤害 "kill_avg": 0.53125, //场均击杀 "survivability": 0.53125, //生存能力 "gold_per_min": 2417.65317, //分均经济 "roles": [ //选手所使用的英雄信息 { "role_id": 106869, "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "num": 5, //使用英雄次数 "win_rate": 0.6, //该英雄胜率 }, "mid": { //选手位置,中路 "player_id": 106869, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": adc, //选手位置 "power_value": 0, //选手战力值 }, "damage_taken_per_min": 21.454546, //分均承伤 "kill_participation": 11.372878, //参团率 "damage_convert": 296.9972, //伤害转换 "damage_per_min": 296.9972, //分均伤害 "kill_avg": 0.53125, //场均击杀 "survivability": 0.53125, //生存能力 "gold_per_min": 2417.65317, //分均经济 "gold_diff": 0, //对位经济差 } "roles": [ //选手所使用的英雄信息 { "role_id": 106869, "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "num": 5, //使用英雄次数 "win_rate": 0.6, //该英雄胜率 }, "top": { //选手位置,中路 "player_id": 106869, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": adc, //选手位置 "power_value": 0, //选手战力值 }, "damage_taken_per_min": 21.454546, //分均承伤 "damage_per_min": 296.9972, //分均伤害 "kda_avg": 0.53125, //kda "kill_participation": 11.372878, //参团率 "kill_avg": 0.53125, //场均击杀 "gold_diff": 0, //对位经济差 "survivability": 0.53125, //生存能力 "gold_per_min": 2417.65317, //分均经济 } "roles": [ //选手所使用的英雄信息 { "role_id": 106869, "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "num": 5, //使用英雄次数 "win_rate": 0.6, //该英雄胜率 }, "sup": { //选手位置,中路 "player_id": 106869, "metadata": { //选手信息 "id": 106869, //选手id "name": Xingye, //选手名称 "name_en": , //选手中文名称 "logo": xxxx, //选手logo "icon": xxxx, //选手icon "position": adc, //选手位置 "power_value": 0, //选手战力值 }, "damage_taken_per_min": 21.454546, //分均承伤 "kill_participation": 11.372878, //参团率 "kda_avg": 0.53125, //kda "survivability": 0.53125, //生存能力 "damage_per_min": 296.9972, //分均伤害 "assist_avg": 0.53125, //助攻 } "roles": [ //选手所使用的英雄信息 { "role_id": 106869, "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "num": 5, //使用英雄次数 "win_rate": 0.6, //该英雄胜率 }, "bp_stats": { //bp统计 "bans": [ { "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "rate": 0.6, //该英雄ban率 }, "picks": [ { "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "rate": 0.6, //该英雄pick率 }, ] }, "matches": [ { "match_id": 121883, //比赛ID "race_ids": [ 142532, 142533, 142534, 142535 ] }, { "match_id": 114483, //比赛ID "race_ids": [ 137621, 137625, 137628, 137629 ] }, { "match_id": 114299, //比赛ID "race_ids": [ 137151, 137155, 137158, 137163, 137165 ] }, { "match_id": 113901, //比赛ID "race_ids": [ 136722, 136729, 136737 ] }, { "match_id": 113833, //比赛ID "race_ids": [ 136555, 136556, 136560 ] }, { "match_id": 113786, //比赛ID "race_ids": [ 136125, 136130, 136140, 136149 ] } ] }, ...... ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_blood\_rate | int | 一 血率 | \--- | | first\_drakes\_rate | string | 首小龙率 | \--- | | first\_nashors\_rate | int | 首大龙率 | \--- | | first\_turret\_rate | int | 一塔率 | \--- | | 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 | 小局胜率 | \--- | | team\_id | int | 队伍id | \--- | | ten\_kills\_rate | int | 10杀率 | \--- | | win\_rate | int | 胜率 | \--- | | pre_win_rate | int | 预测胜率 | \--- | | is_stats | int | 是否有统计数据(true是 false否) | \--- | ***** ### 历史交手数据 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/234?token=XXXXX ~~~ ~~~ { "game_id": 3, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 135750, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 12257, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 12257, //id "name": "无锡JXG", //中文名 "abbr": "", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxxx.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, //一 血率 "first_turret_rate": 0.5, //一 塔率 "five_kills_rate": 1, //5杀率 "ten_kills_rate": 0.5, //10杀率 "first_drakes_rate": 0.5652174, //首暴君率 "first_nashors_rate": 0.6086956, //首主宰率 "kill_num_23_5": 0.13043478, "time_num_19": 0.39130434, "kill_avg": 87.875 //场均击杀 "duration_avg": 1900.5 //场均时长 "pre_win_rate": 0.81 //预测胜率 } }, ...... ], "matches": [ { "match_id": 92784, //比赛ID "race_ids": [ 134124, 134126, 134130, 134131 ] } ] } ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_blood\_rate | int | 一血率 | \--- | | first\_drakes\_rate | string | 首暴君率- | \--- | | first\_nashors\_rate | string | 首主宰率 | \--- | | first\_turret\_rate | int | 一塔率 | \--- | | 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 | 小局胜率 | \--- | | team\_id | int | 队伍id | \--- | | ten\_kills\_rate | int | 10杀率 | \--- | | time\_num\_19 | int | 游戏时间大于19的概率 | \--- | | win\_rate | int | 胜率 | \--- | | pre_win_rate | int | 预测胜率 | \--- | | is_stats | int | 是否有统计数据(true是 false否) | \--- |