Lookup by name
curl --request GET \
--url https://api.dis.dog/v1/lookup/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/lookup/{name}"
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/lookup/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"query": "<string>",
"resolvedId": "<string>",
"matches": [
{
"id": "<string>",
"username": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>",
"serverCount": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Modules
Search by name
Accounts whose username or display name contains name. Answering 200 takes 1 search.
GET
/
v1
/
lookup
/
{name}
Lookup by name
curl --request GET \
--url https://api.dis.dog/v1/lookup/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/lookup/{name}"
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/lookup/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"query": "<string>",
"resolvedId": "<string>",
"matches": [
{
"id": "<string>",
"username": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>",
"serverCount": 123,
"lastSeenAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Accounts whose username or display name contains
name, up to 20, best first. resolvedId is the ID of the account whose username is exactly name, if there is one. Takes 1 search from your quota.
Then run GET /v1/profile/{id} or GET /v1/servers/{id} on the ID you want, or simply search the username: it does both at once.
