@valapi/riot-api
v5.0.0-beta.3
Published
Valorant API - Riot API
Downloads
135
Readme
Valorant API - Riot API
Official Api From Riot Games
Documentation: valapi.github.io/docs
Guide: valapi.github.io/guide
- @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
Installation
NPM:
npm install @valapi/riot-api
PNPM:
pnpm add @valapi/riot-api
Guide
import { RiotApi } from "@valapi/riot-api";
const client = new RiotApi({
apiKey: "LoooooongApiKey_123456789",
region: "ap"
});
API
const status = await client.StatusV1.platformData();
console.log(status.data);
const accountData = await client.AccountV1.byRiotId("PRX f0rsakeN", "Huh");
console.log(accountData.data);