API Documentation

Welcome to the documentation for Universe List's API!
Please note that certain endpoints may require an API key, you can obtain yours by navigating to your bots edit page.



GET Bot Information

Returns all information on a bot.

GET /api/bots/:id

Path Parameters

NameTypeDescription
idStringID of the bot to get information of.

Response Body

NameTypeDescription
idStringThe ID of the targeted bot.
usernameStringThe username of the targeted bot.
avatarStringThe avatar URL of the targeted bot.
prefixStringThe prefix of the targeted bot.
ownerStringThe ID of the targeted bot's owner.
ownerTagStringThe tag of the targeted bot's owner.
tagsArrayAn array of the targeted bot's tags.
viewsIntegerThe amount of views the targeted bot's page has gotten.
submittedOnStringThe date the targeted bot was submitted to Universe List.
approvedOnStringThe date the targeted bot was approved on Universe List.
shortDescriptionStringThe short description of the targeted bot on Universe List.
descriptionStringThe description of the targeted bot on Universe List.
shardsStringThe number of shards the targeted bot has.
serversIntegerThe number of servers the targeted bot has.
votesIntegerThe number of vots the targeted bot has on Universe List.
inviteStringThe invite of the targeted bot.
websiteStringThe website of the targeted bot.
githubStringThe github of the targeted bot.
supportStringThe support server of the targeted bot.


POST Bot Stats

Posts your bot's server and shard count.

POST /api/bots/:id

Request Headers

NameTypeDescription
authorizationStringThe API Key for the targeted bot.

Path Parameters

NameTypeDescription
idStringID of the bot to post stats for.

Request Body

NameTypeDescription
server_countIntegerThe server count for the targeted bot.
shard_countIntegerThe shard count for the targeted bot.

Response Body

NameTypeDescription
messageStringError or success message.


GET Bot Votes

Get all votes of a bot on Universe List.

GET /api/bots/:id/votes

Path Parameters

NameTypeDescription
idStringID of the bot to get the votes of.

Response Body

NameTypeDescription
userStringThe user ID who voted for the bot.
currentIntegerThe date the user voted.
nextIntegerThe time unitl they can vote again.


GET Has Voted

Check if a user voted for your bot.

GET /api/bots/:id/voted/?user=userid

Path Parameters

NameTypeDescription
idStringThe ID of the bot to check the vote on.

Query Parameters

NameTypeDescription
userStringThe ID of the user to check.

Response Body

NameTypeDescription
voteBooleanIf the user voted or not.
currentIntegerThe date the user voted.
nextIntegerThe time unitl they can vote again.


GET Server Information

Returns all information on a server.

GET /api/servers/:id

Response Body

NameTypeDescription
nameStringThe name of the targeted server.
idStringThe ID of the targeted server.
membersIntegerThe member count of the targeted server.
iconStringThe icon URL of the targeted server.
inviteStringThe invite URL of the targeted server.
submittedOnStringThe submitted date of the targeted server.
websiteStringThe website URL of the targeted server.
ownerStringThe owner ID of the targeted server.
ownerTagStringThe owner tag of the targeted server.
tagsArrayAll of the tags of the targeted server.
bumpDateThe latest bump date of the targeted server.
bumpsIntegerThe number of bumps of the targeted server.
viewsIntegerThe number of views of the targeted server.
votesIntegerThe number of votes of the targeted server.
shortDescStringThe short description of the targeted server.
descriptionStringThe description of the targeted server.


Universe List NPM Package

To learn how to interact with our API using JavaScript, check out our NPM package available here.