Legends

get
/legends/ranking-thresholds
Authorizations
AuthorizationstringRequired

in header (authorization: bearer [token])

Responses
get
/legends/ranking-thresholds
GET /v1/legends/ranking-thresholds HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "live": {
    "timestamp": "text",
    "thresholds": [
      {
        "rank": 1,
        "minTrophies": 1
      }
    ]
  },
  "eod": {
    "timestamp": "text",
    "thresholds": [
      {
        "rank": 1,
        "minTrophies": 1
      }
    ]
  },
  "history": [
    {
      "timestamp": "text",
      "thresholds": [
        {
          "rank": 1,
          "minTrophies": 1
        }
      ]
    }
  ]
}
post
/legends/leaderboard/query
Authorizations
AuthorizationstringRequired

in header (authorization: bearer [token])

Body
playerTagsstring[] · max: 100RequiredExample: ["#2PP"]
minRanknumberRequiredExample: 1
maxRanknumberRequiredExample: 100
Responses
201Success
application/json
post
/legends/leaderboard/query
POST /v1/legends/leaderboard/query HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49

{
  "playerTags": [
    "#2PP"
  ],
  "minRank": 1,
  "maxRank": 100
}
{
  "items": [
    {
      "tag": "text",
      "name": "text",
      "rank": 1,
      "trophies": 1
    }
  ]
}
post
/legends/attacks/query
Authorizations
AuthorizationstringRequired

in header (authorization: bearer [token])

Body
playerTagsstring[] · min: 1 · max: 100RequiredExample: ["#2PP"]
Responses
post
/legends/attacks/query
POST /v1/legends/attacks/query HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "playerTags": [
    "#2PP"
  ]
}
{
  "items": [
    {
      "tag": "text",
      "name": "text",
      "seasonId": "text",
      "trophies": 1,
      "logs": [
        {
          "timestamp": 1,
          "start": 1,
          "end": 1,
          "diff": 1,
          "type": "text"
        }
      ]
    }
  ]
}
get
/legends/{playerTag}/attacks
Authorizations
AuthorizationstringRequired

in header (authorization: bearer [token])

Path parameters
playerTagstringRequired
Responses
get
/legends/{playerTag}/attacks
GET /v1/legends/{playerTag}/attacks HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "tag": "text",
  "name": "text",
  "seasonId": "text",
  "trophies": 1,
  "logs": [
    {
      "timestamp": 1,
      "start": 1,
      "end": 1,
      "diff": 1,
      "type": "text"
    }
  ]
}

Last updated

Was this helpful?