Jump to content


Photo

GosuGamers API


  • Please log in to reply
7 replies to this topic

#1 Aveil

Aveil

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • LocationItaly

Posted 28 April 2012 - 08: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.

#2 fflife

fflife

    Advanced Member

  • Members
  • PipPipPip
  • 137 posts
  • LocationBulgaria

Posted 28 April 2012 - 08:50 AM

nice job dude ;)

#3 ngazirrrrrrrrrrrrr

ngazirrrrrrrrrrrrr

    Advanced Member

  • Members
  • PipPipPip
  • 5119 posts
  • LocationPoland

Posted 29 April 2012 - 05:55 AM

Down?

#4 Aveil

Aveil

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • LocationItaly

Posted 29 April 2012 - 09: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.

#5 asdfgh96

asdfgh96

    Member

  • Members
  • PipPip
  • 11 posts
  • LocationUkraine

Posted 26 May 2012 - 02: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.

#6 Aveil

Aveil

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • LocationItaly

Posted 27 May 2012 - 09: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).

#7 amaterasu__

amaterasu__

    Member

  • Members
  • PipPip
  • 28 posts
  • LocationCanada

Posted 28 May 2012 - 04:52 AM

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

#8 darks0i

darks0i

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationPhilippines

Posted 28 May 2012 - 08:49 AM

wow C L




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users