Responses¶
This section describes the dictionary structure of each response.
Every response has a number of attributes you can use. For example:
>>> match = api.get_match_details(match_id=1000193456)
The following will return the URL constructed by the library:
>>> match.url
The following will return the response as raw json:
>>> match.json
get_match_history()¶
Returns a dictionary with a list of players within.
num_resultstotal_resultsresults_remainingmatchesmatch_idmatch_seq_numstart_timelobby_typeplayersaccount_idplayer_slothero_id
get_match_history_by_seq_num()¶
Returns a dictionary with a list of matches within.
statusmatchesplayersaccount_idplayer_slothero_idhero_nameitem_0item_0_nameitem_1item_1_nameitem_2item_2_nameitem_3item_3_nameitem_4item_4_nameitem_5item_5_namekillsdeathsassistsleaver_statusgoldlast_hitsdeniesgold_per_minxp_per_mingold_spenthero_damagetower_damagehero_healinglevelability_upgradesabilitytimelevel
additional_units- Only available if the player has a additional unit (ie Lone Druids Spirit Bear).unitnameitem_0item_1item_2item_3item_4item_5
seasonradiant_windurationstart_timematch_idmatch_seq_numtower_status_radianttower_status_direbarracks_status_radiantbarracks_status_radiantclustercluster_namefirst_blood_timelobby_typelobby_namehuman_playersleagueidpositive_votespositive_votesgame_modegame_mode_name
The following are available for team matches only:
radiant_nameradiant_logoradiant_team_completedire_namedire_logodire_team_complete
get_match_details()¶
Returns a dictionary with a list of players within.
playersaccount_idplayer_slothero_idhero_nameitem_0item_0_nameitem_1item_1_nameitem_2item_2_nameitem_3item_3_nameitem_4item_4_nameitem_5item_5_namekillsdeathsassistsleaver_statusgoldlast_hitsdeniesgold_per_minxp_per_mingold_spenthero_damagetower_damagehero_healinglevelability_upgradesabilitytimelevel
additional_units- Only available if the player has a additional unit (ie Lone Druids Spirit Bear).unitnameitem_0item_1item_2item_3item_4item_5
seasonradiant_windurationstart_timematch_idmatch_seq_numtower_status_radianttower_status_direbarracks_status_radiantbarracks_status_radiantclustercluster_namefirst_blood_timelobby_typelobby_namehuman_playersleagueidpositive_votespositive_votesgame_modegame_mode_name
The following are available for team matches only:
radiant_nameradiant_logoradiant_team_completedire_namedire_logodire_team_complete
get_league_listing()¶
Returns a dictionary with a list of leagues within.
leaguesnameleagueiddescriptiontournament_url
get_live_league_games()¶
Returns a dictionary with a list of leagues within.
gamesplayersaccount_idnamehero_idteam
radiant_teamteam_nameteam_idteam_logocomplete
dire_teamteam_nameteam_idteam_logocomplete
lobby_idspectatorstower_stateleague_id
get_team_info_by_team_id()¶
Returns a dictionary with a list of teams within.
teamsteam_idnametagtime_createdratinglogologo_sponsorcountry_codeurlgames_played_with_current_rosterplayer_0_account_idplayer_1_account_idplayer_3_account_idplayer_4_account_idplayer_5_account_idadmin_account_id
get_player_summaries()¶
Returns a dictionary with a list of players within.
playersavatarfullavatarmediumcommentpermissioncommunityvisibilitystatelastlogoffloccityidloccountrycodelocstatecodepersonanamepersonastatepersonastateflagsprimaryclanidprofilestateprofileurlrealnamesteamidtimecreated
get_heroes()¶
countstatusheroesidnamelocalized_name
get_game_items()¶
countstatusitemsidnamecostlocalized_namerecipesecret_shopside_shop
get_tournament_prize_pool()¶
league_idprizepoolstatus