Skip to content

WinG4merBR/ValorantWrapper

Repository files navigation

๐ŸฆŠ ValorantWrapper

A simple Unofficial VALORANT API wrapper written in Kotlin

โ“ Can I use?

Yes, you can use this wrapper! Just follow the installation instructions.

๐Ÿ“ฆ Installation

Add the following dependency to your build.gradle.kts file:

repositories {
    maven("https://jitpack.io")
}

dependencies {
    implementation("com.github.WinG4merBR:ValorantWrapper:VERSION")
}

๐Ÿ”ง Requirements

  • Kotlin: 2.0.0 or latest
  • Java 21 or latest
  • Ktor 3.0.3 or latest

๐Ÿš€ Features

  • Account Information: Retrieve user data by name#tag or UUID.
  • MMR Data: Get the MMR of a player based on their name#tag or UUID.
  • Match Information: Fetch detailed match information by match ID, name#tag, or UUID.

๐Ÿ› ๏ธ Usage

1. Get User Information by UserTag

suspend fun getUserByTag(userTag: String): ValorantUser

Example:

val userTag = "username#1234"
val userInfo = wrapper.getUserByTag(userTag)
println(userInfo)

2. Get MMR by UserTag

suspend fun getMmrByTag(userTag: String, region: String): MmrInfo

Example:

val region = "na"
val userTag = "username#1234"
val mmrInfo = wrapper.getMmrByTag(userTag, region)
println(mmrInfo)

3. Get Match Info by Match ID

suspend fun getMatchById(matchId: String, region: String): MatchInfo

Example:

val region = "na"
val matchId = "someMatchId"
val matchInfo = wrapper.getMatchById(matchId, region)
println(matchInfo)

โ“ Npm version when?

Never :3

About

๐ŸฆŠ | A wrapper for HenrikDev's Unofficial VALORANT API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages