No description, website, or topics provided.
Switch branches/tags
Nothing to show
Latest commit 78c2bb8 Apr 19, 2016 @smoran02 smoran02 Update package.json
Failed to load latest commit information.
league-api.js Update package.json Apr 19, 2016


This module has ALL the functionality of RIOT's API, in a clear and easy to use format! League-api is a Node.js wrapper for the official RIOT games League of Legends API. Pull requests and feedback are welcome!


Install it through npm using the standard:

$ npm install league-api


Get an API key at

##Usage and Examples

To initialize the module with your api key, use:

var league_api = require('league-api');
var league = new league_api('your_api_key');

###Available Methods

Each method takes as parameters some combination of a region, summoner id, summoner name, and then all methods have a callback function as a parameter. Here is an example call to retrieve the stat summary for a given id:

league.getRecentGames('na', '5908', function(data) {

All the functionality of the RIOT League of Legends API is included, and the code is clear to read and modify if you want to add functionality on top of what RIOT offers.