Jump to content

GosuGamers API

7 replies to this topic
  • Please log in to reply

#1 Aveil


    Repick Meepo

  • Advanced Member
  • 59

Posted 28 April 2012 - 09:47 AM

Some time ago I created an API that scrapes the GosuGamers site and produces nice JSON data for you to consume. I'm gonna post it here along with the iOS app based on that API that got rejected from the app store because it was "too close to the browsing experience".
The API also has a synchronization feature that pushes notifications to all clients via Apple Push Notification Service.

API source code: https://github.com/e.../gosugamers-api
iOS client source code: https://github.com/e.../gosugamers-ios
Hosted API on Heroku: http://gosugamers-api.heroku.com

The REST endpoints to the API are:
GET /news
GET /replays
GET /matches

All endpoints accept two optional parameters:
page -> can be any positive number, used for pagination
game -> can be one of these values: starcraft, starcraft2, warcraft, dota, dota2, hon, wow, diablo, poker

Example request: http://gosugamers-ap...me=dota2&page=2

I don't even know if this is illegal (I couldn't find GousGamers ToS or Privacy Policy anywhere, so please point it to me if you can).

Hope you can use it anyway you want.
  • 0

#2 fflife


    Full-Team Black Hole

  • Advanced Member
  • 140

Posted 28 April 2012 - 09:50 AM

nice job dude ;)
  • 0

#3 ngazirrrrrrrrrrrrr


    ZSMJ Medusa

  • Advanced Member
  • 3779
  • 1

Posted 29 April 2012 - 06:55 AM

  • 0

#4 Aveil


    Repick Meepo

  • Advanced Member
  • 59

Posted 29 April 2012 - 10:56 AM

I forgot to mention that if you click the example request link from here it says "Forbidden". You gotta copy the link in the address bar and go from there.
  • 0

#5 asdfgh96


    Random Meepo

  • Advanced Member
  • 26

Posted 26 May 2012 - 03:09 PM

in the matches api in eta showed event. I would like to get eta (time to game start).

can do this plz. I can parse whole html but it would take so many timee....

and if possible for mathces to add player1_country and player_2 country.
  • 0

#6 Aveil


    Repick Meepo

  • Advanced Member
  • 59

Posted 27 May 2012 - 10:23 AM

#4 Thank you for showing interest in the API and for your feedback :)
If you watch carefully the "eta" attribute is there for all the matches. Too bad it's wrong for all of them! I think something changed in the HTML (probably GG.net added a column to the table) so the scraping method is not working correctly anymore. I will try to fix this next week or this evening.
As for the country, I think that would be fairly easy to add. I really don't know why I didn't in the first place, since all the flags are there in the GosuBet list (e.g.: http://gosugamers.ne...ubet/upcoming/1).
  • 0

#7 amaterasu__


    Ahh, fresh meat!

  • Advanced Member
  • 3

Posted 28 May 2012 - 05:52 AM

any php version ? because I can't read ruby
or just give me a request link for rankings if u have
nice job again
  • 0

#8 darks0i


    Ahh, fresh meat!

  • Advanced Member
  • 7

Posted 28 May 2012 - 09:49 AM

wow C L
  • 0