$(pubg)
- Syntax
$(pubg <region> <username> <matchType> <stat>)- Arguments
- Required
The $(pubg) variable displays a PLAYERUNKNOWN’S BATTLEGROUNDS player statistic in chat — kills, K/D ratio, wins, rating, and more — for a given region and match type.
Use it
Section titled “Use it”!command add !pubgwins I have won $(pubg na shroud solo wins) solo games this season!$(pubg <region> <username> <matchType> <stat>)All four parameters are required — with fewer than four, the variable renders as literal text. Inputs are case-insensitive (everything is lowercased before use).
Parameters
Section titled “Parameters”<region>(required): The region the stats are tracked in, matched against the player’s data — for examplena,eu, oragg(all regions aggregated).<username>(required): The player’s PUBG (PC) name.<matchType>(required): The match type, matched against the player’s data — for examplesolo,duo, orsquad.<stat>(required): One of the whitelisted stat keys below.
Available stats
Section titled “Available stats”| Stat | Meaning |
|---|---|
kd |
K/D ratio |
winratio, winrate |
Win percentage |
wins |
Wins |
losses |
Losses |
roundsplayed |
Rounds played |
rating |
Rating |
bestrating |
Best rating |
bestrank |
Best rank |
top10s |
Top-10 finishes |
top10ratio |
Top-10 rate |
wintop10ratio |
Win/top-10 ratio |
top10spg |
Top 10s per game |
kills |
Kills |
killspg |
Kills per game |
dailykills |
Daily kills |
weeklykills |
Weekly kills |
roundmostkills |
Most kills in a round |
maxkillstreaks |
Max kill streak |
headshotkills |
Headshot kills |
headshotkillspg |
Headshot kills per game |
headshotkillratio |
Headshot kill ratio |
roadkills |
Road kills |
teamkills |
Team kills |
suicides |
Suicides |
assists |
Assists |
damagepg |
Average damage per match |
healspg |
Heals per game |
revivespg |
Revives per game |
timesurvived |
Time survived |
longesttimesurvived |
Longest time survived |
mostsurvivaltime |
Most survival time |
avgsurvivaltime |
Average survival time |
Any other stat key returns an error (see below).
Errors
Section titled “Errors”| Output | Meaning |
|---|---|
<stat> is not a valid stat |
The stat key isn’t in the list above — e.g. headshots is not a valid stat. |
No stats found |
No data matched the given region and match type in the player’s current season. |
Failed to get stats |
The pubgtracker.com API request failed. |
Related variables
Section titled “Related variables”$(leagueoflegends): Get a League of Legends player’s rank and LP.$(teamfighttactics): Get a Teamfight Tactics player’s rank and LP.
Q: Can I use it for console players?
A: No — the lookup queries PC profiles on pubgtracker.com.
Q: Why do I always get “Failed to get stats”?
A: The data comes from the third-party pubgtracker.com service, which has been unreliable or unavailable for a long time. If the service is down, there is nothing to display.