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": "19-02-2025 03:12:15", "date-unix": 1739931135, "text": "Best server", "stars": "5" }, "last": "19-02-2025 03:12:15", "last-unix": 1739931135, "next": "19-02-2025 05:12:15", "next-unix": 1739938335, }
{ "username": "Alex", "votes": [ { "id": 2122851, "date": "19-02-2025 03:12:15", "date-unix": 1739931135, }, { "id": 2122764, "date": "19-02-2025 01:04:30", "date-unix": 1739923470, }, ... ] }
{ "name": "My server", "votes": [ { "id": 2122764, "username": "Steve", "date": "18-02-2025 21:10:00", "date-unix": 1739909400, }, { "id": 2123811, "username": "Alex" "date": "19-02-2025 03:12:15", "date-unix": 1739931135, }, ... ] }
{ "name": "My server", "votes": [ { "username": "Alex" "votes": 135, "last": "19-02-2025 03:12:15" "last-unix": 1739931135, "next": "19-02-2025 05:12:15", "next-unix": 1739938335, }, { "username": "Steve", "votes": 17, "last": "18-02-2025 21:10:00" "last-unix": 1739909400, "next": "18-02-2025 23:10:00", "next-unix": 1739916600, }, ... ] }
{ "name": "My server", "reviews": [ { "username": "Alex" "stars": 5, "date": "19-02-2025 03:12:15", "date-unix": 1739931135, "text": "I love it!", }, { "username": "Herobrine", "stars": 2, "date": "16-02-2025 20:01:14", "date-unix": 1739732474, "text": "Bad support, not working shops :(", }, ... ] }