Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

Dota 2 Match History WebAPI

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by MuppetMaster42 View Post
    skill build is physically limited to 25 entries per hero.
    Item builds can technically have infinite entries per hero.

    i don't know if my math is correct here.. but I think that 25 <<<<<<<<<<<<<< infinity.....
    While I agree that it has a lot more entries, and a lot more variability, it is technically constrained by max_hero_slots, max_stash_slots, max_courier_slots, max_items_on_ground_without_overlapping... and ofcourse roughly 1200GPM (I don't think you can go much higher than that in normal games).

    As seems to be a recurrent theme when talking about what should be considered for the API, you have to weigh up the cost of sending an array of strings, as opposed to sending a game replay of several mb for people to parse. If you can encapsulate everything someone would want from a replay in an API, structured in such a way that there is a balance between too much data and not enough, you can keep everyone happy. A delicate balance is it not?

    Comment


    • He was referring to all items bought, sold, consumed and combined, not just those mentioned.

      Comment


      • Does anyone know, which cluster numbers represent regions?
        Example - 131,132,133 are Europe West.
        But what numbers are for US East/West, Russia, SE Asia, South America, Australia etc?

        DotA 2 Web API Processing with PHP
        DotA2 Statistic - Professional leagues statistic
        follow @dota2statistic

        Comment


        • Originally posted by GelioS View Post
          Does anyone know, which cluster numbers represent regions?
          Example - 131,132,133 are Europe West.
          But what numbers are for US East/West, Russia, SE Asia, South America, Australia etc?
          Play a game on each and every single server, retrieve the cluser information from your replay's data. Ok that's not the fastest idea!

          Comment


          • I had a same idea - on DotaBuff find games on the different regions and than parse API responses for this games. BUT one region may has not one cluster number (as I wrote about Europe West).

            DotA 2 Web API Processing with PHP
            DotA2 Statistic - Professional leagues statistic
            follow @dota2statistic

            Comment


            • Not a complete answer but maybe this will help out a tiny bit: cluster_server . The game server is available from the parses of pro games that I do. I also pull the API data for those pro games so I have the cluster numbers too. This can help associate some of the clusters and the regions. I also included the pro teams in the game as a check (ie two european teams should be playing on a euro server). Example:

              46220617 182 Valve Dota 2 Server 9 (srcds133.sto-2.valve.net) dd.Dota M5
              78806633 132 Valve Dota 2 Server 9 (srcds125.lux-2.valve.net) iCCup WP

              So match ID 46220617 was played on cluster 182. The server has 'sto' in it so I'm assuming it is Stockholm (though I believe there are sites out there that can help identify the valve servers). Cluster 132 appears to correspond with a Luxembourg server.

              This won't help at all with regions that don't have pro-games played in them.
              datdota.com -- Dota 2 Stats for the Professional Scene

              Comment


              • Razumov, thanks! You help me a lot

                DotA 2 Web API Processing with PHP
                DotA2 Statistic - Professional leagues statistic
                follow @dota2statistic

                Comment


                • I just parsed through Razmuov's file and was able to track down real match locations for all of them - this is the only data I care about so I dropped the server names, etc:
                  Cluster_ID Location
                  111 US West
                  121 US East
                  122 US East
                  131 Europe West
                  132 Europe West
                  133 Europe West
                  151 Southeast Asia
                  152 Southeast Asia
                  161 China
                  163 China
                  171 Australia
                  181 Russia
                  182 Russia
                  191 Europe East
                  200 South America
                  Last edited by Aardvarki; 03-15-2013, 09:48 AM. Reason: added AUS and SA

                  Comment


                  • Aardvarki, thank you to!

                    DotA 2 Web API Processing with PHP
                    DotA2 Statistic - Professional leagues statistic
                    follow @dota2statistic

                    Comment


                    • Two other values I found in my own records (but not in Raz's) were 171 and 200. I added these to my list above.

                      If anyone else can give me a cluster that isn't in my list, and a match_Id on that cluster, I'll try to find the location for you as well.

                      Worth noting, it appears that the first two digits for the same region always match in the clusters - so it's probably a safe assumption that if they add cluster 134 it will be Europe West like 131/132/133.
                      Last edited by Aardvarki; 03-15-2013, 09:51 AM.

                      Comment


                      • why do some matches (eg: lobby matches - captain mode) not showing stats? for example: https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=<key>&match_id=170016299 returns no data. But even the demo is downloadable in the client. some assistance would be most appreciated
                        GameLadders DOTA2 League | GameLadders.LK | Gamer.LK | Sri Lanka Cyber Games 2012

                        Comment


                        • Originally posted by R_L View Post
                          why do some matches (eg: lobby matches - captain mode) not showing stats? for example: https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=<key>&match_id=170016299 returns no data. But even the demo is downloadable in the client. some assistance would be most appreciated
                          That's a private lobby game. Private lobbies aren't available to the API yet. When I try to view it myself in the client, it says "access denied".

                          Comment


                          • I didn't find a fay to pass multiple filters to the GetMatchHistory call (I'm talking about the hero_id which is working fine for one unique id). It is not possible right ?
                            Will it be possible to do it in the future ? I mean this could be really interesting to find games featuring a composition of heroes.

                            Comment


                            • Originally posted by philaeux View Post
                              *snip*
                              I mean this could be really interesting to find games featuring a composition of heroes.
                              1) perform 1 query per hero & save results to DB
                              2) remove matches not containing all heroes
                              3) ???????????
                              4) profit
                              The API Bible: Things You Should Know Before Starting API Development

                              Comment


                              • Originally posted by MuppetMaster42 View Post
                                1) perform 1 query per hero & save results to DB
                                2) remove matches not containing all heroes
                                3) ???????????
                                4) profit
                                Well I thought about something like this but this is not very effective... I think it will be my solution at the end. Thanks

                                Comment

                                Working...
                                X