valorant-api-js
v1.0.6
Published
valorant-api.com wrapper
Downloads
9
Maintainers
Readme
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
- [x] request(endpoint)
- [x] getAgents(uuid)
- getPlayableAgents()
- [x] getBuddies(uuid)
- getBuddyLevels(uuid)
- [x] getBundles(uuid)
- [x] getCompetitiveTiers(uuid)
- [x] getContentTiers(uuid)
- [x] getContracts(uuid)
- [x] getCurrencies(uuid)
- [x] getEvents(uuid)
- [x] getGamemodes(uuid)
- getGamemodeEquippables(uuid)
- [x] getGear(uuid)
- [x] getMaps(uuid)
- [x] getPlayerCards(uuid)
- [x] getPlayerTitles(uuid)
- [x] getSeasons(uuid)
- getCompetitiveSeasons(uuid)
- [x] getSprays(uuid)
- getSprayLevels(uuid)
- [x] getThemes(uuid)
- [x] getWeapons(uuid)
- getSkins(uuid)
- getSkinLevels(uuid)
- getSkinChromas(uuid)
- [x] getVersion()
Undocumented
- [x] getMissions(uuid)
- [x] getObjectives(uuid)
License
MIT License