This Riot Games API Client is written in TypeScript and offers fluent interfaces, full typing, data classes.
Example usage with top level await:
import {RiotApiClient, Servers} from 'rgac';
const client = new RiotApiClient({
apiKey: process.env.RIOT_API_KEY,
server: Servers.EUW1
});
const summoner = await client.leagueOfLegends.summoner.byName('GindenEU');
const {data: [match], getNextPage} = await summoner.getMatches();
const timeline = await match.timeline();
const {data: [anotherMatch]} = await getNextPage();
champion-mastery-v4
champion-v3
league-exp-v4
league-v4
lol-status-v3
match-v4
spectator-v4
summoner-v4
third-party-code-v4
Summoner
and Match
classesmaxRequests
and perMilliseconds
and it's less flexible than system provided by Riot Games.See CONTRIBUTING.MD;
RGAC isn’t endorsed by Riot Games and doesn’t reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.
Generated using TypeDoc