From 41d8f771213bae3055d62133918cd877d3f26cfa Mon Sep 17 00:00:00 2001 From: Braydon Date: Sat, 13 Apr 2024 08:58:20 -0700 Subject: [PATCH] Update player/query --- player%2Fquery.md | 47 ++++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/player%2Fquery.md b/player%2Fquery.md index e450583..f5027f8 100644 --- a/player%2Fquery.md +++ b/player%2Fquery.md @@ -1,13 +1,18 @@ # Query Player `GET` `/player/` -Retrieve information from Mojang regarding a player by looking up their username or UUID. +Retrieve information about a player by looking up their username or UUID. ## Path Variables | Name | Type | Description | |-------|:------:|-------------------:| | query | string | `Username or UUID` | +## Query Parameters +| Name | Type | Default | Content | +|--------|:-------:|--------:|-------------------------------------------------:| +| signed | boolean | `false` | `Whether the player profile is signed by Mojang` | + ## Error Codes | Code | Description | |---------------------------|:------------------------------------------:| @@ -19,21 +24,29 @@ Retrieve information from Mojang regarding a player by looking up their username Results are cached for up to `1 hour` ## Response -```json -{ - "cached": 1712465892957, // -1 if not cached - "uniqueId": "fc1d5fe7-f29b-430d-80bb-3b093a638b0f", - "username": "Rainnny", - "skin": { - "url": "http://textures.minecraft.net/texture/ac8db1928dc94e332cca7be9567c7bbf4c56563000667d3a58ade257cde34f82", - "model": "SLIM", - "parts": { - "HEAD": "https://mc.rainnny.club/player/head/fc1d5fe7f29b430d80bb3b093a638b0f.png", - ... - } - }, - "cape": { - "url": "http://textures.minecraft.net/texture/2340c0e03dd24a11b15a8b33c2a7e9e32abb2051b2481d0ba7defd635ca7a933" - } +```json{ + "uniqueId": "fc1d5fe7-f29b-430d-80bb-3b093a638b0f", + "username": "Rainnny", + "skin": { + "url": "http://textures.minecraft.net/texture/ac8db1928dc94e332cca7be9567c7bbf4c56563000667d3a58ade257cde34f82", + "model": "SLIM", + "legacy": false, + "parts": { + "HEAD": "https://mc.rainnny.club/player/head/fc1d5fe7f29b430d80bb3b093a638b0f.png" + ... + } + }, + "cape": { + "url": "http://textures.minecraft.net/texture/2340c0e03dd24a11b15a8b33c2a7e9e32abb2051b2481d0ba7defd635ca7a933" + }, + "properties": [ + { + "name": "textures", + "value": "ewogICJ0aW1lc3RhbXAiIDog…TMzIgogICAgfQogIH0KfQ==...", + "signed": false + } + ], + "legacy": false, + "cached": 1713023287371 // -1 if not cached } ``` \ No newline at end of file