interface LeaderboardEntry {
    _id: string;
    ar: number;
    ar_counts: {
        bronze?: number;
        diamond?: number;
        gold?: number;
        platinum?: number;
        silver?: number;
        t10?: number;
        t100?: number;
        t25?: number;
        t3?: number;
        t5?: number;
        t50?: number;
    };
    country?: string;
    gamesplayed: number;
    gameswon: number;
    gametime: number;
    league: {
        apm: number;
        bestrank: string;
        decaying: boolean;
        gamesplayed: number;
        gameswon: number;
        glicko: number;
        gxe: number;
        pps: number;
        rank: string;
        rd: number;
        tr: number;
        vs: number;
    };
    p: {
        pri: number;
        sec: number;
        ter: number;
    };
    role: string;
    supporter: boolean;
    ts?: string;
    username: string;
    xp: number;
}

Properties

_id: string

The user's internal ID.

ar: number

This user's Achievement Rating.

ar_counts: {
    bronze?: number;
    diamond?: number;
    gold?: number;
    platinum?: number;
    silver?: number;
    t10?: number;
    t100?: number;
    t25?: number;
    t3?: number;
    t5?: number;
    t50?: number;
}

The breakdown of the source of this user's Achievement Rating:

Type declaration

  • Optionalbronze?: number

    The amount of ranked Bronze achievements this user has.

  • Optionaldiamond?: number

    The amount of ranked Diamond achievements this user has.

  • Optionalgold?: number

    The amount of ranked Gold achievements this user has.

  • Optionalplatinum?: number

    The amount of ranked Platinum achievements this user has.

  • Optionalsilver?: number

    The amount of ranked Silver achievements this user has.

  • Optionalt10?: number

    The amount of competitive achievements this user has ranked into the top 10 with.

  • Optionalt100?: number

    The amount of competitive achievements this user has ranked into the top 100 with.

  • Optionalt25?: number

    The amount of competitive achievements this user has ranked into the top 25 with.

  • Optionalt3?: number

    The amount of competitive achievements this user has ranked into the top 3 with.

  • Optionalt5?: number

    The amount of competitive achievements this user has ranked into the top 5 with.

  • Optionalt50?: number

    The amount of competitive achievements this user has ranked into the top 50 with.

country?: string

The user's ISO 3166-1 country code, or null if hidden/unknown. Some vanity flags exist.

gamesplayed: number

The amount of online games played by this user. If the user has chosen to hide this statistic, it will be -1.

gameswon: number

The amount of online games won by this user. If the user has chosen to hide this statistic, it will be -1.

gametime: number

The amount of seconds this user spent playing, both on- and offline. If the user has chosen to hide this statistic, it will be -1.

league: {
    apm: number;
    bestrank: string;
    decaying: boolean;
    gamesplayed: number;
    gameswon: number;
    glicko: number;
    gxe: number;
    pps: number;
    rank: string;
    rd: number;
    tr: number;
    vs: number;
}

This user's current TETRA LEAGUE standing:

Type declaration

  • apm: number

    This user's average APM (attack per minute) over the last 10 games.

  • bestrank: string

    This user's highest achieved rank this season.

  • decaying: boolean

    Whether this user's RD is rising (has not played in the last week).

  • gamesplayed: number

    The amount of TETRA LEAGUE games played by this user.

  • gameswon: number

    The amount of TETRA LEAGUE games won by this user.

  • glicko: number

    This user's Glicko-2 rating.

  • gxe: number

    This user's GLIXARE.

  • pps: number

    This user's average PPS (pieces per second) over the last 10 games.

  • rank: string

    This user's letter rank.

  • rd: number

    This user's Glicko-2 Rating Deviation.

  • tr: number

    This user's TR (Tetra Rating).

  • vs: number

    This user's average VS (versus score) over the last 10 games.

p: {
    pri: number;
    sec: number;
    ter: number;
}

The prisecter of this entry:

Type declaration

  • pri: number

    The primary sort key.

  • sec: number

    The secondary sort key.

  • ter: number

    The tertiary sort key.

role: string

The user's role (one of "anon", "user", "bot", "halfmod", "mod", "admin", "sysop").

supporter: boolean

Whether this user is currently supporting TETR.IO <3

ts?: string

When the user account was created. If not set, this account was created before join dates were recorded.

username: string

The user's username.

xp: number

The user's XP in points.