个人博客地址: www.codingshen.com
前言今天在逛博客的时候看到了一位博主分享了一个开源的网址,用于查询王者荣耀英雄战力。原网址如下:https://lza59.com/archives/25.html。
感觉很有意思就转了过来。希望西施姐姐早日重回金牌🏅!!
王者荣耀中,我们玩的每个英雄,都会形成自己的荣耀战力,其实英雄荣耀战力排名不仅跟英雄具体战力有关系,还跟玩家选择的荣耀战区有关系,越是冷门的地方人越少,战力排名越低。很多小伙伴们打王者希望更轻松的拿到金标,鉴于此向大家分享王者战力查询小工具
快捷入口王者荣耀战力查询
数据来源数据均来自互联网,未涉及侵入计算机系统或者非法抓取底层接口。本工具使用的是网上免费的接口,相关接口如下。
用于获取所有的英雄列表https://www.sapi.run/hero/herolist.json
{"code":200,"data":[{"ename":105,"cname":"廉颇","title":"正义爆轰","iconUrl":"http://www.kaotop.com/file/tupian/20220428/105.jpg"},{"ename":106,"cname":"小乔","title":"恋之微风","iconUrl":"http://www.kaotop.com/file/tupian/20220428/106.jpg"},{"ename":107,"cname":"赵云","title":"苍天翔龙","iconUrl":"http://www.kaotop.com/file/tupian/20220428/107.jpg"},{"ename":108,"cname":"墨子","title":"和平守望","iconUrl":"http://www.kaotop.com/file/tupian/20220428/108.jpg"},{"ename":109,"cname":"妲己","title":"魅力之狐","iconUrl":"http://www.kaotop.com/file/tupian/20220428/109.jpg"},{"ename":110,"cname":"嬴政","title":"王者独尊","iconUrl":"http://www.kaotop.com/file/tupian/20220428/110.jpg"},{"ename":111,"cname":"孙尚香","title":"千金重弩","iconUrl":"http://www.kaotop.com/file/tupian/20220428/111.jpg"},{"ename":112,"cname":"鲁班七号","title":"机关造物","iconUrl":"http://www.kaotop.com/file/tupian/20220428/112.jpg"},{"ename":113,"cname":"庄周","title":"逍遥梦幻","iconUrl":"http://www.kaotop.com/file/tupian/20220428/113.jpg"},{"ename":114,"cname":"刘禅","title":"暴走机关","iconUrl":"http://www.kaotop.com/file/tupian/20220428/114.jpg"},{"ename":115,"cname":"高渐离","title":"叛逆吟游","iconUrl":"http://www.kaotop.com/file/tupian/20220428/115.jpg"},{"ename":116,"cname":"阿轲","title":"信念之刃","iconUrl":"http://www.kaotop.com/file/tupian/20220428/116.jpg"},{"ename":117,"cname":"钟无艳","title":"野蛮之锤","iconUrl":"http://www.kaotop.com/file/tupian/20220428/117.jpg"},{"ename":118,"cname":"孙膑","title":"逆流之时","iconUrl":"http://www.kaotop.com/file/tupian/20220428/118.jpg"},{"ename":119,"cname":"扁鹊","title":"善恶怪医","iconUrl":"http://www.kaotop.com/file/tupian/20220428/119.jpg"},{"ename":120,"cname":"白起","title":"最终兵器","iconUrl":"http://www.kaotop.com/file/tupian/20220428/120.jpg"},{"ename":121,"cname":"芈月","title":"永恒之月","iconUrl":"http://www.kaotop.com/file/tupian/20220428/121.jpg"},{"ename":123,"cname":"吕布","title":"无双之魔","iconUrl":"http://www.kaotop.com/file/tupian/20220428/123.jpg"},{"ename":124,"cname":"周瑜","title":"铁血都督","iconUrl":"http://www.kaotop.com/file/tupian/20220428/124.jpg"},{"ename":126,"cname":"夏侯惇","title":"不羁之风","iconUrl":"http://www.kaotop.com/file/tupian/20220428/126.jpg"},{"ename":127,"cname":"甄姬","title":"洛神降临","iconUrl":"http://www.kaotop.com/file/tupian/20220428/127.jpg"},{"ename":128,"cname":"曹 *** ","title":"鲜血枭雄","iconUrl":"http://www.kaotop.com/file/tupian/20220428/128.jpg"},{"ename":129,"cname":"典韦","title":"狂战士","iconUrl":"http://www.kaotop.com/file/tupian/20220428/129.jpg"},{"ename":130,"cname":"宫本武藏","title":"剑圣","iconUrl":"http://www.kaotop.com/file/tupian/20220428/130.jpg"},{"ename":131,"cname":"李白","title":"青莲剑仙","iconUrl":"http://www.kaotop.com/file/tupian/20220428/131.jpg"},{"ename":132,"cname":"马可波罗","title":"远游之q","iconUrl":"http://www.kaotop.com/file/tupian/20220428/132.jpg"},{"ename":133,"cname":"狄仁杰","title":"断案大师","pay_type":11,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/133.jpg"},{"ename":134,"cname":"达摩","title":"拳僧","pay_type":10,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/134.jpg"},{"ename":135,"cname":"项羽","title":"霸王","iconUrl":"http://www.kaotop.com/file/tupian/20220428/135.jpg"},{"ename":136,"cname":"武则天","title":"女帝","iconUrl":"http://www.kaotop.com/file/tupian/20220428/136.jpg"},{"ename":139,"cname":"老夫子","title":"万古长明","iconUrl":"http://www.kaotop.com/file/tupian/20220428/139.jpg"},{"ename":140,"cname":"关羽","title":"一骑当千","iconUrl":"http://www.kaotop.com/file/tupian/20220428/140.jpg"},{"ename":141,"cname":"貂蝉","title":"绝世舞姬","pay_type":10,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/141.jpg"},{"ename":142,"cname":"安琪拉","title":"暗夜萝莉","iconUrl":"http://www.kaotop.com/file/tupian/20220428/142.jpg"},{"ename":144,"cname":"程咬金","title":"热烈之斧","iconUrl":"http://www.kaotop.com/file/tupian/20220428/144.jpg"},{"ename":146,"cname":"露娜","title":"月光之女","iconUrl":"http://www.kaotop.com/file/tupian/20220428/146.jpg"},{"ename":148,"cname":"姜子牙","title":"太古魔导","pay_type":10,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/148.jpg"},{"ename":149,"cname":"刘邦","title":"双面君主","iconUrl":"http://www.kaotop.com/file/tupian/20220428/149.jpg"},{"ename":150,"cname":"韩信","title":"国士无双","iconUrl":"http://www.kaotop.com/file/tupian/20220428/150.jpg"},{"ename":152,"cname":"王昭君","title":"冰雪之华","iconUrl":"http://www.kaotop.com/file/tupian/20220428/152.jpg"},{"ename":153,"cname":"兰陵王","title":"暗影刀锋","iconUrl":"http://www.kaotop.com/file/tupian/20220428/153.jpg"},{"ename":154,"cname":"花木兰","title":"传说之刃","iconUrl":"http://www.kaotop.com/file/tupian/20220428/154.jpg"},{"ename":156,"cname":"张良","title":"言灵之书","iconUrl":"http://www.kaotop.com/file/tupian/20220428/156.jpg"},{"ename":157,"cname":"不知火舞","title":"明媚烈焰","iconUrl":"http://www.kaotop.com/file/tupian/20220428/157.jpg"},{"ename":162,"cname":"娜可露露","title":"鹰之守护","iconUrl":"http://www.kaotop.com/file/tupian/20220428/162.jpg"},{"ename":163,"cname":"橘右京","title":"神梦一刀","iconUrl":"http://www.kaotop.com/file/tupian/20220428/163.jpg"},{"ename":166,"cname":"亚瑟","title":"圣骑之力","pay_type":11,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/166.jpg"},{"ename":167,"cname":"孙悟空","title":"齐天大圣","iconUrl":"http://www.kaotop.com/file/tupian/20220428/167.jpg"},{"ename":168,"cname":"牛魔","title":"精英酋长","iconUrl":"http://www.kaotop.com/file/tupian/20220428/168.jpg"},{"ename":169,"cname":"后羿","title":"半神之弓","iconUrl":"http://www.kaotop.com/file/tupian/20220428/169.jpg"},{"ename":170,"cname":"刘备","title":"仁德义q","iconUrl":"http://www.kaotop.com/file/tupian/20220428/170.jpg"},{"ename":171,"cname":"张飞","title":"禁血狂兽","iconUrl":"http://www.kaotop.com/file/tupian/20220428/171.jpg"},{"ename":173,"cname":"李元芳","title":"王都密探","iconUrl":"http://www.kaotop.com/file/tupian/20220428/173.jpg"},{"ename":174,"cname":"虞姬","title":"森之风灵","iconUrl":"http://www.kaotop.com/file/tupian/20220428/174.jpg"},{"ename":175,"cname":"钟馗","title":"虚灵城判","iconUrl":"http://www.kaotop.com/file/tupian/20220428/175.jpg"},{"ename":177,"cname":"成吉思汗","title":"苍狼末裔","pay_type":10,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/177.jpg"},{"ename":178,"cname":"杨戬","title":"根源之目","iconUrl":"http://www.kaotop.com/file/tupian/20220428/178.jpg"},{"ename":183,"cname":"雅典娜","title":"圣域余晖","iconUrl":"http://www.kaotop.com/file/tupian/20220428/183.jpg"},{"ename":184,"cname":"蔡文姬","title":"天籁弦音","iconUrl":"http://www.kaotop.com/file/tupian/20220428/184.jpg"},{"ename":186,"cname":"太乙真人","title":"炼金大师","iconUrl":"http://www.kaotop.com/file/tupian/20220428/186.jpg"},{"ename":180,"cname":"哪吒","title":"桀骜炎q","iconUrl":"http://www.kaotop.com/file/tupian/20220428/180.jpg"},{"ename":190,"cname":"诸葛亮","title":"绝代智谋","iconUrl":"http://www.kaotop.com/file/tupian/20220428/190.jpg"},{"ename":192,"cname":"黄忠","title":"燃魂重炮","iconUrl":"http://www.kaotop.com/file/tupian/20220428/192.jpg"},{"ename":191,"cname":"大乔","title":"沧海之曜","iconUrl":"http://www.kaotop.com/file/tupian/20220428/191.jpg"},{"ename":187,"cname":"东皇太一","title":"噬灭日蚀","pay_type":10,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/187.jpg"},{"ename":182,"cname":"干将莫邪","title":"淬命双剑","iconUrl":"http://www.kaotop.com/file/tupian/20220428/182.jpg"},{"ename":189,"cname":"鬼谷子","title":"万物有灵","iconUrl":"http://www.kaotop.com/file/tupian/20220428/189.jpg"},{"ename":193,"cname":"铠","title":"破灭刃锋","iconUrl":"http://www.kaotop.com/file/tupian/20220428/193.jpg"},{"ename":196,"cname":"百里守约","title":"静谧之眼","iconUrl":"http://www.kaotop.com/file/tupian/20220428/196.jpg"},{"ename":195,"cname":"百里玄策","title":"嚣狂之镰","iconUrl":"http://www.kaotop.com/file/tupian/20220428/195.jpg"},{"ename":194,"cname":"苏烈","title":"不屈铁壁","iconUrl":"http://www.kaotop.com/file/tupian/20220428/194.jpg"},{"ename":198,"cname":"梦奇","title":"入梦之灵","iconUrl":"http://www.kaotop.com/file/tupian/20220428/198.jpg"},{"ename":179,"cname":"女娲","title":"至高创世","iconUrl":"http://www.kaotop.com/file/tupian/20220428/179.jpg"},{"ename":501,"cname":"明世隐","title":"灵魂劫卜","iconUrl":"http://www.kaotop.com/file/tupian/20220428/501.jpg"},{"ename":199,"cname":"公孙离","title":"幻舞玲珑","iconUrl":"http://www.kaotop.com/file/tupian/20220428/199.jpg"},{"ename":176,"cname":"杨玉环","title":"霓裳风华","iconUrl":"http://www.kaotop.com/file/tupian/20220428/176.jpg"},{"ename":502,"cname":"裴擒虎","title":"六合虎拳","iconUrl":"http://www.kaotop.com/file/tupian/20220428/502.jpg"},{"ename":197,"cname":"弈星","title":"天元之弈","iconUrl":"http://www.kaotop.com/file/tupian/20220428/197.jpg"},{"ename":503,"cname":"狂铁","title":"战车意志","iconUrl":"http://www.kaotop.com/file/tupian/20220428/503.jpg"},{"ename":504,"cname":"米莱狄","title":"筑城者","iconUrl":"http://www.kaotop.com/file/tupian/20220428/504.jpg"},{"ename":125,"cname":"元歌","title":"无间傀儡","iconUrl":"http://www.kaotop.com/file/tupian/20220428/125.jpg"},{"ename":510,"cname":"孙策","title":"光明之海","iconUrl":"http://www.kaotop.com/file/tupian/20220428/510.jpg"},{"ename":137,"cname":"司马懿","title":"寂灭之心","iconUrl":"http://www.kaotop.com/file/tupian/20220428/137.jpg"},{"ename":509,"cname":"盾山","title":"无尽之盾","iconUrl":"http://www.kaotop.com/file/tupian/20220428/509.jpg"},{"ename":508,"cname":"伽罗","title":"破魔之箭","iconUrl":"http://www.kaotop.com/file/tupian/20220428/508.jpg"},{"ename":312,"cname":"沈梦溪","title":"爆d怪猫","iconUrl":"http://www.kaotop.com/file/tupian/20220428/312.jpg"},{"ename":507,"cname":"李信","title":"谋世之战","iconUrl":"http://www.kaotop.com/file/tupian/20220428/507.jpg"},{"ename":513,"cname":"上官婉儿","title":"惊鸿之笔","iconUrl":"http://www.kaotop.com/file/tupian/20220428/513.jpg"},{"ename":515,"cname":"嫦娥","title":"寒月公主","iconUrl":"http://www.kaotop.com/file/tupian/20220428/515.jpg"},{"ename":511,"cname":"猪八戒","title":"无忧猛士","iconUrl":"http://www.kaotop.com/file/tupian/20220428/511.jpg"},{"ename":529,"cname":"盘古","title":"破晓之神","iconUrl":"http://www.kaotop.com/file/tupian/20220428/529.jpg"},{"ename":505,"cname":"瑶","title":"鹿灵守心","iconUrl":"http://www.kaotop.com/file/tupian/20220428/505.jpg"},{"ename":506,"cname":"云中君","title":"流云之翼","iconUrl":"http://www.kaotop.com/file/tupian/20220428/506.jpg"},{"ename":522,"cname":"曜","title":"星辰之子","iconUrl":"http://www.kaotop.com/file/tupian/20220428/522.jpg"},{"ename":518,"cname":"马超","title":"冷晖之q","iconUrl":"http://www.kaotop.com/file/tupian/20220428/518.jpg"},{"ename":523,"cname":"西施","title":"幻纱之灵","iconUrl":"http://www.kaotop.com/file/tupian/20220428/523.jpg"},{"ename":525,"cname":"鲁班大师","title":"神匠","iconUrl":"http://www.kaotop.com/file/tupian/20220428/525.jpg"},{"ename":524,"cname":"蒙犽","title":"烈炮小子","iconUrl":"http://www.kaotop.com/file/tupian/20220428/524.jpg"},{"ename":531,"cname":"镜","title":"破镜之刃","pay_type":10,"iconUrl":"http://www.kaotop.com/file/tupian/20220428/531.jpg"},{"ename":527,"cname":"蒙恬","title":"秩序统将","iconUrl":"http://www.kaotop.com/file/tupian/20220428/527.jpg"},{"ename":533,"cname":"阿古朵","title":"山林之子","iconUrl":"http://www.kaotop.com/file/tupian/20220428/533.jpg"},{"ename":536,"cname":"夏洛特","title":"玫瑰剑士","iconUrl":"http://www.kaotop.com/file/tupian/20220428/536.jpg"},{"ename":528,"cname":"澜","title":"鲨之猎刃","iconUrl":"http://www.kaotop.com/file/tupian/20220428/528.jpg"},{"ename":537,"cname":"司空震","title":"雷霆之王","iconUrl":"http://www.kaotop.com/file/tupian/20220428/537.jpg"},{"ename":155,"cname":"艾琳","title":"精灵之舞","iconUrl":"http://www.kaotop.com/file/tupian/20220428/155.jpg"},{"ename":538,"cname":"云缨","title":"燎原之心","iconUrl":"http://www.kaotop.com/file/tupian/20220428/538.jpg"},{"ename":540,"cname":"金蝉","title":"渡世行者","iconUrl":"http://www.kaotop.com/file/tupian/20220428/540.jpg"},{"ename":542,"cname":"暃","title":"玉城之子","iconUrl":"http://www.kaotop.com/file/tupian/20220428/542.jpg"}]}
请求后,返回结果如下,我们可以看到英雄的名称、头衔、头像图片:
战力查询 文字版参数
hero:英雄名字
type:qq、wx、ios_qq、ios_wx
示例
https://www.sapi.run/hero/select.php?hero=孙悟空&type=qq
返回结果如下
{"code":200,"data":{"platform":"\u5b89\u5353-\u6263\u6263\u533a","name":"\u5b59\u609f\u7a7a","alias":"\u9f50\u5929\u5927\u5723-\u5b59\u609f\u7a7a","photo":"https:\/\/game.gtimg.cn\/images\/yxzj\/img201606\/heroimg\/167\/167.jpg","area":"\u5357\u5cb3\u533a","areaPower":"3543","city":"\u83b1\u829c\u5e02","cityPower":"4853","province":"\u9999\u6e2f","provincePower":"6547","stamp":"1636424047","updatetime":"2021\/11\/09 10:14:07"},"msg":"\u5185\u90e8\u63a5\u53e3\uff0c\u8bf7\u52ff\u6cc4\u9732"}
这里是需要转换格式的,可以直接用json格式化工具获取结果
返回图片,可以直接发送;内置3种卡片可选,和部分定制卡片
接口:https://www.sapi.run/pic/getHero.php
参数
hero:英雄名字
type:qq、wx、ios_qq、ios_wx
card:1、2、3
format:json、png
示例
https://www.sapi.run/pic/getHero.php?hero=孙悟空&type=ios_qq&format=json&card=2
返回结果如下
{"code":200,"data":"https:\/\/www.sapi.run\/pic\/images\/temp\/1.png","msg":"\u8bf7\u6c42\u6210\u529f"}
同样方法看到结果
{
"code":200,
"data":"http://www.kaotop.com/file/tupian/20220428/1.png",
"msg":"请求成功"
}
访问图片后可以看到下图
源码下载Github地址
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)