ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 3.15.1 前瞻分析接口 ### 近期数据 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/1/234?token=XXXXX&match\_num=6 ~~~ ~~~ { "game_id": 1, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 129395, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 321, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 321, //队伍id "name": "V5 87", //队伍中文名 "name_en":"", //队伍英文名 "abbr": "87", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxx.png" }, "is_stats": true, //是否有统计数据(true有,false无) "stats": { "win": 8, //胜利场次 "lose": 2, //失败场次 "race_win": 17, //小局胜利次 "race_lose": 5, //小局失败次数 "win_rate": 0.8, //胜率 "race_win_rate": 0.77272725, //小局胜率 "first_blood_rate": 0.5, //一 血率 "first_turret_rate": 0.5, //一 塔率 "five_kills_rate": 0, //5杀率 "ten_kills_rate": 0, //10杀率 "first_drakes_rate": 0.36363637, //首小龙率 "first_nashors_rate": 0, //首大龙率 "first_herald_rate": 0, //首先锋率 "first_inhibitors_rate": 0.77272725, //首水晶率 "kill_num_26_5": 0.8636364, "time_num_33": 0.3181818, //游戏时间大于33的概率 "kill_avg": 21.454546, //场均击杀 "duration_avg": 1857.3182, //场均时长 "pre_win_rate": 0.83 //预测胜率 }, "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_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, //该英雄胜率 }, "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": 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, //该英雄胜率 }, "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, //助攻 "wards_placed_per_min": 2417.65317, //分均插眼 "Wards_remove_per_min ": 0, //分均拆眼 } "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": 129385, //比赛ID "race_ids": [ //小局id 154788, 154793 ] } ] }, ...... ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | 0 | string | \--- | \--- | | 1 | string | \--- | \--- | | abbr | string | 简称 | \--- | | first\_blood\_rate | int | 一血率 | \--- | | first\_drakes\_rate | int | 首小龙率 | \--- | | first\_herald\_rate | int | 首先锋率 | \--- | | first\_inhibitors\_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 | 队伍位置,参见字典 | \--- | | kill\_num\_26\_5 | 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\_33 | int | 游戏时间大于33的概率 | \--- | | 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": 1, //游戏id (1-lol,2-csgo,3-王者荣耀,4-dota2 ) "match_id": 129395, //比赛ID "match_num": 6, //统计场次 "teams": [ //队伍列表 { "team_id": 321, //队伍id "index": 1, //队伍位置,参见字典 "team": { "id": 321, //id "name": "V5 87", //中文名 "abbr": "87", //简称 "logo": "https://xxxxx.png", "icon": "https://xxxxx.png" }, "is_stats": true, //是否有统计数据(true有,false无) "stats": { "win": 2, //胜 "lose": 1, //负 "race_win": 3, //小局胜 "race_lose": 2, //小局负 "win_rate": 1, //胜率 "race_win_rate": 1, //小局胜率 "first_blood_rate": 1, //一血率 "first_turret_rate": 1, //一塔率 "five_kills_rate": 0, //5杀率 "ten_kills_rate": 0, //10杀率 "first_drakes_rate": 1, //首小龙率 "first_nashors_rate": 0, //首大龙率 "first_herald_rate": 0, //首先锋率 "first_inhibitors_rate": 1, //首水晶率 "kill_num_26_5": 1, "time_num_33": 0 //游戏时间大于33的概率 "kill_avg": 21.454546, //场均击杀 "duration_avg": 1857.3182, //场均时长 "pre_win_rate": 0.83 //预测胜率 }, }, ...... ], "matches": [ { "match_id": 129220, //比赛ID "race_ids": [ 150612 ] } ] } ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | abbr | string | 简称 | \--- | | first\_blood\_rate | int | 一血率 | \--- | | first\_drakes\_rate | int | 首小龙率 | \--- | | first\_herald\_rate | int | 首先锋率 | \--- | | first\_inhibitors\_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\_33 | int | 游戏时间大于33的概率 | \--- | | win\_rate | int | 胜率 | \--- | | pre_win_rate | int | 预测胜率 | \--- | | is_stats | int | 是否有统计数据(true有 false无) | \--- |