Skip to content

Java library for retrieving stats and information about players in Valorant.

Notifications You must be signed in to change notification settings

Teriyake4/StaVa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaVa: Stats for Valorant API

StaVa is a Java library for retrieving stats and information about players in Valorant. This is a personal project so support and development may be slow. Stava uses the Valorant Tracker API to retrieve all the information.

Player stats are organized as objects seperated by the different types of stats as classes. For example, stats for a specific agent such as Omen will be as a PlayerAgent Object and stats for a map such as Ascent would be as a PlayerMap class. Classes will have getter methods to retrieve information.

The Player class is the recomended way to access the information of a player. It contains the respective stat objects of a player in one object with methods to find information more easily.

Example

Getting the Player object and getting stats from it using the retriever. The name varible to any valid player name, and must include tagline.

String name = "example#tag";
// replace with a real player. 
// make sure player profile is public on Tracker.gg

Player p = null;
System.out.println("Retrieving player");
try {
    Retriever ret = new Retriever();
    p = ret.getPlayer(name);
    ret.closeConnection();
}
catch(Exception e) { // to catch either HttpStatusException or NullPointerException
    e.printStackTrace();
}

PlayerMode pm = p.getMode("competitive"); // Gets competitive gamemode stats

System.out.println("Name: " + p.info().getName());
System.out.println("Rank: " + pm.getRank());
System.out.println("Winrate: " + pm.getMatchesWinPct());
System.out.println("KD Ratio: " + pm.getKDRatio());

About

Java library for retrieving stats and information about players in Valorant.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages