1.0.1 • Published 2 years ago

wrapper-valorant-api v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

wrapper-valorant-api

A NodeJS wrapper for the VALORANT API.

NPM Version

Installation

npm:

npm i wrapper-valorant-api

yarn:

yarn add wrapper-valorant-api

VAL-CONTENT-V1

MethodDescription
getContents({locale, region?)}Get content filtered by locale.

VAL-MATCH-V1

MethodDescription
match.getByMatchId({matchid, region?})Get match by id
match.getByPuuid({puuid, region?)}Get matchlist for games played by puuid
match.getByQueue({queue, region?})Get recent matches

VAL-RANKED-V1

MethodDescription
getLeaderboard({actId, region?, size?, startIndex?})Get leaderboard for the competitive queue

ACCOUNT-V1

MethodDescription
account.getByPuuid({puuid, region?})Get account by puuid
account.getByName({gameName, tagLine, region?})Get account by riot id
account.getMyAccount({authorization, region?})Get account by authentication string
account.getActiveShard({puuid, region?})Get active shard for a player

Supported regions:

Valorant API:

RegionEndpoint
APACap.api.riotgames.com
BRbr.api.riotgames.com
EUeu.api.riotgames.com
KRkr.api.riotgames.com
LATAMlatam.api.riotgames.com
NAna.api.riotgames.com

Account API:

RegionEndpoint
ASIAasia.api.riotgames.com
AMERICASamericas.api.riotgames.com
EUROPEeurope.api.riotgames.com

Usage

JavaScript:

const { ValorantApi } = require("wrapper-valorant-api");

const APIKey = ""; // Your API Key

const ValApi = new ValorantApi(APIKey); // An API instance for Valorant query

// Example usage of the VAL-CONTENT-V1 API
ValApi.getContents({ locale: "en-US" }).then((data) => console.log(data));

// Production API Key

ValApi.match.getByPuuid({ puuid: "" }); // Your puuid

ValApi.match
	.getByQueue({ queue: "competetive" })
	.then((data) => console.log(data));

Typescript:

import { ValorantApi } from "wrapper-valorant-api";

const APIKey = ""; // Your API Key

const ValApi = new ValorantApi(APIKey); // An API instance for Valorant query

// Example usage of the VAL-CONTENT-V1 API
ValApi.getContents({ locale: "en-US" }).then((data) => console.log(data));

// Production API Key

ValApi.match.getByPuuid({ puuid: "" }); // Your puuid

ValApi.match
	.getByQueue({ queue: "competetive" })
	.then((data) => console.log(data));

Contact

1.0.1

2 years ago

1.0.0

2 years ago

0.5.0

2 years ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago