BlueDragon Public API Reference

Posted by: FluxCreated: Feb 18, 2023Last Modified: Feb 26, 2023

Usage

Base URL

https://bluedragonmc.com/api/

Requests

All requests should be GET requests. Any other request methods may not be supported.

Authentication

The API currently does not rely on any authentication. If we see an unsustainable number of requests, we may add an API key system for rate limiting.

Player Information

Path: /player

Sample URL:

https://bluedragonmc.com/api/player?username=wsad_

Query Parameters

usernameThe username of the playerYes

Sample Response

{
  "username": "wsad_",
  "uuid": "110429e8-197f-4446-8bec-5d66f17be4d5",
  "stats": {
    "game_infinijump_highest_score": 227,
    "game_wackymaze_wins": 82,
    "game_skywars_wins": 4,
    "lobby_parkour_cave_best_time": 20635,
    ...
  },
  "lastLogin": 1676755435986,
  "xp": 22183,
  "cosmeticCount": 39,
  "level": 18.24107289740401,
  "coins": 22133,
  "meta": {
    "prefix": "<dark_gray>[<#B72A2A>Owner<dark_gray>] ",
    "primaryGroup": "owner",
    "rankcolor": "#B72A2A"
  }
}

Notes

Leaderboard Information

Path: /leaderboard

Sample URL:

https://bluedragonmc.com/api/leaderboard?statistic=game_wackymaze_wins&sort=-1

Query Parameters

statisticThe name of the statistic to rank.Yes
sortThe direction that the data is sorted. Must be either -1 (descending) or 1 (ascending).No

Sample Response

{
  "statistic": "game_wackymaze_wins",
  "sort": -1,
  "leaderboard": [
    {
      "uuid": "a0048143-460f-417e-9119-f30eb9674a7a",
      "username": "ex4",
      "value": 116
    },
    {
      "uuid": "110429e8-197f-4446-8bec-5d66f17be4d5",
      "username": "wsad_",
      "value": 82
    },
    ...
  ]
}

Notes

Leaderboard Position Information

Path: /leaderboard/position

Sample URL:

https://bluedragonmc.com/api/leaderboard/position?username=wsad_&statistic=game_wackymaze_wins

Query Parameters

usernameThe name of the player. Case-insensitive.Yes
statisticThe name of the statistic to rank.Yes
sortThe direction that the data is sorted. Must be either -1 (descending) or 1 (ascending).No

Sample Response

{
  "uuid": "110429e8-197f-4446-8bec-5d66f17be4d5",
  "username": "wsad_",
  "statistic": "game_wackymaze_wins",
  "position": 2
}

Notes

List of Statistic Names

PaintbrawlAllgame_paintbrawl_winsInteger
PaintbrawlAllgame_paintbrawl_killsInteger
PaintbrawlAllgame_paintbrawl_powerups_claimedInteger
PaintbrawlAllgame_paintbrawl_total_pointsInteger
PaintbrawlAllgame_paintbrawl_kills_snowball_sniper_rifleInteger
PaintbrawlAllgame_paintbrawl_kills_snowball_machine_gunInteger
PaintbrawlAllgame_paintbrawl_kills_snowball_paintball_gunInteger
PaintbrawlAllgame_paintbrawl_kills_snowball_paintbrushInteger
PaintbrawlAllgame_paintbrawl_kills_snowball_shotgunInteger
PaintbrawlAllgame_paintbrawl_blocks_vacuumedInteger
WackyMazeAllgame_wackymaze_winsInteger
WackyMazeAllgame_wackymaze_whacksInteger
SkyWarsAllgame_skywars_winsInteger
SkyWarsAllgame_skywars_killsInteger
SkyWarsAllgame_skywars_deathsInteger
SkyfallAllgame_skyfall_winsInteger
SkyfallAllgame_skyfall_killsInteger
SkyfallAllgame_skyfall_deathsInteger
BedWarsAllgame_bedwars_winsInteger
BedWarsAllgame_bedwars_killsInteger
BedWarsAllgame_bedwars_deathsInteger
BedWarsAllgame_bedwars_beds_brokenInteger
InfinijumpVersusgame_infinijump_wins_versusInteger
InfinijumpVersusgame_infinijump_highest_score_versusInteger
InfinijumpVersusgame_infinijump_total_points_versusInteger
InfinijumpRacegame_infinijump_wins_raceInteger
InfinijumpRacegame_infinijump_total_points_raceInteger
InfinijumpSologame_infinijump_highest_score_soloInteger
InfinijumpSologame_infinijump_total_points_soloInteger
InfinijumpAllgame_infinijump_highest_scoreInteger
InfinijumpAllgame_infinijump_total_pointsInteger
FastFallAllgame_fastfall_best_timeDuration (milliseconds)
FastFallAllgame_fastfall_winsInteger
PvPMasterAllgame_pvpmaster_winsInteger
PvPMasterAllgame_pvpmaster_killsInteger
PvPMasterAllgame_pvpmaster_deathsInteger
Lobby ParkourAlllobby_parkour_world_tour_best_timeDuration (milliseconds)
Lobby ParkourAlllobby_parkour_cave_best_timeDuration (milliseconds)

Have an idea for a statistic we should track? Let us know in our Discord server.