valorant-api-js

1.0.6 • Public • Published

Valorant Asset API Wrapper

A library to interact with valorant-api.com

Installation

npm i valorant-api-js

Usage

Example:

const Client = require("valorant-api-js");

(async () => {
  const config = {language: "en-US"};

  const client = new Client(config); // Create a Client
  const allAgents = await client.getAgents(); // request all agents data
  // getPlayableAgents() would exclude the duplicate Sova

  console.log(allAgents); // see all agents data in console log
})();

Documentation

Client

const Client = require("valorant-api-js");
const client = new Client(config); // config is optional

Properties

  • [x] Languages
    • ar-AE
    • de-DE
    • en-GB
    • en-US
    • es-ES
    • es-MX
    • fr-FR
    • id-ID
    • it-IT
    • ja-JP
    • ko-KR
    • pl-PL
    • pt-BR
    • ru-RU
    • th-TH
    • tr-TR
    • vi-VN
    • zh-CN
    • zh-TW

Methods

Undocumented

  • [x] getMissions(uuid)
  • [x] getObjectives(uuid)

License

MIT License

Package Sidebar

Install

npm i valorant-api-js

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

7.8 kB

Total Files

5

Last publish

Collaborators

  • xyrrm