GET List Heroes
/web/mlbb/heroes
Retrieve a paginated list of all heroes with basic information. Supports query parameters for pagination (size, index), sorting (order), and localization (lang).
Query parameters:
- size: Number of items per page (minimum: 1).
- index: Page index (starting from 1).
- order: Sort order for results. Allowed values:
asc,desc. - lang: Language code for localized content (default:
en).
The response includes hero records:
- records: Array of hero entries, each containing:
- data:
- hero:
- data:
- head: Hero head image URL.
- name: Hero name.
- smallmap: Hero smallmap image URL.
- data:
- hero_id: Unique hero identifier.
- relation:
- assist:
- target_hero_id: Array of hero IDs assisted.
- strong:
- target_hero_id: Array of hero IDs this hero is strong against.
- weak:
- target_hero_id: Array of hero IDs this hero is weak against.
- assist:
- hero:
- data:
This endpoint is useful for:
- Displaying hero collections.
- Browsing hero details.
- Analyzing hero relationships (assist, strong, weak).
{
"code": 0,
"message": "OK",
"data": {
"records": [
{
"data": {
"hero": {
"data": {
"head": "https://akmweb.youngjoygame.com/web/svnres/img/mlbb/homepage_2_1_42/100_df7603c292198bf4aa7b551d401ea5c1.png",
"name": "Marcel",
"smallmap": "https://akmweb.youngjoygame.com/web/svnres/img/mlbb/homepage_2_1_42/100_82e5c2646276cd907f69cc800057c737.png"
}
},
"hero_id": 132,
"relation": {
"assist": {
"target_hero_id": [
60,
121
]
},
"strong": {
"target_hero_id": [
18,
38
]
},
"weak": {
"target_hero_id": [
84,
83
]
}
}
}
}
],
"total": 132
}
}