Skip to main content

Player Cosmetics

Fetch a player's selected cosmetics and owned cosmetic item ids by Minecraft Bedrock username.

GET /player/item/{username}

Example:

curl "https://app.zeqa.net/api/player/item/zGqat"

Path Parameters

ParameterTypeDescription
usernamestringMinecraft Bedrock username to look up. Usernames with unsupported characters return an error.

Response Shape

The result field is an array. For an existing player, the array contains the matching item record. For a valid username with no matching record, the array can be empty.

{
"err": null,
"result": [
{
"xuid": "2535422712303724",
"name": "zGqat",
"potcolor": "255,0,0",
"projectile": "5",
"tag": "",
"artifact": "12",
"cape": "379",
"killphrase": "14",
"ownedprojectile": "0,5",
"ownedtag": "",
"ownedartifact": "0,45,189,189,185,206,207,208,C65,C67,12,214,215",
"ownedcape": "0,9,38,284,352,355,260,285,285,353,354,201,19,361,362,378,379",
"ownedkillphrase": "0,48,48,47,60,14",
"premium_bp": 0,
"free_bp_progress": 18000,
"premium_bp_progress": 0,
"login_streak": 49,
"mount": "0",
"ownedmount": "0",
"elitetag": ""
}
]
}

Result Item Fields

FieldTypeDescription
xuidstringPlayer Xbox user id.
namestringPlayer username returned by Zeqa.
potcolorstringSelected potion color as an RGB string, such as 255,0,0.
projectilestringSelected projectile cosmetic id.
tagstringSelected tag cosmetic id or an empty string.
artifactstringSelected artifact cosmetic id.
capestringSelected cape cosmetic id.
killphrasestringSelected kill phrase cosmetic id.
ownedprojectilestringComma-separated projectile cosmetic ids owned by the player.
ownedtagstringComma-separated tag cosmetic ids owned by the player, or an empty string.
ownedartifactstringComma-separated artifact cosmetic ids owned by the player.
ownedcapestringComma-separated cape cosmetic ids owned by the player.
ownedkillphrasestringComma-separated kill phrase cosmetic ids owned by the player.
premium_bpnumberPremium battle-pass status as returned by Zeqa.
free_bp_progressnumberFree battle-pass progress.
premium_bp_progressnumberPremium battle-pass progress.
login_streaknumberPlayer login streak.
mountstringSelected mount cosmetic id.
ownedmountstringComma-separated mount cosmetic ids owned by the player.
elitetagstringSelected elite tag cosmetic id or an empty string.

JavaScript Example

async function getPlayerCosmetics(username) {
const response = await fetch(
`https://app.zeqa.net/api/player/item/${encodeURIComponent(username)}`,
);
const data = await response.json();

if (data.err) {
throw new Error(data.err);
}

return data.result;
}

Empty Result

{
"err": null,
"result": []
}

Error Response

{
"err": "Invalid character in a name"
}