Socket
Book a DemoInstallSign in
Socket

valo-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

valo-api

An updated Valorant api wrapper based on Henrik-3's unofficial-valorant-api, written in TypeScript

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

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

Keywords

Valorant

FAQs

Package last updated on 18 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.