有没有整合好的Dota2的webwebdriver api文档使用文档

有没有整合好的Dota2的web api使用文档? - 知乎2被浏览220分享邀请回答open.varena.com 这个网站申请API-KEY,并加入QQ群,如果KEY里的数据类型不能满足你,可以尝试找管理员,这是国内目前针对dota2接口唯一开源的网站。目前我就只知道这一个。1添加评论分享收藏感谢收起dota2-apipublicDota2 Web Api
IMPORTANT: API is based on promises from v0.2.0
Dota2 web api node.js version.See detail
npm install dota2-api
const Dota2Api = require('dota2-api');
const da = Dota2Api.create('a key');
const options = {game_mode: 1};
da.getMatchHistory(options).then((result) =& {
console.log(result);
}, (errorResponseStatusText) =& {
console.log(errorResponseStatusText);
Methods relating to Dota 2 matches.
Dota2Api.create(key, [ID])
Create Dota2Api instance,require a key.(if no, see )
List of IDs:
570 Dota 2 (default)
816 Dota 2 internal test
205790 Dota 2 (beta) test
const da = Dota2Api.create('a key', 570);
Dota2Api.prototype.getLeagueListing([options])
Information about DotaTV-supported leagues.
leagueid (Optional) (int) – The ID of the league to get the prize pool of.
Dota2Api.prototype.getLiveLeagueGames()
A list of in-progress league matches, as well as details of that match as it unfolds.
Dota2Api.prototype.getMatchDetails([options])
Information about a particular match.
match_id (string) – Match id
Dota2Api.prototype.getMatchHistory([options])
A list of matches, filterable by various parameters.
hero_id (Optional) (uint32) – A list of hero IDs can be found via the GetHeroes method.
game_mode (Optional) (uint32)
1 - All Pick
2 - Captain's Mode
3 - Random Draft
4 - Single Draft
5 - All Random
7 - Diretide
8 - Reverse Captain's Mode
9 - The Greeviling
10 - Tutorial
11 - Mid Only
12 - Least Played
13 - New Player Pool
14 - Compendium Matchmaking
16 - Captain's Draft
skill (Optional) (uint32) – Skill bracket for the matches (Ignored if an account ID is specified).
1 - Normal
3 - Very High
date_min (Optional) (uint32) – Minimum date range for returned matches (unix timestamp, rounded to the nearest day).
date_max (Optional) (uint32) – Maximum date range for returned matches (unix timestamp, rounded to the nearest day).
min_players (Optional) (string) – Minimum amount of players in a match for the match to be returned.
account_id (Optional) (string) – 32-bit account ID.
league_id (Optional) (string) – Only return matches from this league. A list of league IDs can be found via the GetLeagueListing method.
start_at_match_id (Optional) (string) - Start searching for matches equal to or older than this match ID.
matches_requested (Optional) (number) – Amount of matches to include in results (default: 25).
tournament_games_only (Optional) (string) – Whether to limit results to tournament matches. (0 = false, 1 = true)
Dota2Api.prototype.getMatchHistoryBySequenceNum([options])
A list of matches ordered by their sequence num.
start_at_match_seq_num (Optional) (uint64) – The match sequence number to start returning results from.
matches_requested (Optional) (uint32) – The amount of matches to return.
Dota2Api.prototype.getScheduledLeagueGames([options])
A list of scheduled league games coming up.
date_min (Optional) (uint32) – Unix timestamp
date_max (Optional) (uint32) – Unix timestamp
Dota2Api.prototype.getTeamInfoByTeamID([options])
A list of all the teams set up in-game.
start_at_team_id (Optional) (uint64) – The team id to start returning results from.
teams_requested (Optional) (uint32) – The amount of teams to return.
Dota2Api.prototype.getTournamentPlayerStats([options])
Stats about a particular player within a tournament.
account_id (string) – 32-bit account ID.
league_id (Optional) (string) – A list of league IDs can be found via the GetLeagueListing method. Will return status 8 - only supports tournament 65006 (The International) unless you provide 65006.
hero_id (Optional) (string) – A list of hero IDs can be found via the GetHeroes method.
time_frame (Optional) (string) – Only return stats between this time frame (parameter format not yet known).
Dota2Api.prototype.getTopLiveGame([options])
partner (int32) – Which partner's games to use.
Methods relating to Dota 2.
Dota2Api.prototype.getGameItems([options])
Dota 2 In-game items
language (Optional) (string) – The language to provide hero names in.
Dota2Api.prototype.getItemIconPath([options])
iconname (string) – The item icon name to get the CDN path of
icontype (Optional) (uint32) – The type of image you want.
0 = normal
2 = ingame
Dota2Api.prototype.getRarities([options])
Dota 2 item rarity list.
language (Optional) (string) – The language to provide hero names in.
Dota2Api.prototype.getHeroes([options])
A list of heroes within Dota 2.
language (Optional) (string) – The language to provide hero names in.
itemizedonly (Optional) (bool) – Return a list of itemized heroes only.
Dota2Api.prototype.getTournamentPrizePool([options])
The current prizepool for specific tournaments.
leagueid (Optional) (int) – The ID of the league to get the prize pool of.
Implement this methods(https://wiki.teamfortress.com/wiki/WebAPI#Dota_2):
IEconDOTA2_
GetEventStatsForAccount
IDOTA2MatchStats_
GetRealtimeStats
IDOTA2Fantasy_
GetFantasyPlayerStats
GetPlayerOfficialInfo
IDOTA2StreamSystem_
GetBroadcasterInfo
IDOTA2Teams_
GetTeamInfo
IDOTA2AutomatedTourney_
GetActiveTournamentList
IDOTA2Ticket_
SetSteamAccountPurchased
SteamAccountValidForEventDota2的资料怎么完善_百度知道
Dota2的资料怎么完善
我进入官网后系统就直接提示要我完善个人资料,可是并没有页面让我来修改。
我有更好的答案
百度搜索“完美通行证”,进入完美通行证官网,点击会员中心-会员中心首页,输入完美通行证的帐号和密码登录,然后在其中找到防沉迷这一项,登录防沉迷信息即可。
最大的游戏问答平台
dota2的资料,登录steam,或steam官网,点名字,里面有修改个人资料
本回答被提问者采纳
可以先不管,进入游戏后,点击自己的图像继续可以完善!
可以到完美官网上去完善
其他1条回答
为您推荐:
其他类似问题
dota2的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。有什么办法重新下东方梦符祭么 下载文档都行 任何办法都行 有么【dota2吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0可签7级以上的吧50个
本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:4,053,560贴子:
有什么办法重新下东方梦符祭么 下载文档都行 任何办法都行 有
有什么办法重新下东方梦符祭么 下载文档都行 任何办法都行 有么
别问 问就没有 要看作者的情况 你倒不如去那个吧问
贴吧有帖子教程,自己去找就是了
贴吧和群里有教程
贴吧热议榜
使用签名档&&
保存至快速回贴在DOTA2游戏目录下有一类VPK文件,如何打开VPK文件?
下载,安装完成后即可打开。
闪电站小猪打开dota 2 beta\dota\pak01_dir.vpk文件,可以见到
在其中resource\flash3\images\下有文件夹heros和items分别有着英雄及物品的图标,右键点击Extract即可导出。
在其中scripts\npc\下有文件,items.txt(items和id的对应),npc_heros.txt(heros和id的对应),npc_abilities.txt(abilities和id的对应,因为有OMG模式)
其他文件中还有英雄模型等文件,还有什么可以利用在你的应用上,等着你来发现挖掘。
此外在dota2目录下还有VPK文件sound_vo_engilsh,sound_vo_schinese,分别是英语以及中文的配音文件,闪电站小猪感觉dota2开发好难啊。
你应该在开始API开发之前知道的事(上)(翻译)
这篇文章的源地址:
由于文章内容较多,英语水平有限,准备尝试着以中英混搭的形式翻译,免得曲解一些不懂内容的意思。以下开始为翻译内容:
这篇文章会持续更新, 请在suggesting missing items前查看底部的TODO List
Web开发者现在可以以JSON或者XML格式,获得匹配历史记录及详情并使用在他们自己的应用中。
,你将获得你的API唯一密钥。
请不要在做WebAPI请求的时候泄露或被其他人查看到。
来自Zoid的说明:
申请API时,the &domain& field is just a note. 事实上没有任何需要用到的地方, 只是一个 helpful field 让你能够告诉我们你的网站是哪个. 你也可以暂时填入你的名字. 一旦你获得了Key, 这个Key就是当你执行API请求时我们对你的唯一标示。
提供以下API使用:
(GetMatchHistory)
https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/v001/
(GetMatchDetails)
https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/v001/
(GetHeroes)
https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/
(GetPlayerSummaries)
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/
(EconomySchema)
https://api.steampowered.com/IEconItems_570/GetSchema/v0001/
(GetLeagueListing)
https://api.steampowered.com/IDOTA2Match_570/GetLeagueListing/v0001/
(GetLiveLeagueGames)
https://api.steampowered.com/IDOTA2Match_570/GetLiveLeagueGames/v0001/
(GetMatchHistoryBySequenceNum) https://api.steampowered.com/IDOTA2Match_570/GetMatchHistoryBySequenceNum/v0001/
(GetTeamInfoByTeamID)
https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/v001/
如果想要了解所有可用的API,请看
常用选项:
注意,除非另有说明,否则默认为空或忽略
# Your personal API key (from above)
language=&lang& # The language to retrieve results in (default is en_us) (see http://en.wikipedia.org/wiki/ISO_639-1 for the language codes (first two characters) and http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for the country codes (last two characters))
format=&form&
# The format to retrieve results in (&JSON& or &XML&) (default is JSON)
GetMatchHistory
Used to get a list of matches played.
player_name=&name&
# Search matches with a player name, exact match only
hero_id=&id&
# Search for matches with a specific hero being played (hero ID, not name, see HEROES below)
game_mode=&mode&
# Search for matches of a given mode (see below)
skill=&skill&
# 0 for any, 1 for normal, 2 for high, 3 for very high skill (default is 0)
date_min=&date&
# date in UTC seconds since Jan 1, 1970 (unix time format)
date_max=&date&
# date in UTC seconds since Jan 1, 1970 (unix time format)
min_players=&count&
# the minimum number of players required in the match
account_id=&id&
# Search for all matches for the given user (32-bit or 64-bit steam ID)
league_id=&id&
# matches for a particular league
start_at_match_id=&id&
# Start the search at the indicated match id, descending
matches_requested=&n&
# Maximum is 25 matches (default is 25)
tournament_games_only=&string& # set to only show tournament games
根据某人的32位ID获得其最近的25场比赛
https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=&key&&account_id=XXXXX
获得最近的一场比赛
https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=&key&&matches_requested=1
注意,为了能够到”下一页“,你需要做这么一两件事:
使用查询到的最后一场match_id来作为新一次查询的start_at_match_id:
https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=&key&&start_at_match_id=&id&&&OTHER_OPTIONS&
使用查询到的最后一场starttime来作为新一次查询的date_max:
https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=&key&&date_max=&id&&&OTHER_OPTIONS&
返回结果的字段格式:
num_results – 在返回数据中,查询到结果的数量
total_results – 这次particular查询到结果的总数[(total_results / num_results) = total_num_pages]
results_remaining – 这次查询结果剩余未返回的数量 [(results_remaining / num_results) = remaining_num_pages]
matches – 有num_results个数量比赛的数组:
match_id – 比赛的数字ID
match_seq_num – 比赛序号 – the order in which matches are recorded
start_time – date in UTC seconds since Jan 1, 1970 (unix time format)
lobby_type
– lobby值的对应关系
5 = Team match.
4 = Co-op with bots.
3 = Tutorial.
2 = Tournament.
1 = Practice.
0 = Public matchmaking.
-1 = Invalid.
players – 玩家数组:
account_id – 玩家的32位Steam ID – 如果玩家将自己的资料设为隐私,account_id将会是&&
player_slot – 8位unsigned int型: if the left-most bit is set, the player was on dire. the two right-most bits represent the player slot (0-4).
hero_id – 玩家所玩英雄的数字ID (见下方)
GetMatchDetails
Used to get detailed information about a specified match.
可用的选项:
match_id=&id& # the match's ID
根据ID &XXXXX&获得比赛详细记录:、
https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=&key&&match_id=XXXXX
返回结果的字段格式:
players – 玩家数组
account_id – 玩家的32位Steam ID – 如果玩家将自己的资料设为隐私,account_id将会是&&
player_slot – 8位unsigned int型: if the left-most bit is set, the player was on dire. the two right-most bits represent the player slot (0-4).
hero_id – 玩家所玩英雄的数字ID
item_0 – 比赛结束时玩家的物品栏 左上 物品ID
item_1 – 比赛结束时玩家的物品栏 中上 物品ID
item_2 – 比赛结束时玩家的物品栏 右上 物品ID
item_3 – 比赛结束时玩家的物品栏 左下 物品ID
item_4 – 比赛结束时玩家的物品栏 中下 物品ID
item_5 – 比赛结束时玩家的物品栏 右下 物品ID
kills – 杀人数
deaths – 死亡数
assists – 助攻数
leaver_status
NULL – 玩家是电脑
2 – 玩家放弃比赛
1 – 玩家在比赛可以安全退出后放弃比赛
0 – 玩家完成了整场比赛
gold – 玩家在比赛结束之后剩余的金钱
last_hits – 正补数
denies – 反补数
gold_per_min – 玩家每秒金钱
xp_per_min – 玩家每秒经验
gold_spent – 整场比赛玩家花费的金钱
hero_damage – 对英雄伤害
tower_damage – 对塔伤害
hero_healing – 对其他英雄的治疗量
level – 最后的等级
ability_upgrades – 一个数组详细的记录玩家每次加点记录
ability – 所加技能的ID
time – 加点时间(/秒)从比赛开始计算
level – 加点等级
additional_units – 玩家额外控制的单位信息 (其实就是熊德的宝宝)
unitname – 单位名字
item_0 – 比赛结束时物品栏 左上 物品ID
item_1 – 比赛结束时物品栏 中上 物品ID
item_2 – 比赛结束时物品栏 右上 物品ID
item_3 – 比赛结束时物品栏 左下 物品ID
item_4 – 比赛结束时物品栏 中下 物品ID
item_5 – 比赛结束时物品栏 右下 物品ID
season – ?
radiant_win – radiant赢了为true,false反之
duration – 整场比赛的用时
start_time – date in UTC seconds since Jan 1, 1970 (unix time format)
match_id – 比赛数字ID
match_seq_num – 比赛序号 – the order in which matches are recorded
tower_status_radiant – 11位 unsinged int:
tower_status_dire – 11位 unsinged int:
barracks_status_radiant – 6位 unsinged int:
barracks_status_radiant – 6位 unsinged int:
(吐槽,应该是dire不是radiant吧,还有应该是unsigned不是unsinged吧)
cluster – 见下方的REPLAYS
first_blood_time – 一血诞生的时间
replay_salt – 见下方REPLAYS 目前已从API中移除
lobby_type – lobby类型 (见上方GetMatchHistory)
human_players – 比赛中human players的数量
leagueid – 比赛所属leauge的ID (见上方GetMatchHistory)
positive_votes – 多少人顶
positive_votes – 多少人踩(估计这个写错了,应该是 negative_votes -多少人踩)
game_mode – 比赛模式
* : ‘All Pick’,
* : &Captains Mode&,
* : ‘Random Draft’,
* : ‘Single Draft’,
* : ‘All Random’,
* : ‘?? INTRO/DEATH ??’,
* : ‘The Diretide’,
* : &Reverse Captains Mode&,
* : ‘Greeviling’,
* : ‘Tutorial’,
* : ‘Mid Only’,
* : ‘Least Played’,
* : ‘New Player Pool’
接下来的字段只会在 teams applied to radiant and dire 的时候有(i.e. this is a league match in a private lobby (英文不好,话说radiant和dire分别代表天辉和夜魇么?)
radiant_name – radiant 队伍的名字
radiant_logo -  radiant 队伍的LOGO (想要获得图片, 见下方FAQ)
radiant_team_complete – true为所有radiant的成员都属于本队伍, false反之 (i.e. are the stand-ins {false} or not {true})
dire_name – dire队伍的名字
dire_logo – the dire 队伍的LOGO (想要获得图片, 见下方FAQ)
dire_team_complete – true为所有dire的成员都属于本队伍, false反之  (i.e. are the stand-ins {false} or not {true}) 
转载请注明来自:[]}

我要回帖

更多关于 web api文档生成工具 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信