---
description: .topvoted() is used to get the top voted servers, most votes to least votes.
---

# topvoted

**.topvoted()**

Get a list of top voted player servers, highest to lowest.

**Example:**

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

// Getting the top voted servers
CubedCraft.API.topvoted().then(servers => {
    console.log(servers);
})
```

{% hint style="info" %}
The servers **will** be in order of most voters to least voters so you will not need to order them.
{% endhint %}

**Example Response:**

```javascript
{
  servers: [
    {
      id: '37d2d68c1f9e4dca9e4037bc263aa053',
      name: 'WeakPvP',
      owner_name: 'ApexCandy',
      votes: 173
    },
    {
      id: '8c5035ff210542579532d60ebc3622b3',
      name: 'AetherWorld',
      owner_name: 'gabitza1234',
      votes: 22
    },
    {
      id: 'a430102445d54b13bbe0bd777d04b542',
      name: 'Etiviel',
      owner_name: 'xIName',
      votes: 15
    },
    {
      id: '5a866a8291ed44d4a68c0ca5f0936148',
      name: 'Breakout',
      owner_name: 'urtoxic',
      votes: 14
    },
    {
      id: '59aa78d1347f4044825974adff47b388',
      name: 'RealityPvP',
      owner_name: 'ShadowOcto',
      votes: 10
    }
  ]
}
```
