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": "20-05-2024 04:03:29", "date-unix": 1716170609, "text": "Best server", "stars": "5" }, "last": "20-05-2024 04:03:29", "last-unix": 1716170609, "next": "20-05-2024 06:03:29", "next-unix": 1716177809, }
{ "username": "Alex", "votes": [ { "id": 2122851, "date": "20-05-2024 04:03:29", "date-unix": 1716170609, }, { "id": 2122764, "date": "20-05-2024 01:55:44", "date-unix": 1716162944, }, ... ] }
{ "name": "My server", "votes": [ { "id": 2122764, "username": "Steve", "date": "19-05-2024 22:01:14", "date-unix": 1716148874, }, { "id": 2123811, "username": "Alex" "date": "20-05-2024 04:03:29", "date-unix": 1716170609, }, ... ] }
{ "name": "My server", "votes": [ { "username": "Alex" "votes": 135, "last": "20-05-2024 04:03:29" "last-unix": 1716170609, "next": "20-05-2024 06:03:29", "next-unix": 1716177809, }, { "username": "Steve", "votes": 17, "last": "19-05-2024 22:01:14" "last-unix": 1716148874, "next": "20-05-2024 00:01:14", "next-unix": 1716156074, }, ... ] }
{ "name": "My server", "reviews": [ { "username": "Alex" "stars": 5, "date": "20-05-2024 04:03:29", "date-unix": 1716170609, "text": "I love it!", }, { "username": "Herobrine", "stars": 2, "date": "17-05-2024 20:52:28", "date-unix": 1715971948, "text": "Bad support, not working shops :(", }, ... ] }