League of Legends, a multiplayer online battle arena video game is one of the most popular games of all time. Riot Games, publisher of the game, is poised to take it to new heights by listening to developer requests to provide access to game data. The newly released Riot Games API will give developers just that and with the tag of the most played video game in the world with 32 million plays every month, the possibilities are going to be interesting.
The Riot Games API, now available in Beta will provide access to recent games, ranked statistics, runes, masteries and more.
Some of the API methods include:
- Retrieve all champions
- Get recent games by summoner ID
- Get player stats, ranked stats
Authentication is implemented via an API key and the API is REST-based with JSON as the data format. Check out the full API documentation, that includes an interactive API console to try out the API.
A set of guidelines has been published for the developers to make sure that API usage is within fair limits. The API is rate limited to 5 requests every 10 seconds for a developer key. Interesting to note is a set of best practices, that advises developers to use a caching layer, protect their API Key and more. A discussion board has been setup by Riot Games to allow developers to discuss any issues during Beta and help tune the API for final release.