API Endpoints
There are multiple API endpoints available for external use, all list endpoints use DataTables syntax.
Playersโ
GET /api/v1/stats
โ
Gets all player stats given the DataTables parameters.
Example Response:
{
"draw": 1,
"recordsTotal": 1489,
"recordsFiltered": 1489,
"data": [
{
"uuid": "e0ee08ac-9c91-49f6-ab4a-56f41298cdb9",
"username": "jvbnx",
"kills": 46,
"deaths": 21,
"sumo_wins": 0,
"party_vs_party_wins": 0,
"global_elo": 1010,
"id": 1255,
"last_man_standing_wins": 4,
"brackets_wins": 0,
"juggernaut_wins": 0,
"ladders": {
"elo_nodebuffelo": 1016,
"elo_debuffelo": 1008,
"elo_builduhcelo": 1000,
"elo_gappleelo": 1015,
"elo_soupelo": 1000,
"elo_comboelo": 1022,
"elo_sumoelo": 1000,
"elo_sumobestof3elo": 1008,
"elo_nodebuffelopremium": 1000,
"elo_hcfelo": 1015,
"elo_axepvpelo": 1029
}
},
...
]
}
GET /api/v1/player/{username|uuid}
โ
Gets a specific player's stats
Example Response:
{
"uuid": "c4fa95bf-e82c-475d-8f07-91f152ebb48d",
"username": "Toppe5",
"kills": 66,
"deaths": 299,
"sumo_wins": 0,
"party_vs_party_wins": 8,
"global_elo": 998,
"id": 1,
"last_man_standing_wins": 1,
"brackets_wins": 2,
"juggernaut_wins": 0,
"ladders": {
"elo_nodebuffelo": 988,
"elo_debuffelo": 992,
"elo_builduhcelo": 1000,
"elo_gappleelo": 1000,
"elo_soupelo": 1000,
"elo_comboelo": 1000,
"elo_sumoelo": 1000,
"elo_sumobestof3elo": 1000,
"elo_nodebuffelopremium": 1000,
"elo_hcfelo": 1000,
"elo_axepvpelo": 1000
}
}
GET /api/v1/player/{username|uuid}
โ
Fightsโ
GET /api/v1/fights
โ
Gets all fights given the DataTables parameters.
Example Response:
{
"draw": 0,
"recordsTotal": 3260,
"recordsFiltered": 3260,
"data": [
{
"id": 4900,
"arena": {
"name": "ยง7Savanna",
"build": false,
"ffa": false
},
"kit": {
"name": "nodebuff",
"icon": {
"type": 267,
"id": "iron_sword",
"amount": 1,
"durability": 0,
"enchantments": []
},
"best_of": 1,
"elo": false,
"combo": false,
"bedwars": false,
"parkour": false,
"only_bow": false,
"flags": {
"editable": true,
"build": false,
"chest_access": true,
"no_hunger": false,
"stick_spawn": false,
"horse": false
}
},
"mode": "DUEL",
"winners": {
"1": {
"uuid": "c4fa95bf-e82c-475d-8f07-91f152ebb48d",
"username": "Toppe5",
"is_winner": true,
"dead": false,
"health": 11.7839994430542,
"food": 20,
"old_elo": 0,
"new_elo": 0,
"statistics": null
}
},
"losers": [
{
"uuid": "1bb171a6-363c-4ae2-a43e-a4a544f8b3e9",
"username": "antton21",
"is_winner": false,
"dead": true,
"health": 0,
"food": 20,
"old_elo": 0,
"new_elo": 0,
"statistics": null
}
],
"started_at": "2019-11-08T12:50:08.680000Z",
"ended_at": "2019-11-08T12:51:19.543000Z"
},
...
]
}
GET /api/v1/fights/{id}
โ
Get a specific fight, this endpoint allows includes.
Example Response (GET /api/v1/fights/{id}?includes=inventories
):
{
"id": 1,
"arena": {
"name": "ยง7Skywars",
"build": false,
"ffa": false
},
"kit": {
"name": "bedwars",
"icon": {
"type": 355,
"id": "bed",
"amount": 1,
"durability": 0,
"enchantments": []
},
"best_of": 1,
"elo": false,
"combo": false,
"bedwars": true,
"parkour": false,
"only_bow": false,
"flags": {
"editable": true,
"build": true,
"chest_access": false,
"no_hunger": false,
"stick_spawn": true,
"horse": false
}
},
"mode": "DUEL",
"winners": {
"1": {
"uuid": "c4fa95bf-e82c-475d-8f07-91f152ebb48d",
"username": "Toppe5",
"is_winner": true,
"dead": false,
"health": 20,
"food": 20,
"old_elo": 0,
"new_elo": 0,
"statistics": null,
"inventory": {
"helmet": {
"type": 0,
"amount": 1,
"durability": 0
},
"chestplate": {
"type": 0,
"amount": 1,
"durability": 0
},
"leggings": {
"type": 0,
"amount": 1,
"durability": 0
},
"boots": {
"type": 0,
"amount": 1,
"durability": 0
},
"items": [
null,
null,
null,
null,
null,
null,
null,
null,
{
"type": 403,
"id": "enchanted_book",
"amount": 1,
"durability": 0,
"enchantments": []
},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"potions": {
"left": 0,
"crafted": 0
}
}
}
},
"losers": [
{
"uuid": "b9c59fd6-5ec9-4f9e-bddb-e6b8e3a0b77d",
"username": "Whiizyyy",
"is_winner": false,
"dead": false,
"health": 20,
"food": 20,
"old_elo": 0,
"new_elo": 0,
"statistics": null,
"inventory": {
"helmet": {
"type": 306,
"id": "iron_helmet",
"amount": 1,
"durability": 0,
"enchantments": []
},
"chestplate": {
"type": 307,
"id": "iron_chestplate",
"amount": 1,
"durability": 0,
"enchantments": []
},
"leggings": {
"type": 308,
"id": "iron_leggings",
"amount": 1,
"durability": 0,
"enchantments": []
},
"boots": {
"type": 309,
"id": "iron_boots",
"amount": 1,
"durability": 0,
"enchantments": []
},
"items": [
{
"type": 268,
"id": "wooden_sword",
"amount": 1,
"durability": 0,
"enchantments": []
},
{
"type": 261,
"id": "bow",
"amount": 1,
"durability": 0,
"enchantments": []
},
{
"type": 274,
"id": "stone_pickaxe",
"amount": 1,
"durability": 1,
"enchantments": [
{
"type": 32,
"id": "DIG_SPEED",
"level": 1
}
]
},
{
"type": 4,
"id": "cobblestone",
"amount": 27,
"durability": 0,
"enchantments": []
},
{
"type": 30,
"id": "web",
"amount": 4,
"durability": 0,
"enchantments": []
},
{
"type": 332,
"id": "snowball",
"amount": 4,
"durability": 0,
"enchantments": []
},
{
"type": 326,
"id": "water_bucket",
"amount": 1,
"durability": 0,
"enchantments": []
},
{
"type": 322,
"id": "golden_apple",
"amount": 2,
"durability": 0,
"enchantments": []
},
{
"type": 364,
"id": "cooked_beef",
"amount": 4,
"durability": 0,
"enchantments": []
},
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
{
"type": 262,
"id": "arrow",
"amount": 6,
"durability": 0,
"enchantments": []
}
],
"potions": {
"left": 0,
"crafted": 0
}
}
}
],
"started_at": "2019-11-10T19:19:36.419000Z",
"ended_at": "2019-11-10T19:21:43.269000Z"
}
GET /api/v1/player/{username|uuid}/fights
โ
Gets all fights for the player given the DataTables parameters.
Example Response:
{
"draw": 0,
"recordsTotal": 83,
"recordsFiltered": 83,
"data": [
{
"id": 4900,
"arena": {
"name": "ยง7Savanna",
"build": false,
"ffa": false
},
"kit": {
"name": "nodebuff",
"icon": {
"type": 267,
"id": "iron_sword",
"amount": 1,
"durability": 0,
"enchantments": []
},
"best_of": 1,
"elo": false,
"combo": false,
"bedwars": false,
"parkour": false,
"only_bow": false,
"flags": {
"editable": true,
"build": false,
"chest_access": true,
"no_hunger": false,
"stick_spawn": false,
"horse": false
}
},
"mode": "DUEL",
"winners": {
"1": {
"uuid": "c4fa95bf-e82c-475d-8f07-91f152ebb48d",
"username": "Toppe5",
"is_winner": true,
"dead": false,
"health": 11.7839994430542,
"food": 20,
"old_elo": 0,
"new_elo": 0,
"statistics": null
}
},
"losers": [
{
"uuid": "1bb171a6-363c-4ae2-a43e-a4a544f8b3e9",
"username": "antton21",
"is_winner": false,
"dead": true,
"health": 0,
"food": 20,
"old_elo": 0,
"new_elo": 0,
"statistics": null
}
],
"started_at": "2019-11-08T12:50:08.680000Z",
"ended_at": "2019-11-08T12:51:19.543000Z"
},
...
]
}