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

Path Params

Query Params

Header Params

Responses

🟢200OK
application/json
Successful response with the hero leaderboard data
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
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"
        }
    ]
}
Modified at 2025-07-23 14:35:31
Previous
Hero stats
Next
List costumes
Built with