Users

get
Get User

https://api.serverlist.space/v1/users/:id
Retrieves a specific user by ID.
Request
Response
Path Parameters
id
required
string
The ID of the user you want to retrieve.
200: OK
{
"success": true, // Boolean
"avatar": "https://cdn.discordapp.com/avatars/507329700402561045/188e722beb5a696d9cd320d1b9b1fd2e.png?size=256", // String
"discriminator": "1281", // String
"id": "507329700402561045", // String
"short_description": null, // ?String
"username": "PassTheMayo" // String
}
404: Not Found
{
"success": false, // Boolean
"code": 404, // Number
"message": "User not found" // String
}

get
Get User Servers

https://api.serverlist.space/v1/users/:id/servers
Get a user's servers that are listed on the site. 16 servers are returned per page.
Request
Response
Path Parameters
id
required
string
The ID of the user you are getting servers from.
Query Parameters
page
optional
number
Determines which page to return. Defaults to the first page.
200: OK
{
"success": true, // Boolean
"page": 1, // Number
"page_count": 2, // Number
"servers": [ // Array<Object>
{ ... },
{ ... },
{ ... }
]
}
404: Not Found
{
"success": false, // Boolean
"code": 404, // Number
"message": "User not found" // String
}

‚Äč