CraftAPI
  • CraftAPI
  • Changelog
  • Ccomunity
    • Profil hráče
    • VIP status
  • Economy & Levels
    • Level & Experience
    • Live data
  • Leaderboards
    • Votes
    • Levels
    • Economy
    • Ostatní
  • Server
    • Statistiky
    • Mojang API
  • Administrative
    • CraftBox Account
    • CraftBox Permissions
Powered by GitBook
On this page
  • Získání UUID
  • Historie nicků
  • Skin data
  1. Server

Mojang API

Tato sekce slouží k získávání dat z Mojang API serverů. Všechny requesty jsou cachovány po dobu 2 hodin.

Získání UUID

GET https://api.craftmania.cz/mojang/uuid/:nick

Endpoint vrací jak originální UUID tak i offline UUID.

Path Parameters

Name
Type
Description

nick

string

Nick hráče podle MC

Headers

Name
Type
Description

authorization

string

Bearer token

{
  "status": 200,
  "data": {
    "name": "MrWakeCZ",
    "original": "43d05dab2dbc418b9e6fdc73ab916dbc",
    "offline": "6bcd909c50011be4bd78efca839aa354"
  }
}

Online UUID je null, pokud je hráč typu warez (nezakoupený Minecraft).

Historie nicků

GET https://api.craftmania.cz/mojang/namehistory/:uuid

Endpoint vrací array nicků, který si originální hráč někdy změnil.

Path Parameters

Name
Type
Description

uuid

string

UUID hráče (originální)

Headers

Name
Type
Description

authorization

string

Bearer token

{
  "status": 200,
  "data": [
    {
      "name": "NOBODYD7"
    },
    {
      "name": "MrPhox",
      "changedToAt": 1521052019000
    }
  ]
}

Skin data

GET https://api.craftmania.cz/mojang/profile/:uuid

Endpoint vrací decryptované data o hráči - nick, uuid, skin data atd.

Path Parameters

Name
Type
Description

uuid

string

UUID hráče (originální)

Headers

Name
Type
Description

authorization

string

Bearer token

{
  "status": 200,
  "data": {
    "timestamp": 1593025685038,
    "profileId": "98e10440113248088d0ca5ac86bca99c",
    "profileName": "MrPhox",
    "signatureRequired": true,
    "textures": {
      "SKIN": {
        "url": "http://textures.minecraft.net/texture/f5648c9383cdbf76c827e6471d5aacff1a0de2cbcc6b3ad25db2cd79ecbb57a7"
      }
    }
  }
}
{
  "status": 400,
  "error": "Request failed with status code 400",
  "data": []
}
PreviousStatistikyNextCraftBox Account

Last updated 4 years ago