Servers
These API endpoints are related to servers on IBL
servers/@allGet All Servers
Gets approved and certified, publicly listed servers, filtered and sorted. Returns a set of paginated IndexServer objects
Query Parameters
pagestring
The page number
sortstring
Sort order: new (default; newest first, with boosted listings on top), trending (net votes in the last 7 days, only servers with at least one vote in that window), votes (most votes this cycle) or members (highest member count).
tagstring
Only servers with this tag (case-insensitive).
certifiedstring
true to only return certified servers.
Success
servers/@emojisGet Servers Emojis
Gets a paginated list of servers that have opted in to showing their emojis/stickers
Query Parameters
pagestring
The page number
Success
servers/@emojis/flatGet Flat Emojis
Gets a paginated, flat list of emojis across every server that has opted in to showing them
Query Parameters
pagestring
The page number
Success
servers/@stickers/flatGet Flat Stickers
Gets a paginated, flat list of stickers across every server that has opted in to showing them
Query Parameters
pagestring
The page number
Success
servers/statsPost Server Stats
This endpoint posts the stats of a server. Posting at all marks the server as self-managing its stats, which stops the periodic Infernoplex sync from overwriting total_members/online_members for it.
Authorization
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Request Body
application/jsonRequiredonline_membersinteger
The server's online member count
0Maximum: 18446744073709552000total_membersinteger
The server's total member count
0Maximum: 18446744073709552000Success
servers/@randomGet Random Servers
Returns a list of servers from the database in random order
Success
servers/@indexGet Servers Index
Gets the index of the server-side of the list. Returns a ListIndexServer object
Success
servers/metaGet Server Meta
Resolves a Discord invite link to a preview of the server it points to (name, icon, member counts, and whether it's already listed), without adding it to the database. Used by Add Server to show the server being added before the user submits.
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Query Parameters
inviteRequiredstring
The Discord invite link or code to resolve
Success
serversAdd Server
Adds a server to the database from an invite link. Resolves the guild via the invite (the tracking bot does not need to already be in the server). Returns 204 on success
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Request Body
application/jsonRequiredextra_linksarray<object>
invitestring
longstring
nsfwboolean
shortstring
tagsarray<string>
team_ownerstring
Success
servers/{id}Get Server
Gets a server by id
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Path Parameters
idRequiredstring
The servers ID
Query Parameters
targetstring
The target page of the request if any.
If target is 'page', then unique clicks will be counted based on a SHA-256 hashed IP
If target is 'invite', then the invite will be counted as a click
Officially recognized targets:
- page -> server page view
- settings -> server settings page view
- invite -> server invite view
includestring
What extra fields to include, comma-seperated.
long => server long description
team_includesstring
What entities of the servers team to include
Success
servers/{id}/seoGet Server SEO Info
Gets the minimal SEO information about a server for embed/search purposes. Used by v4 website for meta tags
Path Parameters
idRequiredstring
The server ID
Success
servers/{id}/settingsUpdate Server Settings
Updates a servers settings. You must have 'Edit Server Settings' in the team if the bot is in a team. Returns 204 on success
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Team-Auth<token>
Requires a team API session token. Should be prefixed with Team in Authorization header.
In: header
Server-Auth<token>
Requires a server API session token. Should be prefixed with Server in Authorization header.
In: header
Request Body
application/jsonRequiredcaptcha_opt_outboolean
extra_linksarray<object>
login_required_for_inviteboolean
Whether the server requires a login to be invited to it
longstring
nsfwboolean
shortstring
show_emojisboolean
Whether to show this server's emojis and stickers on its listing page. Requires the tracking bot to be in the server to actually have anything to show
statestring
"public" | "private" | "unlisted" | "defunct"tagsarray<string>
Path Parameters
idRequiredstring
Server ID
Success