API for Whois tool
Endpoint
https://tankibot.com/api/whois
Required parameters
Parameter |
Desciption |
username |
Username of the player you want to search for (not case sensitive). |
Example request for username "whois":
https://tankibot.com/api/whois?username=whois
JSON response:
{
"searchedUserName": "whois",
"searchedUserRank": 22,
"status": "200",
"response": [
{
"name": "whois",
"percentage": "90.00",
"level": "22"
},
{
"name": "r_azafa0",
"percentage": "90.00",
"level": "22"
},
{
"name": "r_Vals0",
"percentage": "40.72",
"level": "22"
}
]
}
Example request for username "Test" (level too low for search):
https://tankibot.com/api/whois?username=test
JSON response:
{
"searchedUserName": "Test",
"searchedUserRank": 1,
"status": "400",
"response": "User's rank is too low.",
"requiredRank": 10
}
Example request for username "aa" (user does not exist):
https://tankibot.com/api/whois?username=aa
JSON response:
{
"searchedUser": "aa",
"status": "404",
"response": "User was not found"
}