FakaHeda.eu
Logo
× GIVEAWAY Připoj se do vánoční giveaway o kredity 🎄✨🤩 Stačí splnit podmínky (klik zde)😱
Využití API od CraftBook.cz
Seznam hlasů serveru
GEThttps://api.craftbook.cz/votes/?id=ID_SERVERU
{
    "pozice_serveru": 2,
    "celkove_hlasy": 3,
    "last_vote": [
        {
            "name": "Lukasdou",
            "date": "30.03:2023 02:20"
        }
    ],
    "hlasy": [
        {
            "type": "1",
            "name": "Fallenkoo__",
            "date": "30.03:2023 02:16"
        },
        {
            "type": "1",
            "name": "Simon_556",
            "date": "30.03:2023 02:18"
        },
        {
            "type": "1",
            "name": "Lukasdou",
            "date": "30.03:2023 02:20"
        }
    ]
}

TOP 20 Hlasujících
GEThttps://api.craftbook.cz/votes_top/?id=ID_SERVERU
{
    "top_voters": [
        {
            "name": "test",
            "value": "2",
            "last_vote": "30.03:2023 03:21"
        },
        {
            "name": "test",
            "value": "2",
            "last_vote": "30.03:2023 03:21"
        }
    ]
}

TOP 5 Hlasujících
GEThttps://api.craftbook.cz/votes_top_5/?id=ID_SERVERU
{
    "top_voters": [
        {
            "name": "levap_CZ_333",
            "value": "1455",
            "country": "cz",
            "last_vote": "23.10.2023 14:38"
        },
        {
            "name": "Korbyyyis",
            "value": "899",
            "country": "us",
            "last_vote": "23.10.2023 11:15"
        },
        {
            "name": "Poharik123",
            "value": "371",
            "country": "sk",
            "last_vote": "21.10.2023 03:39"
        },
        {
            "name": "Bajuzik",
            "value": "305",
            "country": "sk",
            "last_vote": "07.10.2023 07:31"
        },
        {
            "name": "TheMinecraftSk",
            "value": "220",
            "country": "sk",
            "last_vote": "07.09.2023 13:33"
        }
    ]
}

Seznam hlasů specifického hráče
GEThttps://api.craftbook.cz/votes_player/?id=ID_SERVERU&name=NAZEV_HRÁČE
{
    "total_votes": 1,
    "last_vote": [
        {
            "name": "Fallenkoo__",
            "date": "30.03:2023 02:16"
        }
    ],
    "next_vote": 1694168340,
    "votes": [
        {
            "type": "1",
            "name": "Fallenkoo__",
            "date": "30.03:2023 02:16"
        }
    ]
}

Zobrazit komentáře serveru
GEThttps://api.craftbook.cz/comments/?id=ID_SERVERU
{
    "comments": [
        {
            "server_id": "25",
            "rate": "5",
            "comment": "testování komentářů",
            "date_added": "2023-04-05 18:31:32",
            "added": "deadswim"
        },
        {
            "server_id": "25",
            "rate": "5",
            "comment": "testování komentářů",
            "date_added": "2023-04-05 18:31:35",
            "added": "deadswim"
        },
        {
            "server_id": "25",
            "rate": "5",
            "comment": "testování komentářů",
            "date_added": "2023-04-05 18:31:37",
            "added": "deadswim"
        }
    ]
}

Informace o herním serveru
GEThttps://api.craftbook.cz/server/?id=ID_SERVERU
{
    "status": "Online",
    "motd": {
        "ingame": {
            "extra": [
                {
                    "color": "gray",
                    "text": "§e§lWardenMC "
                },
                {
                    "color": "gray",
                    "text": "§7| §fNově otevřeno!\n§7Nejlepší Survival"
                }
            ],
            "text": ""
        },
        "clean": {
            "extra": [
                {
                    "color": "gray",
                    "text": "§e§lWardenMC "
                },
                {
                    "color": "gray",
                    "text": "§7| §fNově otevřeno!\n§7Nejlepší Survival"
                }
            ],
            "text": ""
        },
        "html": {
            "extra": [
                {
                    "color": "gray",
                    "text": "§e§lWardenMC "
                },
                {
                    "color": "gray",
                    "text": "§7| §fNově otevřeno!\n§7Nejlepší Survival"
                }
            ],
            "text": ""
        }
    },
    "host": {
        "host": "mc.wardenmc.eu",
        "port": "25565"
    },
    "players": {
        "max": 100,
        "online": 4
    },
    "version": {
        "version": "1.8.x-1.19.x",
        "protocol": 761
    },
    "queryinfo": {
        "agreement": "Ping",
        "processed": "0.0307"
    }
}