get

Get Statistic

The `/v1/data` endpoint returns match played, hero owner, and top played heros in both classic and ranked matches.


Get Player Statistics

Request Headers

Content-Typerequiredapplication/json
AuthorizationrequiredBearer BEARER_TOKEN
Example Request with cUrl
curl "https://api.recrav.com/mlbbfyi/v1/data?accId=MLBB_ID?accId=MLBB_ID&cmp=5" \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer token"

Body Format

No Body Format.

Query Format

accIdstringrequiredID of Mobile Legends Account
cmpstringrequiredNumber of top match played want to request.
Example Query Format
?accId=MLBB_ID&cmp=5

Response

accIdstringResponse Message
heroOwnedarrayList of all heroes owned by the player.
matchPlayedarrayList of the top cmp heroes based on matches played.
updatedstringDate of last data updated.
Example Response
{
  "accId": "171689343",
  "heroOwned": {
    "total": 40,
    "data": [
      {
        "hero": "Layla",
        "id": 18
      },
      {
        "hero": "Zilong",
        "id": 16
      },
      {
        "hero": "Eudora",
        "id": 15
      },
      {
        "hero": "Tigreal",
        "id": 6
      },
      {
        "hero": "Saber",
        "id": 3
      },
      {
        "hero": "Hanabi",
        "id": 60
      },
      {
        "hero": "Dyrroth",
        "id": 85
      },
      {
        "hero": "Esmeralda",
        "id": 81
      },
      {
        "hero": "Alucard",
        "id": 7
      },
      {
        "hero": "Benedetta",
        "id": 97
      },
      {
        "hero": "Miya",
        "id": 1
      },
      {
        "hero": "Balmond",
        "id": 2
      },
      {
        "hero": "Nana",
        "id": 5
      },
      {
        "hero": "Selena",
        "id": 63
      },
      {
        "hero": "Brody",
        "id": 100
      },
      {
        "hero": "Franco",
        "id": 10
      },
      {
        "hero": "Jawhead",
        "id": 54
      },
      {
        "hero": "Clint",
        "id": 13
      },
      {
        "hero": "Sun",
        "id": 27
      },
      {
        "hero": "Beatrix",
        "id": 105
      },
      {
        "hero": "Rafaela",
        "id": 14
      },
      {
        "hero": "Akai",
        "id": 9
      },
      {
        "hero": "Wanwan",
        "id": 89
      },
      {
        "hero": "Ling",
        "id": 84
      },
      {
        "hero": "Gord",
        "id": 23
      },
      {
        "hero": "Lancelot",
        "id": 47
      },
      {
        "hero": "Silvanna",
        "id": 90
      },
      {
        "hero": "Paquito",
        "id": 103
      },
      {
        "hero": "Aamon",
        "id": 109
      },
      {
        "hero": "Valentina",
        "id": 110
      },
      {
        "hero": "Julian",
        "id": 116
      },
      {
        "hero": "Fredrinn",
        "id": 117
      },
      {
        "hero": "Angela",
        "id": 55
      },
      {
        "hero": "Kadita",
        "id": 75
      },
      {
        "hero": "Natan",
        "id": 107
      },
      {
        "hero": "Grock",
        "id": 44
      },
      {
        "hero": "Vale",
        "id": 66
      },
      {
        "hero": "Valir",
        "id": 57
      },
      {
        "hero": "Khufra",
        "id": 78
      },
      {
        "hero": "Ruby",
        "id": 29
      }
    ]
  },
  "matchPlayed": [
    {
      "mode": "Classic",
      "total": 474,
      "winrate": 0.6582278481012658,
      "quan": 6,
      "data": [
        {
          "id": "97",
          "total": 27,
          "win": 19,
          "name": "Benedetta"
        },
        {
          "id": "63",
          "total": 22,
          "win": 14,
          "name": "Selena"
        },
        {
          "id": "93",
          "total": 22,
          "win": 19,
          "name": "Atlas"
        },
        {
          "id": "10",
          "total": 20,
          "win": 11,
          "name": "Franco"
        },
        {
          "id": "105",
          "total": 16,
          "win": 10,
          "name": "Beatrix"
        },
        {
          "id": "78",
          "total": 13,
          "win": 10,
          "name": "Khufra"
        }
      ]
    },
    {
      "mode": "Ranked",
      "total": 302,
      "winrate": 0.5827814569536424,
      "quan": 6,
      "data": [
        {
          "id": "110",
          "total": 22,
          "win": 14,
          "name": "Valentina"
        },
        {
          "id": "117",
          "total": 18,
          "win": 15,
          "name": "Fredrinn"
        },
        {
          "id": "63",
          "total": 16,
          "win": 6,
          "name": "Selena"
        },
        {
          "id": "118",
          "total": 16,
          "win": 10,
          "name": "Joy"
        },
        {
          "id": "76",
          "total": 14,
          "win": 11,
          "name": "Faramis"
        },
        {
          "id": "97",
          "total": 13,
          "win": 8,
          "name": "Benedetta"
        }
      ]
    }
  ],
  "updated": "2023-08-02T04:03:53.905Z"
}
Raymond Tju