Update player/query
parent
84a80f8cb8
commit
41d8f77121
@ -1,13 +1,18 @@
|
|||||||
# Query Player
|
# Query Player
|
||||||
`GET` `/player/<query>`
|
`GET` `/player/<query>`
|
||||||
|
|
||||||
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
|
## Path Variables
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
|-------|:------:|-------------------:|
|
|-------|:------:|-------------------:|
|
||||||
| query | string | `Username or UUID` |
|
| query | string | `Username or UUID` |
|
||||||
|
|
||||||
|
## Query Parameters
|
||||||
|
| Name | Type | Default | Content |
|
||||||
|
|--------|:-------:|--------:|-------------------------------------------------:|
|
||||||
|
| signed | boolean | `false` | `Whether the player profile is signed by Mojang` |
|
||||||
|
|
||||||
## Error Codes
|
## Error Codes
|
||||||
| Code | Description |
|
| 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`
|
Results are cached for up to `1 hour`
|
||||||
|
|
||||||
## Response
|
## Response
|
||||||
```json
|
```json{
|
||||||
{
|
"uniqueId": "fc1d5fe7-f29b-430d-80bb-3b093a638b0f",
|
||||||
"cached": 1712465892957, // -1 if not cached
|
"username": "Rainnny",
|
||||||
"uniqueId": "fc1d5fe7-f29b-430d-80bb-3b093a638b0f",
|
"skin": {
|
||||||
"username": "Rainnny",
|
"url": "http://textures.minecraft.net/texture/ac8db1928dc94e332cca7be9567c7bbf4c56563000667d3a58ade257cde34f82",
|
||||||
"skin": {
|
"model": "SLIM",
|
||||||
"url": "http://textures.minecraft.net/texture/ac8db1928dc94e332cca7be9567c7bbf4c56563000667d3a58ade257cde34f82",
|
"legacy": false,
|
||||||
"model": "SLIM",
|
"parts": {
|
||||||
"parts": {
|
"HEAD": "https://mc.rainnny.club/player/head/fc1d5fe7f29b430d80bb3b093a638b0f.png"
|
||||||
"HEAD": "https://mc.rainnny.club/player/head/fc1d5fe7f29b430d80bb3b093a638b0f.png",
|
...
|
||||||
...
|
}
|
||||||
}
|
},
|
||||||
},
|
"cape": {
|
||||||
"cape": {
|
"url": "http://textures.minecraft.net/texture/2340c0e03dd24a11b15a8b33c2a7e9e32abb2051b2481d0ba7defd635ca7a933"
|
||||||
"url": "http://textures.minecraft.net/texture/2340c0e03dd24a11b15a8b33c2a7e9e32abb2051b2481d0ba7defd635ca7a933"
|
},
|
||||||
}
|
"properties": [
|
||||||
|
{
|
||||||
|
"name": "textures",
|
||||||
|
"value": "ewogICJ0aW1lc3RhbXAiIDog…TMzIgogICAgfQogIH0KfQ==...",
|
||||||
|
"signed": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"legacy": false,
|
||||||
|
"cached": 1713023287371 // -1 if not cached
|
||||||
}
|
}
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user