Player Username to UUID

    Get a player's UUID from their username.

    Overview

    The player username to UUID endpoint allows you to get a player's UUID from their username.

    Endpoint

    GET /player/uuid/:query
    

    Parameters

    ParameterDescriptionRequired
    queryThe username of the player you want to look up.Yes

    Example

    Bash
    curl -X GET "https://api.mcutils.xyz/player/uuid/imfascinated" -H "accept: application/json"
    

    Response

    Json
    {
      "cache": {
        "cached": false,
        "cachedTime": -1
      },
      "uniqueId": "eeab5f8a-18dd-4d58-af78-2b3c4543da48",
      "username": "ImFascinated"
    }
    

    Errors

    Status CodeDescription
    400The username is invalid.
    429The Mojang API rate limit has been exhausted.