valo-api
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

VALO-API

Just another Valorant API wrapper written in TypeScript, based on Henrik-3's unofficial-valorant-api!

Important Note :D

You require an API key to use the wrapper, you can retrieve an API key via Henrik-3's discord server, please don't abuse the API, don't ruin it for everyone else:)

Installation

npm install valo-api

Example Code

import VALOAPI from "valo-api";
const valApi = new VALOAPI("yourApiKey"); // Example API key: "zQI1-tV9GH-Tima-k8fN-pXj6-2QQVyKFjDYf"

async function fetchUserDetails() {
    const getUser = await valApi.getAccount({name: "Ryumin", tag: "ELI"});
    return console.log(getUser);

}

Expected Output

{
  status: 200,
  data: {
    puuid: 'c5050e26-bf7d-569e-a8e3-a5af8ca3ba30',
    region: 'ap',
    account_level: 271,
    name: 'Ryumin',
    tag: 'ELI',
    card: {
      small: 'https://media.valorant-api.com/playercards/910ace70-4d3b-3c53-2c55-5f9fa179caa8/smallart.png',
      large: 'https://media.valorant-api.com/playercards/910ace70-4d3b-3c53-2c55-5f9fa179caa8/largeart.png',
      wide: 'https://media.valorant-api.com/playercards/910ace70-4d3b-3c53-2c55-5f9fa179caa8/wideart.png',
      id: '910ace70-4d3b-3c53-2c55-5f9fa179caa8'
    },
    last_update: 'an hour ago',
    last_update_raw: 1715867399
  },
  ratelimits: { used: 1, remaining: 29, reset: 60 },
  error: null,
  url: 'https://api.henrikdev.xyz/valorant/v1/account/Ryumin/ELI'
}

Issues

If you encounter any issues, you can create an issue or you can message me on discord @byue

Package Sidebar

Install

npm i valo-api

Weekly Downloads

24

Version

0.1.3

License

ISC

Unpacked Size

31.8 kB

Total Files

7

Last publish

Collaborators

  • ryumin