@pubgkt/matches
v1.0.1
Published
Kotlin Multiplatform PUBG API client
Maintainers
Readme
pubgkt – matches
Retrieve detailed match data including participants, stats, and telemetry metadata.
API Reference | PUBG Official Docs
Installation
Gradle Kotlin DSL
dependencies {
implementation("dev.pubgkt:matches:1.0.1")
}Gradle Groovy
dependencies {
implementation 'dev.pubgkt:matches:1.0.1'
}Maven
<dependency>
<groupId>dev.pubgkt</groupId>
<artifactId>matches-jvm</artifactId>
<version>1.0.1</version>
</dependency>API Reference
| Function | Description |
|----------|-------------|
| PubgApi.getMatchById(matchId, platform) | Get full match details by match ID |
Usage
Kotlin
val api = PubgApi("your-api-key")
val match = api.getMatchById("match-id-here")
println("Map: ${match.mapName}, Mode: ${match.gameMode}")
println("Duration: ${match.duration}s, Teams: ${match.participants.size}")
match.participants.first().players.forEach { player ->
println("${player.name} — ${player.kills} kills, ${player.damageDealt} dmg")
}Java
PubgApi api = new PubgApi("your-api-key");
Match match = BuildersKt.runBlocking(
EmptyCoroutineContext.INSTANCE,
(_, cont) -> GetMatchByIdKt.getMatchById(api, "match-id-here", Platform.STEAM, cont)
);
System.out.println("Map: " + match.getMapName() + ", Mode: " + match.getGameMode());
System.out.println("Duration: " + match.getDuration() + "s");