> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drain.lat/llms.txt
> Use this file to discover all available pages before exploring further.

# Minecraft

> Fetch Minecraft Java Edition player profiles including skins and capes.

# Minecraft

**Base URL:** `https://drain.lat/api/v1/minecraft`

<AccordionGroup>
  <Accordion title="GET /profile/:username" icon="user">
    Fetch a Minecraft Java Edition player profile.

    ```
    GET /api/v1/minecraft/profile/:username
    ```

    <ParamField path="username" type="string" required>
      The Minecraft Java Edition username.
    </ParamField>

    <CodeGroup>
      ```bash cURL theme={null}
      curl "https://drain.lat/api/v1/minecraft/profile/Notch" \
        -H "x-api-key: YOUR_API_KEY"
      ```

      ```javascript JavaScript theme={null}
      const res = await fetch("https://drain.lat/api/v1/minecraft/profile/Notch", {
        headers: { "x-api-key": "YOUR_API_KEY" }
      });
      const data = await res.json();
      ```

      ```python Python theme={null}
      import requests

      res = requests.get(
          "https://drain.lat/api/v1/minecraft/profile/Notch",
          headers={"x-api-key": "YOUR_API_KEY"}
      )
      print(res.json())
      ```
    </CodeGroup>

    <ResponseField name="uuid" type="string">Player UUID.</ResponseField>
    <ResponseField name="username" type="string">Current username.</ResponseField>
    <ResponseField name="skinUrl" type="string">Skin texture URL.</ResponseField>
    <ResponseField name="capeUrl" type="string">Cape texture URL. `null` if no cape.</ResponseField>
    <ResponseField name="skinModel" type="string">Skin model type: `classic` or `slim`.</ResponseField>
    <ResponseField name="hasCape" type="boolean">Whether the player has a cape.</ResponseField>
    <ResponseField name="skinRenderUrl" type="string">Full body skin render URL.</ResponseField>
    <ResponseField name="headRenderUrl" type="string">Face/head render URL.</ResponseField>
    <ResponseField name="profileUrl" type="string">Link to the NameMC profile.</ResponseField>

    ```json Response theme={null}
    {
      "uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
      "username": "Notch",
      "skinUrl": "https://textures.minecraft.net/texture/...",
      "capeUrl": null,
      "skinModel": "classic",
      "hasCape": false,
      "skinRenderUrl": "https://visage.surgeplay.com/full/512/069a79f4-44e9-4726-a5be-fca90e38aaf5",
      "headRenderUrl": "https://visage.surgeplay.com/face/512/069a79f4-44e9-4726-a5be-fca90e38aaf5",
      "profileUrl": "https://namemc.com/profile/Notch",
      "scrapedAt": "2026-05-05T12:00:00.000Z"
    }
    ```

    <Note>Rate limited at 600 requests per 10 minutes by Mojang's API.</Note>
  </Accordion>
</AccordionGroup>
