ProfileLookup

The ProfileLookup endpoint provides basic information about a user such as their username, identifier, display name, rank and join date.

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 user identifiers separated by colons.

Example:

&Users=1:2:395

Example response

XML

GET https://api.donutteam.com/?Event=ProfileLookup&Users=1:2:395&Format=XML
<?xml version="1.0"?>
<DonutTeamAPI>
  <Data Value="1">
    <Id>1</Id>
    <Username>jake</Username>
    <DisplayName>Jake Andre&#xF8;li</DisplayName>
    <Rank>5</Rank>
    <JoinDate>1363694400</JoinDate>
    <IsConfirmed>1</IsConfirmed>
  </Data>
  <Data Value="2">
    <Id>2</Id>
    <Username>duckdotexe</Username>
    <DisplayName>Loren Goodwin</DisplayName>
    <Rank>5</Rank>
    <JoinDate>1363694400</JoinDate>
    <IsConfirmed>1</IsConfirmed>
  </Data>
  <Data Value="395">
    <Id>395</Id>
    <Username>lucasc190</Username>
    <DisplayName>Lucas Cardellini</DisplayName>
    <Rank>5</Rank>
    <JoinDate>1396234333</JoinDate>
    <IsConfirmed>1</IsConfirmed>
  </Data>
</DonutTeamAPI>

JSON

GET http://api.donutteam.com/?Event=ProfileLookup&MethodOfAccessingUserInformation=username&Users=jake:duckdotexe:lucasc190&Format=JSON
{
    "jake": {
        "Id": 1,
        "Username": "jake",
        "DisplayName": "Jake Andre\u00f8li",
        "Rank": 5,
        "JoinDate": 1363694400,
        "IsConfirmed": true
    },
    "duckdotexe": {
        "Id": 2,
        "Username": "duckdotexe",
        "DisplayName": "Loren Goodwin",
        "Rank": 5,
        "JoinDate": 1363694400,
        "IsConfirmed": true
    },
    "lucasc190": {
        "Id": 395,
        "Username": "lucasc190",
        "DisplayName": "Lucas Cardellini",
        "Rank": 5,
        "JoinDate": 1396234333,
        "IsConfirmed": true
    }
}
Back to top