MarvelRivalsAPI.com
  1. Heroes
MarvelRivalsAPI.com
  • Introduction
  • Get Started
    • Authentication
    • Rate Limits
    • Errors
      • Status Codes
    • SDKs & Extentions
      • Community Libraries
  • Endpoints
    • Achievements
      • List achievements
      • Search achievement
    • Patch Notes
      • List balances
      • Search balance
      • List dev diaries
      • Search dev diary
      • List patch notes
      • Search patch note
      • List game versions
    • Battle Pass
      • Battlepass
    • Heroes
      • List Heroes
        GET
      • Search hero
        GET
      • Hero stats
        GET
      • Hero leaderboard
        GET
      • List costumes
        GET
      • Search hero costume
        GET
    • Items
      • List items
      • Search item
    • Maps
      • List maps
      • Search map
    • Player Match History
      • Search match
      • Player match history
      • Player match history v2
    • Player Stats
      • Search player
      • Player stats
      • Player stats v2
      • Update player
      • Player Leaderboard
  1. Heroes

Hero leaderboard

GET
/api/v1/heroes/leaderboard/{query}
Heroes
Maintainer:Alastor
This endpoint retrieves the leaderboard for a specific hero based on their name or ID, and allows filtering the leaderboard by platform (PC, PS, Xbox). The leaderboard data is fetched from an external API and processed for easy consumption.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://marvelrivalsapi.com/api/v1/heroes/leaderboard/?platform' \
--header 'x-api-key;'
Response Response Example
{
    "hero_name": "Ironman",
    "platform": "pc",
    "leaderboard": [
        {
            "rank": 1,
            "player_name": "PlayerOne",
            "score": 10000,
            "platform": "pc"
        }
    ]
}

Request

Path Params
query
string 
required
The name or ID of the hero to fetch the leaderboard for.
Example:
ironman
Query Params
platform
enum<string> 
optional
The platform for the leaderboard. Options are 'pc', 'ps', 'xbox'. If not provided, defaults to 'pc'.
Allowed values:
pcpsxbox
Example:
ps
Header Params
x-api-key
string 
required
The API key for authorization. It is necessary to provide a valid API key to access the data.
Example:
your-api-key-here

Responses

🟢200OK
application/json
Successful response with the hero leaderboard data
Body
hero_name
string 
optional
The name of the hero.
Example:
Ironman
platform
string 
optional
The platform for which the leaderboard is fetched.
Example:
pc
leaderboard
array [object {4}] 
optional
rank
integer 
optional
The rank of the player on the leaderboard.
Example:
1
player_name
string 
optional
The name of the player.
Example:
PlayerOne
score
integer 
optional
The player's score.
Example:
10000
platform
string 
optional
The platform of the player.
Example:
pc
🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Modified at 2025-07-23 14:35:31
Previous
Hero stats
Next
List costumes
Built with