Code Monkey home page Code Monkey logo

wrapper-valorant's Introduction

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

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

VAL-MATCH-V1

Method Description
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

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

ACCOUNT-V1

Method Description
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:

Region Endpoint
APAC ap.api.riotgames.com
BR br.api.riotgames.com
EU eu.api.riotgames.com
KR kr.api.riotgames.com
LATAM latam.api.riotgames.com
NA na.api.riotgames.com

Account API:

Region Endpoint
ASIA asia.api.riotgames.com
AMERICAS americas.api.riotgames.com
EUROPE europe.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

wrapper-valorant's People

Contributors

extl0l avatar lordprinz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

extl0l

wrapper-valorant's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.