seppes Jun 8, 2018 @ 7:12am
Dota 2 database from Steam Web API - where to start?
Hello,

i am working on a machine learning course on udacity, and lately i had the idea of training a neural network with data from Dota 2 - pubgames, making suggestions what picks are ideal.

The problem is, i have absolutely no idea how to get this data from steam. I read something about the Steam Web API but i am not sure about whether it is the right tool to get it from.
In the end, i just need the data of the heroes picked, and which team won. Of course there will be alot of data cleaning afterwards, but at first i would like to get database of public games, can anyone help me how to do it? Would be extremely awesome :)

All the best!
< >
Showing 1-1 of 1 comments
MalikQayum Jun 8, 2018 @ 7:24am 
you will need to study the web api, to get match data, here is a place to start.

https://lab.xpaw.me/steam_api_documentation.html#IDOTA2Match_205790_GetMatchHistoryBySequenceNum_v1
{ "result":{ "status":1, "matches":[ { "players":[ { "account_id":4294967295, "player_slot":0, "hero_id":18, "item_0":63, "item_1":73, "item_2":73, "item_3":46, "item_4":16, "item_5":8, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":3, "deaths":15, "assists":5, "leaver_status":0, "last_hits":41, "denies":0, "gold_per_min":172, "xp_per_min":260, "level":14 }, { "account_id":54008249, "player_slot":1, "hero_id":31, "item_0":1, "item_1":60, "item_2":21, "item_3":46, "item_4":29, "item_5":22, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":6, "deaths":9, "assists":6, "leaver_status":0, "last_hits":48, "denies":14, "gold_per_min":195, "xp_per_min":306, "level":15 }, { "account_id":4294967295, "player_slot":2, "hero_id":4, "item_0":170, "item_1":11, "item_2":75, "item_3":29, "item_4":149, "item_5":21, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":1, "deaths":16, "assists":8, "leaver_status":0, "last_hits":73, "denies":0, "gold_per_min":207, "xp_per_min":289, "level":14 }, { "account_id":4294967295, "player_slot":3, "hero_id":25, "item_0":50, "item_1":20, "item_2":20, "item_3":60, "item_4":13, "item_5":23, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":2, "deaths":12, "assists":9, "leaver_status":0, "last_hits":34, "denies":6, "gold_per_min":174, "xp_per_min":216, "level":12 }, { "account_id":4294967295, "player_slot":4, "hero_id":47, "item_0":125, "item_1":60, "item_2":20, "item_3":13, "item_4":63, "item_5":21, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":10, "deaths":12, "assists":1, "leaver_status":0, "last_hits":62, "denies":1, "gold_per_min":226, "xp_per_min":298, "level":15 }, { "account_id":4294967295, "player_slot":128, "hero_id":19, "item_0":41, "item_1":1, "item_2":48, "item_3":125, "item_4":131, "item_5":0, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":21, "deaths":6, "assists":17, "leaver_status":0, "last_hits":53, "denies":0, "gold_per_min":367, "xp_per_min":663, "level":22 }, { "account_id":4294967295, "player_slot":129, "hero_id":14, "item_0":73, "item_1":131, "item_2":63, "item_3":114, "item_4":4, "item_5":0, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":11, "deaths":5, "assists":11, "leaver_status":0, "last_hits":34, "denies":1, "gold_per_min":314, "xp_per_min":545, "level":20 }, { "account_id":4294967295, "player_slot":130, "hero_id":33, "item_0":1, "item_1":116, "item_2":41, "item_3":29, "item_4":88, "item_5":137, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":13, "deaths":6, "assists":16, "leaver_status":0, "last_hits":135, "denies":7, "gold_per_min":425, "xp_per_min":577, "level":21 }, { "account_id":4294967295, "player_slot":131, "hero_id":13, "item_0":0, "item_1":0, "item_2":0, "item_3":0, "item_4":0, "item_5":0, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":0, "deaths":0, "assists":0, "leaver_status":0, "last_hits":0, "denies":0, "gold_per_min":115, "xp_per_min":0, "level":1 }, { "account_id":4294967295, "player_slot":132, "hero_id":15, "item_0":36, "item_1":63, "item_2":156, "item_3":75, "item_4":125, "item_5":0, "backpack_0":0, "backpack_1":0, "backpack_2":0, "kills":14, "deaths":7, "assists":28, "leaver_status":0, "last_hits":98, "denies":0, "gold_per_min":396, "xp_per_min":672, "level":22 } ] , "radiant_win":false, "duration":2408, "pre_game_duration":0, "start_time":1299121489, "match_id":496, "match_seq_num":240, "tower_status_radiant":0, "tower_status_dire":0, "barracks_status_radiant":0, "barracks_status_dire":0, "cluster":0, "first_blood_time":0, "lobby_type":0, "human_players":10, "leagueid":0, "positive_votes":0, "negative_votes":0, "game_mode":0, "flags":0, "engine":0, "radiant_score":0, "dire_score":0 } ] } }
Last edited by MalikQayum; Jun 8, 2018 @ 7:29am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Jun 8, 2018 @ 7:12am
Posts: 1