- @valapi/riot-api 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 Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.
- @valapi/riot-api was created under Riot Games' "Legal Jibber Jabber" policy using assets owned by Riot Games. Riot Games does not endorse or sponsor this project.
- MIT License
NPM:
npm install @valapi/riot-api
PNPM:
pnpm add @valapi/riot-api
import { RiotApi } from "@valapi/riot-api";
const client = new RiotApi({
apiKey: "LoooooongApiKey_123456789",
region: "ap"
});
const status = await client.StatusV1.platformData();
console.log(status.data);
const accountData = await client.AccountV1.byRiotId("PRX f0rsakeN", "Huh");
console.log(accountData.data);