api-mobilelegends
api-mobilelegends copied to clipboard
API for Mobile Legends: Bang Bang (MLBB) and MPL ID. Including docs, stats, heroes, and stuff.
MLBB Hero Analytics API and Website
🌟 Support My Work
If my projects sparked value—or your wallet’s begging for a diet—drop your funds here. I catch, I thank, I build.
No gimmicks—just real support and real appreciation.
Supporters get a name drop on GitHub and a louder voice in shaping future features.
Description
This project provides an API for fetching various analytics and data related to heroes in the game Mobile Legends: Bang Bang (MLBB). The API includes endpoints for hero rankings, positions, details, skill combinations, ratings, relationships, counter information, and compatibility.
Summary of Base URL, API Docs, APIs, and Website
https://mlbb-stats.ridwaanhall.com/ # base url
https://mlbb-stats-docs.ridwaanhall.com/ # documentations easy-to-understand
https://mlbb-stats.ridwaanhall.com/api/ # APIs
https://mlbb-stats.ridwaanhall.com/api/mplid/ # MPL ID APIs
https://mlbb-stats.ridwaanhall.com/hero-rank/ # for website demo of APIs
Example API
GET Hero Detail
import requests
import json
def fetch_api(api_url):
try:
response = requests.get(api_url)
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as e:
print(f"Error: {e}")
return None
api_url = "https://mlbb-stats.ridwaanhall.com/api/hero-detail/129" # change 129 with hero_id
data = fetch_api(api_url)
print(json.dumps(data, indent=4) if data else "No data fetched.")
You can find more in mlbb-stats-docs.ridwaanhall.com
Discussion
If you have any questions or would like to discuss this project, please join the conversation in our GitHub Discussions. We value your feedback and are here to help!
Interfaces
API Docs with Explanations and Example Usage
https://mlbb-stats-docs.ridwaanhall.com/

Testing an API Test the API

Demo Website View Hero Rank Demo Website

Available Endpoints
Visit this site to view mlbb-stats.ridwaanhall.com
Usage
Use the provided endpoints to fetch various analytics and data related to heroes in MLBB. Refer to the Endpoints section for detailed information on each endpoint and how to use them.
License
This project follows the BSD 3-Clause License. Please refer to LICENSE for details.
Attribution
Special thanks to Moonton for developing Mobile Legends: Bang Bang. All rights to the game and its assets belong to Moonton.
Source
For more information about Mobile Legends: Bang Bang, visit the official website: Mobile Legends.
Disclaimer
This project is an independent redistribution of the Mobile Legends: Bang Bang API developed by Moonton. The purpose of this project is to make accessing the API easier through custom code and implementation.
By using this code, you must adhere to the following conditions:
- License Compliance – Users must follow the BSD 3-Clause License terms, including proper attribution and distribution policies. See LICENSE for details.
- Attribution Requirement – Users must mention both:
- Moonton as the developer and publisher of Mobile Legends: Bang Bang.
- ridwaanhall as the creator of this MLBB Stats.
- Visibility of Attribution – The attribution to Moonton and ridwaanhall must be clearly visible in any public-facing project or website that utilizes this API.
- Independent Project – This project is not affiliated, endorsed, or officially supported by Moonton. All rights to Mobile Legends: Bang Bang and its assets belong to Moonton.
Failure to comply with these terms may result in restriction from using this code.
For more information, please visit Mobile Legends and ridwaanhall’s GitHub.