
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
lol-riot-api-module
Advanced tools
A wrapper module for League of Legends' official API. In the documentation below there will be references to the official methods used for each method.
All methods can be either used with a callback method or as a promise
lol-riot-api is installable via:
git clone https://github.com/Pupix/lol-riot-api-module.gitnpm install lol-riot-api-moduleconst API = require('lol-riot-api-module');
const api = new API({
key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
region: 'euw'
});
const options = { name: 'Pupix' };
api.getSummoner(options, (err, data) => {
console.log(data);
});
//=> {
"id": 20920441,
"name": "Pupix",
"profileIconId": 580,
"summonerLevel": 30,
"revisionDate": 1431200284000
}
const options = { name: 'Pupix' };
api.getSummoner(options).then(data => {
console.log(data);
});
//=> {
"id": 20920441,
"name": 'Pupix',
"profileIconId": 580,
"summonerLevel": 30,
"revisionDate": 1431200284000
}
The API constructor accepts an object with the default key and region to be used for the API calls. You can get a key from Riot Games' developer portal.
If no region is passed, the API will default to na (North America).
The possible regions are the following:
Whenever possible, if a configuration object (referred as options in the documentation) is not required the callback can be passed directly as first parameter to all methods.
Account
Champions
Featured games
Leagues
Matches
Static data
Status
Summoner
Get matchlist for ranked games played on given account ID and platform ID and filtered using given filter parameters, if any.
Parameters
(error, data) as parameters.Get matchlist for last 20 matches played on given account ID.
Parameters
(error, data) as parameters.Gets the status of champions.
Parameters
(error, data) as parameters.Get list of featured games.
Parameters
(error, data) as parameters.Get the challenger league for a given queue.
Parameters
(error, data) as parameters.Get the master league for a given queue.
Parameters
(error, data) as parameters.Get match by match ID.
Parameters
(error, data) as parameters.Get match by match ID.
Parameters
(error, data) as parameters.Gets static data of champions.
Parameters
(error, data) as parameters.Gets static data of items.
Parameters
(error, data) as parameters.Gets static data of items.
Parameters
(error, data) as parameters.Gets the list of languages.
Parameters
(error, data) as parameters.Gets the list of maps.
Parameters
(error, data) as parameters.Gets static data of masteries.
Parameters
(error, data) as parameters.Gets the list of profile icons.
Parameters
(error, data) as parameters.Gets the list of realms.
Parameters
(error, data) as parameters.Gets static data of ruunes.
Parameters
(error, data) as parameters.Gets static data of champions.
Parameters
(error, data) as parameters.Gets the list of realms.
Parameters
(error, data) as parameters.Get League of Legends status.
Parameters
(error, data) as parameters.Gets summoner based on id, accountId or name.
Parameters
(error, data) as parameters.Get current game information for the given summoner ID.
Parameters
(error, data) as parameters.Get champion mastery entries sorted by number of champion points descending.
Parameters
(error, data) as parameters.Get a player's total champion mastery score, which is the sum of individual champion mastery levels.
Parameters
(error, data) as parameters.Get leagues in all queues for a given summoner ID.
Parameters
(error, data) as parameters.Get league positions in all queues for a given summoner ID.
Parameters
(error, data) as parameters.Get mastery pages for a given summoner ID.
Parameters
(error, data) as parameters.Get rune pages for a given summoner ID.
Parameters
(error, data) as parameters.FAQs
A wrapper for League of Legends' official API
We found that lol-riot-api-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.