Invite
curl --request GET \
--url https://api.dis.dog/v1/invite/{code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/invite/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dis.dog/v1/invite/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": "discord-developers",
"url": "<string>",
"memberCount": 862000,
"onlineCount": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"server": {
"id": "<string>",
"name": "Discord Developers",
"description": "<string>",
"iconUrl": "<string>",
"bannerUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"vanityCode": "<string>",
"boostCount": 123,
"boostTier": 123,
"verificationLevel": 123
}
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Modules
Server from an invite
Everything known about the server behind an invite: Discord’s invite (always), its public preview and widget, and an outside index when they have it. Answering 200 or 404 takes 1 search.
GET
/
v1
/
invite
/
{code}
Invite
curl --request GET \
--url https://api.dis.dog/v1/invite/{code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/invite/{code}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dis.dog/v1/invite/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": "discord-developers",
"url": "<string>",
"memberCount": 862000,
"onlineCount": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"server": {
"id": "<string>",
"name": "Discord Developers",
"description": "<string>",
"iconUrl": "<string>",
"bannerUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"vanityCode": "<string>",
"boostCount": 123,
"boostTier": 123,
"verificationLevel": 123
}
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Everything we can learn about a server from one of its invite links. Pass the code (
The server’s creation date (
disdog) or the whole link, URL-encoded. Takes 1 search from your quota.
Each source adds what it knows, and sources lists the ones that answered:
| Source | Adds |
|---|---|
discord_invite | Name, icon, banner, boosts, verification, features, member and online counts, the channel, who created the invite (a full Profile), the server’s tag and traits. Always there. |
discord_preview | Emojis, stickers and description, for servers listed in Discovery. |
discord_widget | Members online and voice channels, when the server enabled its widget. |
cordcat_index | Owner, roles, channels, emojis and the server’s change history, for servers that index covers. |
server.createdAt) is decoded from its ID.
