ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 3.15.2 前瞻分析接口 ### 近期数据 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/4/234?token=XXXXX&match_num=6 ~~~ ~~~ { "game_id": 4, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 135729, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 14435, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 14435, //队伍id "name": "Team Renewal", //队伍中文名 "name_en": "", //队伍英文名 "abbr": "Renewal", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxx.png" }, "is_stats": true, //是否有统计数据(true有,false无) "stats": { "win": 7, //胜利场次 "lose": 3, //失败场次 "race_win": 12, //小局胜利次数 "race_lose": 11, //小局失败次数 "win_rate": 0.7, //胜率 "race_win_rate": 0.5217391, //小局胜率 "first_blood_rate": 0.3043478, //一 血率 "first_turret_rate": 0.5652174, //一 塔率 "five_kills_rate": 0.4347826, //5杀率 "ten_kills_rate": 0.4347826, //10杀率 "first_nashors_rate": 0, //首肉山率 "first_barrack_rate": 0.08695652, //首兵营率 "kill_num_47_5": 0.65217394, "time_num_35": 0.4347826, "kill_avg": 28.913044, //场均击杀 "duration_avg": 2129.8696, //场均时长 "pre_win_rate": 0 //预测胜率 }, "player_stats": { //选手分析 "1": { //选手位置,1号位 "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, //该英雄胜率 }, "2": { //选手位置,2号位 "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, //该英雄胜率 }, "3": { //选手位置,3号位 "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": 0.9972, //伤害转换 "damage_per_min": 296.9972, //分均伤害 "kill_avg": 0.53125, //场均击杀 "survivability": 0.53125, //生存能力 "gold_per_min": 2417.65317, //分均经济 "gold_diff": 2417.65317, //对位经济差 } "roles": [ //选手所使用的英雄信息 { "role_id": 106869, "metadata": { //英雄信息 "id": 106869, //英雄id "name": Xingye, //英雄名称 "logo": xxxx, //英雄logo "icon": xxxx, //英雄icon }, "num": 5, //使用英雄次数 "win_rate": 0.6, //该英雄胜率 }, "4": { //选手位置,4号位 "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": 2417.65317, //对位经济差 "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, //该英雄胜率 }, "5": { //选手位置,5号位 "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, //助攻 "total_heal": 2417.65317, //总治疗 } "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": 135733, //比赛ID "race_ids": [ 154524, 154530 ] }, { "match_id": 134190, //比赛ID "race_ids": [ //小局id 154351, 154366, 154380 ] }, { "match_id": 134192, //比赛ID "race_ids": [ //小局id 154325, 154332, 154337 ] }, { "match_id": 134097, //比赛ID "race_ids": [ //小局id 154152, 154155 ] }, { "match_id": 134107, //比赛ID "race_ids": [ //小局id 153846, 153854, 153856 ] }, { "match_id": 133386, //比赛ID "race_ids": [ //小局id 153564, 153574 ] } ] }, ...... ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_barrack\_rate | int | 首兵营率 | \--- | | first\_blood\_rate | int | 一 血率 | \--- | | 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杀率 | \--- | | time\_num\_35 | string |击杀数大于35的概率 | \--- | | 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": 4, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 135729, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 14435, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 14435, //id "name": "Team Renewal", //中文名 "abbr": "Renewal", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxx.png" }, "is_stats": true, //是否有统计数据(true有,false无) "stats": { "win": 7, //胜利场次 "lose": 3, //失败场次 "race_win": 12, //小局胜利次数 "race_lose": 11, //小局失败次数 "win_rate": 0.7, //胜率 "race_win_rate": 0.5217391, //小局胜率 "first_blood_rate": 0.3043478, //一 血率 "first_turret_rate": 0.5652174, //一 塔率 "five_kills_rate": 0.4347826, //5杀率 "ten_kills_rate": 0.4347826, //10杀率 "first_nashors_rate": 0, //首肉山率 "first_barrack_rate": 0.08695652, //首兵营率 "kill_num_47_5": 0.65217394, "time_num_35": 0.4347826, "kill_avg": 28.913044, //场均击杀 "duration_avg": 2129.8696, //场均时长 "pre_win_rate": 0 //预测胜率 } }, ...... ], "matches": [ { "match_id": 130858, //比赛ID "race_ids": [ 149519, 149522, 149531 ] } ] } ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_barrack\_rate | int | 首兵营率 | \--- | | first\_blood\_rate | int | 一 血率 | \--- | | 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无) | \--- |