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": "26-04-2025 03:32:48", "date-unix": 1745631168, "text": "Best server", "stars": "5" }, "last": "26-04-2025 03:32:48", "last-unix": 1745631168, "next": "26-04-2025 05:32:48", "next-unix": 1745638368, }
{ "username": "Alex", "votes": [ { "id": 2122851, "date": "26-04-2025 03:32:48", "date-unix": 1745631168, }, { "id": 2122764, "date": "26-04-2025 01:25:03", "date-unix": 1745623503, }, ... ] }
{ "name": "My server", "votes": [ { "id": 2122764, "username": "Steve", "date": "25-04-2025 21:30:33", "date-unix": 1745609433, }, { "id": 2123811, "username": "Alex" "date": "26-04-2025 03:32:48", "date-unix": 1745631168, }, ... ] }
{ "name": "My server", "votes": [ { "username": "Alex" "votes": 135, "last": "26-04-2025 03:32:48" "last-unix": 1745631168, "next": "26-04-2025 05:32:48", "next-unix": 1745638368, }, { "username": "Steve", "votes": 17, "last": "25-04-2025 21:30:33" "last-unix": 1745609433, "next": "25-04-2025 23:30:33", "next-unix": 1745616633, }, ... ] }
{ "name": "My server", "reviews": [ { "username": "Alex" "stars": 5, "date": "26-04-2025 03:32:48", "date-unix": 1745631168, "text": "I love it!", }, { "username": "Herobrine", "stars": 2, "date": "23-04-2025 20:21:47", "date-unix": 1745432507, "text": "Bad support, not working shops :(", }, ... ] }