Packbase

pb.leaderboard

Fetch ranked packs by activity and profiles by XP.

Leaderboard methods do not return pack or profile arrays directly. Each entry contains an item and its ranking data. Ranking data includes activity, XP, or movement. The outer object contains data about the full leaderboard.

Packs

const {  } = await ..()

for (const  of ) {
  .(., ..)
}

The result is PackLeaderboard, so read the array from its packs property as shown above.

Profiles

const { ,  } = await ..()

for (const  of ) {
  .(., ., ., ..)
}

The result is ProfileLeaderboard. update_in is an ISO-formatted timestamp for the next refresh. Each entry also includes since, movement, and delta. These fields describe the ranking change.

On this page