https://mlbb-api.aimar.id/v1
All endpoints except /health-check require API key authentication. Include the API key in the Authorization header of your request.
There are two types of API keys available:
- Free: No IP restrictions
- Specific User: IP-restricted
- 401 Unauthorized: Returned when the API key is missing, invalid, or the request is from an unauthorized IP (for IP-restricted keys).
- 404 Not Found: Returned when the requested resource is not found.
Check the health status of the API.
- URL:
/health-check - Method:
GET - Auth required: No
- Code: 200 OK
- Content:
{ "success": true, "message": "Healthy!" }
Retrieve player information based on game ID and server ID.
- URL:
/get-player-data - Method:
GET - Auth required: Yes
| Name | Type | Required | Description |
|---|---|---|---|
| game_id | string | Yes | Player's game ID |
| server_id | string | Yes | Player's server ID |
- Code: 200 OK
- Content:
{ "success": true, "message": "Player data fetched!", "data": { // Player data object } }
- Code: 400 Bad Request
- Content:
OR
{ "success": false, "message": "game_id is required!" }{ "success": false, "message": "server_id is required!" } - Code: 404 Not Found
- Content:
{ "success": false, "message": "Player not found!" }
Retrieve recent battle IDs for a player.
- URL:
/get-battle-ids - Method:
GET - Auth required: Yes
| Name | Type | Required | Description |
|---|---|---|---|
| game_id | string | Yes | Player's game ID |
| server_id | string | Yes | Player's server ID |
- Code: 200 OK
- Content:
{ "success": true, "message": "Battle Info fetched!", "data": { // Battle IDs data } }
- Code: 400 Bad Request
- Content:
OR
{ "success": false, "message": "game_id is required!" }{ "success": false, "message": "server_id is required!" } - Code: 404 Not Found
- Content:
{ "success": false, "message": "Player not found!" }
Retrieve data for a specific squad.
- URL:
/get-squad-data - Method:
GET - Auth required: Yes
| Name | Type | Required | Description |
|---|---|---|---|
| squad_id | string | Yes | Squad ID |
- Code: 200 OK
- Content:
{ "success": true, "message": "Squad data fetched!", "data": { // Squad data object } }
- Code: 400 Bad Request
- Content:
{ "success": false, "message": "squad_id is required!" } - Code: 404 Not Found
- Content:
{ "success": false, "message": "Squad not found!" }
I am selling full source to scrap MLBB data, from creating account (and using it for authenticating in the source), viewing profiles, finding players by game id, and many more. Code is purely made in Python and no need interaction with the game application itself. Telegram: @coldclear to purchase the source.