modl.gg
Developer API

Lookup Profile

Detailed player profile lookup by UUID or username.

POST /v1/minecraft/players/lookup-profile

Perform a detailed player profile lookup. Accepts a UUID or username query and returns the full player profile including punishments and notes with optional pagination limits.

Authentication

Requires the X-API-Key header with your server's API key.

X-API-Key: your-api-key-here

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.
Content-TypestringYesMust be application/json.

Query Parameters

ParameterTypeRequiredDescription
punishmentLimitintegerNoMaximum number of punishments to return.
noteLimitintegerNoMaximum number of notes to return.

Body

FieldTypeRequiredDescription
querystringYesThe player's UUID or username to look up. Must not be blank.
queryMojangbooleanNoWhether to query Mojang if the player is not found locally. Defaults to true.
{
  "query": "Notch",
  "queryMojang": true
}

Response

200 OK

{
  "status": 200,
  "message": "Player found",
  "player": {
    "_id": "65a1b2c3d4e5f6a7b8c9d0e1",
    "minecraftUuid": "550e8400-e29b-41d4-a716-446655440000",
    "usernames": [
      {
        "username": "Notch",
        "date": "2024-01-15T10:30:00.000Z"
      }
    ],
    "notes": [],
    "ipList": [],
    "punishments": [],
    "pendingNotifications": []
  }
}

Error Responses

Status CodeDescription
400Invalid request body or missing required fields.
401Missing or invalid API key.
404Player not found for the given query.
429Rate limit exceeded.
500Internal server error.

On this page