get_match_details {RDota2} | R Documentation |
Information about a specific match
Description
Player and Game information about a specific match ID.
Usage
get_match_details(match_id, dota_id = 570, language = "en", key = NULL)
Arguments
match_id |
The match ID you want to get information about. Can be either numeric or .character |
dota_id |
Can take one of three values.
|
language |
The ISO639-1 language code for returning all the information in the corresponding language. If the language is not supported, english will be returned. For a complete list of the ISO639-1 language codes please visit https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes. |
key |
The api key obtained from Steam. If you don't have one please visit
https://steamcommunity.com/dev in order to do so. For instructions on the correct way
to use this key please visit https://github.com/LyzandeR/RDota2 and check the readme file.
You can also see the examples. A key can be made available to all the functions by using
|
Details
A list will be returned that contains three elements. The content, the url and the response received from the api.
The content element is a list that contains information about the players participating in a match and also information about the match. The first element of the content list contains information about the players. The following details are included:
-
account_id: The player's account id.
-
player_slot: A player's slot is returned via an 8-bit unsigned integer. The first bit represent the player's team, false if Radiant and true if dire. The final three bits represent the player's position in that team, from 0-4.
-
hero_id: The hero id.
-
item_0: Top-left inventory item.
-
item_1: Top-center inventory item.
-
item_2: Top-right inventory item.
-
item_3: Bottom-left inventory item.
-
item_4: Bottom-center inventory item.
-
item_5: Bottom-right inventory item.
-
kills: Number of times player killed.
-
deaths: Number of times player died.
-
assists: Number of assists player achieved.
-
leaver_status: Integer from 0-6. Check https://wiki.teamfortress.com/wiki/WebAPI/GetMatchDetails.
-
last_hits: Number of last hits.
-
denies: Number of denies.
-
level: Hero level at the end of game.
-
xp_per_min: Xp per minute gained.
-
hero_damage: Total damage dealt to heroes.
-
tower_damage: Total damage dealt to towers.
-
hero_healing: Total health healed on heroes.
-
gold: Total gold left at the end of game.
-
gold_spent: Total gold spent.
-
scaled_hero_damage: Undocumented. Possibly damage after armour.
-
scaled_tower_damage: Undocumented.
-
scaled_hero_healing: Undocumented.
-
ability_upgrades: A list of all abilities in order of upgrade.
The rest of the elements of the content list contain information about the match. The following details are included:
-
radiant_win: Boolean. Whether radiant won or not.
-
duration: The duration of a game in seconds.
-
pre_game_duration: The pre game duration.
-
start_time: Unix Timestamp of when the game began.
-
match_id: The match's unique id.
-
match_seq_num: A sequence number. It represents the order matches were recorded.
-
tower_status_radiant: Tower Status. Check https://wiki.teamfortress.com/wiki/WebAPI/GetMatchDetails.
-
barracks_status_dire: Same as above.
-
cluster: The server cluster (used for downloading replays).
-
first_blood_time: Time in seconds when the first blood occured.
-
lobby_type: Type of lobby.
-
human_players: Number of human players.
-
leagueid: The league id.
-
positive_votes: Number of positive votes.
-
negative_votes: Number of negative votes.
-
game_mode: Game mode.
-
flags: Undocumented.
-
engine: 0 - source1, 1 - source 2.
-
radiant_score: Undocumented.
-
dire_score: Undocumented.
Value
A dota_api object containing the elements described in the details.
Steam API Documentation
https://wiki.teamfortress.com/wiki/WebAPI/GetMatchDetails
Examples
## Not run:
get_match_details(match_id = 2686721815)
get_match_details(match_id = 2686721815, language = 'en', key = NULL)
get_match_details(match_id = 2686721815, language = 'en', key = 'xxxxxxxxxxx')
## End(Not run)