This endpoint provides basic information about Donut Team users.
Endpoint
https://api.donutteam.com/?Event=ProfileLookup
Arguments
MethodOfAccessingUserInformation
Values | Result |
---|---|
username | Looks up the specified user(s) by username |
discord | Looks up the specified user(s) by their Discord ID |
id | Default Value - Looks up the specified user(s) by their Donut Team ID |
Users
A list of usernames, discord IDs or Donut Team IDs separated by colons.
&Users=2:9:395
Example Responses
GET https://api.donutteam.com/?Event=ProfileLookup&MethodOfAccessingUserInformation=id&Users=2:9:395
{
"2": {
"Id": 2,
"Username": "loren",
"DisplayName": "Loren",
"Rank": 5,
"JoinDate": 1363694400,
"IsConfirmed": true,
"Banned": false
},
"9": {
"Id": 9,
"Username": "Cornholio309",
"DisplayName": "Kenny Giles",
"Rank": 5,
"JoinDate": 1363694400,
"IsConfirmed": true,
"Banned": false
},
"395": {
"Id": 395,
"Username": "lucasc190",
"DisplayName": "Lucas Cardellini",
"Rank": 5,
"JoinDate": 1396234333,
"IsConfirmed": true,
"Banned": false
}
}
https://api.donutteam.com/?Event=ProfileLookup&MethodOfAccessingUserInformation=id&Users=2:9:395&Format=XML
<DonutTeamAPI>
<Data Value="2">
<Id>2</Id>
<Username>loren</Username>
<DisplayName>Loren</DisplayName>
<Rank>5</Rank>
<JoinDate>1363694400</JoinDate>
<IsConfirmed>1</IsConfirmed>
<Banned/>
</Data>
<Data Value="9">
<Id>9</Id>
<Username>Cornholio309</Username>
<DisplayName>Kenny Giles</DisplayName>
<Rank>5</Rank>
<JoinDate>1363694400</JoinDate>
<IsConfirmed>1</IsConfirmed>
<Banned/>
</Data>
<Data Value="395">
<Id>395</Id>
<Username>lucasc190</Username>
<DisplayName>Lucas Cardellini</DisplayName>
<Rank>5</Rank>
<JoinDate>1396234333</JoinDate>
<IsConfirmed>1</IsConfirmed>
<Banned/>
</Data>
</DonutTeamAPI>
Notes
- This endpoint has some strange gotchas when
Format
is set toXML
that will not be changed for backwards compatibility and should be kept in mind:IsConfirmed
will be represented as0
or1
rather thanfalse
or `true.- An empty
element will be returned if the user is not banned and
will be returned if they are.1