Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 2.51 KB

README.md

File metadata and controls

83 lines (59 loc) · 2.51 KB

Valorant API - Riot API

Profile

Official Api From Riot Games

Downloads install size Known Vulnerabilities

LICENSE Github Discord

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);