|
|
Since there seemed to be a fair bit of demand, I have created a simple API to access match and player data. The API is currently a WORK IN PROGRESS. That means that I don't have the most recent matches yet (currently there are about a million matches in the db). Additionally, there aren't too many parameters you can specify. The data is returned JSON encoded. Let me know if you would like XML for backwards compatibility with the old API.
Sample queries:
http://api.honalysis.com/players/3387625
http://api.honalysis.com/matches/95820747
Here is the json returned from the first API call, but in formatted form:
http://pastebin.com/1CHZzi3g
If you like would to contribute, feel free to submit a pull request on github:
https://github.com/mbadov/hon-api
Over the next few weeks the API should catch up and not be more than an hour behind the latest matches. Please let me know what features you would like to see. Additionally, feel free to ask questions about the returned parameters (Note that I don't necessarily know what each param means).
Enjoy!
Last edited by vapor1zer; 09-06-2012 at 10:08 PM.
This uses the HoN masterserver: https://github.com/mbadov/hon-api/bl...ats_scraper.rb
I suspect S2 will block this, querying the masterserver is a big no-no.
They should either let the master server be scraped, or give us an API to use. I'm not putting that much load on their server anyway, or else I would have likely been blocked long ago.
you are not putting that much load to masterserver because no one so far knows about your project, but it seems like your project will be shutted down the minute you introduce it to players for them to download theyr own statistics like it happened to all other HoN API projects.
There are 10 kinds of people.
Those who understand binary code and those who not.
my suggestions:
rewards for ingame account leveling
game a day timer remake
I don't think you understand how this works. There is only one point of contact with the master server; that's the scraper. At this current moment it is putting more load on their server than it ever will in the future, because it needs to catch up match-wise. Once that's done, the scraper load will barely even be noticeable.
All API calls hit my OWN server and database. It doesn't matter if 1000x more people start using this; thats the whole point.
Hey there,
I have some good news, and some bad news; I'll start with the bad news. We do not currently allow third parties to scrape the master server for stats, and this project is technically against the rules.
The good news is an official S2 HoN API will be launching in the near future (currently in beta testing!) to replace the very defunct XML interface! Stay tuned in the coming weeks for more information on this.![]()
S2 Games: Dedicated employees serving dedicated gamers. Continuous development. Never-ending improvement.
-----------------------------
Official Canadian of S2Games' Online Systems Department
Hey Maide, you have said an updated API has been coming for MONTHS(year?) now, with no word on the progress or updates. Frankly, I think the community should take what you say with a grain of salt, because so far all we have been filled with is disappointment regarding the API. Either provide an actual, REAL update on the information you have, or let this guy have his project fun until s2 figures it out on their end. You scrap community projects like this while providing no alternative. The only "good news" you gave us was information rehashed that we've been aware of since you first took down stats.maide.ca.
Forum Moderators are not S2 Games employees. My posts in no way represent the view of S2 Games or any of its staff.
Please use the report post functionto have me review a post that you believe is breaking the Forum Rules.
Check the Sticky Threads for additional information on this sub-forum and the Announcement Threads for more information about Heroes of Newerth as a whole!
-----------------------------
soon™
I play HoN since beta and I always was a fan of stat sites... Imho you can get much information with them and improve your gameplay alot
support this suggestion: v3.1+ [Gemini] - Elemental Force: Icon Text
^ click to support ^
meh :/ was gonna be awesome, but Maide said there is a HoN API S2 in progress, lets see.
Manifest Hatred.
I'd love to create an Android App for HoN Stats if there was some proper way to communicate with their servers.
and another one who doesn't know how the API works that the guy is building. Hint: It's causing nearly no load on S2's server at all.