Pro Vás jsme vytvořili API, kterou můžete využívat a získávat tak informace o Vašem serveru.
U requestů obsahující seznam je možné přidat &limit=ČÍSLO, což omezí počet výpisů.
U všech requestů je možné přidat &archive=MĚSÍC/ROK příklad: 09/2023, což zobrazí historické data.
SERVER_ID nahraďte identifikátorem serveru, který najdete v administraci.
PLAYER_NAME nahraďte přezdívkou hráče, které bylo při hlasování zadáno jako přezdívka.
{ "name": "My server", "address": "127.0.0.1:25561", "position": 1, "status": 11, "rating": 1, "votes": 142 }
{ "name": "Alex", "votes": 135, "review": { "date": "01-12-2023 17:52:53", "date-unix": 1701449573, "text": "Best server", "stars": "5" }, "last": "01-12-2023 17:52:53", "last-unix": 1701449573, "next": "01-12-2023 19:52:53", "next-unix": 1701456773, }
{ "username": "Alex", "votes": [ { "id": 2122851, "date": "01-12-2023 17:52:53", "date-unix": 1701449573, }, { "id": 2122764, "date": "01-12-2023 15:45:08", "date-unix": 1701441908, }, ... ] }
{ "name": "My server", "votes": [ { "id": 2122764, "username": "Steve", "date": "01-12-2023 11:50:38", "date-unix": 1701427838, }, { "id": 2123811, "username": "Alex" "date": "01-12-2023 17:52:53", "date-unix": 1701449573, }, ... ] }
{ "name": "My server", "votes": [ { "username": "Alex" "votes": 135, "last": "01-12-2023 17:52:53" "last-unix": 1701449573, "next": "01-12-2023 19:52:53", "next-unix": 1701456773, }, { "username": "Steve", "votes": 17, "last": "01-12-2023 11:50:38" "last-unix": 1701427838, "next": "01-12-2023 13:50:38", "next-unix": 1701435038, }, ... ] }
{ "name": "My server", "reviews": [ { "username": "Alex" "stars": 5, "date": "01-12-2023 17:52:53", "date-unix": 1701449573, "text": "I love it!", }, { "username": "Herobrine", "stars": 2, "date": "29-11-2023 10:41:52", "date-unix": 1701250912, "text": "Bad support, not working shops :(", }, ... ] }