GET Hero List
Get hero list. it shows hero id and hero name.
Endpoint
GET /api/hero-list/
Example Requests
GET /api/hero-list/
This request fetches hero list.
Example Usage
Python requests
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-list/"
data = fetch_api(api_url)
print(json.dumps(data, indent=4) if data else "No data fetched.")
Direct API Access
Click this to Access the API directly
Result
{
"127": "Lukas",
"126": "Suyou",
"125": "Zhuxin",
...
"3": "Saber",
"2": "Balmond",
"1": "Miya"
}