League of Legends API
Npm package for the official League of Legends API.
Installation
npm i --save leagueoflegends-api
Basic Usage
This is a basic example on how to use the API, soon I will have full documentation covering how to use every function available.
Require the package into your project.
const LeagueofLegends = ;// or with ES6;
Create a new instance of the API with your API_KEY
and target region.
const lol = YOUR_API_KEY 'na'; lol;
You will get an object like this:
Note: All functions return a Promise
.
Version 1.0.2 supports the following APIs:
- summoner-v1.4
- stats-v1.3
- matchlist-v2.2
- match v2.2
- league-v2.5
- Game
- champion v1.2
Coming soon:
- championmastery
- lol-static-data-v1.2
- lol-status-v1.0