Simple Java Valorant client consuming official Riot API.
Type | Status |
---|---|
Build | |
Quality | |
Javadoc | |
Tests | |
Licence |
valorant-api-client
provides 1 to 1 SDK to read official Valorant Riot API. There is no data transformation, no statistics calculation at least for now...;)
So far following end-points are implemented:
VAL-MATCH-V1
- /val/match/v1/matches/{matchId}
- /val/match/v1/matchlists/by-puuid/{puuid}
The SDK also provides a set of Java Enums for Valorant model (with UUIDs used in API) for :
- Acts
- Agents
- Maps
- Regions
- Weapons
What you need is :
- A Valorant Riot API key
- Java 11 & Maven
Import dependency in your pom.xml
:
<properties>
...
<!-- Use the latest version whenever possible. -->
<valorant.client.version>1.0.15</valorant.client.version>
...
</properties>
<dependencies>
...
<dependency>
<groupId>net.rr-world</groupId>
<artifactId>valorant-api-client</artifactId>
<version>${valorant.client.version}</version>
</dependency>
...
</dependencies>
Just instanciate the client with API key and Region :
ValorantClient client = new ValorantClient("RGAPI-XXX", Region.EU);
Match m = client.getMatch("de3dc2b3-7db8-4b96-8a8a-17e5cee8e634");
If you are in a Spring context, you may wish to initialize a bean using your RestTemplate
instance :
@Bean
public ValorantClient getClient(@Autowired RestTemplate restClient, @Value("${riot.api.key}") String apiKey) {
return new ValorantClient(apiKey, Region.EU, restClient);
}
Javadoc is available here
- Add new Episode 9
- Add new map
Abyss
- Add new Agent
Clove
- Fix
Outlaw
identifier
- Add new Episode 8
- Add new weapon
Outlaw
- Add
PremierMatchInfo
attribute onMatch
- Add new Agent
Iso
- Add new Map
Sunset
- Add
accountLevel
andisObserver
mapping onPlayer
- Add new Episode 7
- Add new Agent
Deadlock
- Add new Agent
Gekko
- Upgrade Spring version
- Use concrete classes for
RoundResult
few attributes (bombDefuser
,defusePlayerLocations
) - Use one single object
Location
- Add Episode 6, with 3 new Acts
- Add new Map
Lotus
- Fix Harbor identifier
- Upgrade spring starter version
- Add new Agent
Harbor
- Add new Episode 5
- Add new map
Pearl
- Add Agents role
- Add Chamber & Neon abilities/Ultimate as Weapon (as seen by Riot API)
- Package refactoring
- Add new Enum value for
Fade
Agent
- Init