🤖
Cubed-API
  • Cubed-API
  • Tutorials & Guides
    • Installing Cubed-API
    • Session IDs
    • Logging Into An Account
    • Selecting A Server To Edit
  • Documentation
    • login
    • getServers
    • selectServer
    • validate
    • Files
      • getFolder
      • read
      • edit
      • delete
      • createFolder
      • create
    • API
      • servers
      • server
      • topboosted
      • topvoted
      • player
        • bedwars
        • tntwars
        • warzone
        • info
    • utils
      • orderServers
      • playerUUID
  • Terms Of Use
  • Source Code (GitHub)
Powered by GitBook
On this page
  1. Documentation
  2. API

topboosted

.topboosted() is used to get the top boosted servers, most boosters to least boosters.

PreviousserverNexttopvoted

Last updated 4 years ago

Was this helpful?

CtrlK

Was this helpful?

.topboosted()

Get a list of boosted player servers, highest to lowest.

Example:

// Dependencies
const CubedCraft = require('cubed-api');

// Getting the top boosted servers
CubedCraft.API.topboosted().then(servers => {
    console.log(servers);
})

The servers will be in order of most boosters to least boosters so you will not need to order them.

Example Response:

{
  servers: [
    {
      id: '37d2d68c1f9e4dca9e4037bc263aa053',
      name: 'WeakPvP',
      owner_name: 'ApexCandy',
      boosters: 21
    },
    {
      id: '5ae66df8c3c245b395856ae52ec5d1c0',
      name: 'Raiding',
      owner_name: 'TheDZsniper',
      boosters: 13
    }
  ]
}