Skip to content

Instantly share code, notes, and snippets.

@AmokDev
Last active December 17, 2023 13:50
Show Gist options
  • Select an option

  • Save AmokDev/6d00a4770ba442950274d5a4970447a7 to your computer and use it in GitHub Desktop.

Select an option

Save AmokDev/6d00a4770ba442950274d5a4970447a7 to your computer and use it in GitHub Desktop.
DummyAPI Docs

Requests Exaples

Player Profile

  • GET - https://api.amk.lol/dummybrawl/v1/profile/?api_token={token}&id={id}

Types and Explanations

  • api-token: string # Your access token from @dummyBrawlBot (send /api command)
  • id: int # User ID from Dummy Brawl (use /tag2id command in bot if you don't know your ID)

Error Codes

  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Access Denied | Auth Token Is Banned
  • 404 - Player Not Found

Returning Body

{
    "id": 1,
    "name": "AmokDev",
    "vip_time": "2023.12.26 06:46:28",
    "ban_time": "0",
    "trophies": 9339,
    "hight_trophies": 9339,
    "brawler": 21,
    "name_color": 0,
    "profile_icon": 0,
    "gold": 999,
    "gems": 999,
    "tickets": 999,
    "starpoints": 999,
    "unlocked_brawlers": {"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1},
    "brawlers_trophies": {"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0},
    "brawlers_highest_trophies": {"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0}
}

Player Leaderboard

  • GET - https://api.amk.lol/dummybrawl/v1/leaderboard/?api_token={token}&count={count}

Types and Explanations

  • api-token: string # Your access token from @dummyBrawlBot (send /api command)
  • count: int (default=5, max=50) # Number of objects from leader lists

Error Codes

  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Access Denied | Auth Token Is Banned
  • 404 - Player Not Found

Returning Body

{
  "leaders": [
    {
      "index": 1,
      "name": "AmokDev",
      "trophies": 9339
    },
    {
      "index": 2,
      "name": "commonuserlol",
      "trophies": 1337
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment