A library to interact with valorant-api.com
npm i valorant-api-js
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
})();
const Client = require("valorant-api-js");
const client = new Client(config); // config is optional
- 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
- request(endpoint)
- getAgents(uuid)
- getPlayableAgents()
- getBuddies(uuid)
- getBuddyLevels(uuid)
- getBundles(uuid)
- getCompetitiveTiers(uuid)
- getContentTiers(uuid)
- getContracts(uuid)
- getCurrencies(uuid)
- getEvents(uuid)
- getGamemodes(uuid)
- getGamemodeEquippables(uuid)
- getGear(uuid)
- getMaps(uuid)
- getPlayerCards(uuid)
- getPlayerTitles(uuid)
- getSeasons(uuid)
- getCompetitiveSeasons(uuid)
- getSprays(uuid)
- getSprayLevels(uuid)
- getThemes(uuid)
- getWeapons(uuid)
- getSkins(uuid)
- getSkinLevels(uuid)
- getSkinChromas(uuid)
- getVersion()
- getMissions(uuid)
- getObjectives(uuid)
MIT License