Do you play PUBG and want to see your stats using ...
# feed
s
Do you play PUBG and want to see your stats using Kotlin? Check out my first open-source library! pubgkt is a Kotlin Multiplatform client for the official PUBG API. Look up players, check your lifetime stats, flex your K/D, browse match details — all from a few lines of code:
Copy code
val api = PubgApi(apiKey = "your-api-key")
val players = api.getPlayersByNames("sparkingg", "TGLTN")
val stats = api.getLifetimeStatsByAccountId(players.first().id)
println("${stats.squadFpp.wins} chicken dinners :poultry_leg:")
It's modular, has built-in rate limiting and retry, and supports Java too (for the brave). GitHub: https://github.com/theodorosidmar/pubgkt Docs: https://theodorosidmar.github.io/pubgkt/ Winner winner, chicken dinner — feedback welcome!
p
Hey, good job. Not sure exactly how PUBG works but does this include data from their mobile game as well?
s
Unfortunately not. Only steam, xbox, playstation, stadia and kakao :/
🙌 1