????ウルトラお得情報

もうdota2追ってないのでそろそろブログタイトル変えるべきかもしれません

自分用のメモmajorの予選のマッチリスト

さいきん

  • そろそろ地域の決勝進出枠がきまってきてますワクワクしますね
  • Mineskiいちばんのり

メモです regionごとにマッチリストだしたい

http://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/v1?key=A7ECA29C017C44E0E6328A4775F768BA&league_id=3671&matches_requested=300
がmajor frankfurtの試合一覧

から各試合のdetailを見るための

http://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/v1?match_id=1863699244&key=A7ECA29C017C44E0E6328A4775F768BA
fnaticと123の試合 match_id:1863699244 の例だと

"radiant_win": false,
"duration": 3464,
"start_time": 1444737168,
"match_id": 1863699244,
"match_seq_num": 1649807042,
"tower_status_radiant": 1536,
"tower_status_dire": 1828,
"barracks_status_radiant": 32,
"barracks_status_dire": 63,
"cluster": 151,
"first_blood_time": 128,
"lobby_type": 1,
"human_players": 10,
"leagueid": 3671,
"positive_votes": 212,
"negative_votes": 36,
"game_mode": 2,
"engine": 1,
"radiant_team_id": 2413439,
"radiant_name": "Team SatuDuaTiga",
"radiant_logo": 525015750980111983,
"radiant_team_complete": 1,
"dire_team_id": 350190,
"dire_name": "Fnatic",
"dire_logo": 436072840508752303,
"dire_team_complete": 1,
"radiant_captain": 111034589,
"dire_captain": 89871557,

ここのcluster 151が多分サーバの地域を表してます

ということで必要な部分だけ

参考 : https://github.com/kronusme/dota2-api/blob/master/data/regions.json

cluster_id 地域
111-124,200-211 US
131-136,181-186,191~192 EU
151-153 SEA
161-163,221-225 China

とかで分割できそうです 元気があればやります