{
  "openapi": "3.0.1",
  "info": {
    "title": "Marvel Rivals Stats Scraper",
    "description": "Scrape Marvel Rivals hero tier lists, top-900 leaderboards, community ban rates, live player profiles and One-Above-All stats from rivalsdata.com. Cloudflare is bypassed with browser TLS impersonation, so no proxies or CAPTCHAs are needed.",
    "version": "1.0",
    "x-build-id": "ntMVwoS3JgaqdKMrd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~marvel-rivals-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-marvel-rivals-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/epicscrapers~marvel-rivals-api/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-marvel-rivals-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/epicscrapers~marvel-rivals-api/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-marvel-rivals-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Scrape mode",
            "enum": [
              "player",
              "tierlist",
              "leaderboard",
              "community_bans",
              "one_above_all",
              "all"
            ],
            "type": "string",
            "description": "Leaderboard: ranked players. Player: one profile by username or UID. Tier list: hero performance. Community bans: hero ban behavior. One Above All: cross-season elite players. All data: every stats mode plus optional profiles.",
            "default": "leaderboard"
          },
          "username": {
            "title": "Player username or UID",
            "type": "string",
            "description": "Used only in Player profile mode. Enter the exact username or a numeric player UID. Username matching ignores capitalization. A UID avoids the search request and is more reliable."
          },
          "platform": {
            "title": "Platform",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Used by tier list, leaderboard, community bans, One Above All, and All data modes. Player profiles contain their own login platform.",
            "default": 1
          },
          "season": {
            "title": "Leaderboard season",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "Used only by Leaderboard and All data modes.",
            "default": 20
          },
          "leaderboardLimit": {
            "title": "Maximum leaderboard players",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Used only by Leaderboard and All data modes. The source currently exposes up to 1,000 ranked players.",
            "default": 100
          },
          "rank": {
            "title": "Tier-list rank bracket",
            "enum": [
              "grandmaster_plus",
              "diamond_plus",
              "all"
            ],
            "type": "string",
            "description": "Used only by Hero tier list and All data modes.",
            "default": "grandmaster_plus"
          },
          "oneAboveAllLimit": {
            "title": "Maximum One Above All players",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Used only by One Above All and All data modes. Limits dataset rows; the raw source response remains available in the key-value store.",
            "default": 1000
          },
          "scrapeProfiles": {
            "title": "Fetch live profiles for leaderboard players",
            "type": "boolean",
            "description": "Used only in All data mode. This adds one slower, billable request for each selected top player.",
            "default": false
          },
          "profileCount": {
            "title": "Maximum live profiles",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Used only when live profiles are enabled in All data mode. This value cannot exceed Maximum leaderboard players.",
            "default": 25
          },
          "requestDelayMillis": {
            "title": "Delay between profile requests (milliseconds)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Politeness delay used between live profile requests in All data mode.",
            "default": 400
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time for each source API request.",
            "default": 30
          },
          "maxRequestAttempts": {
            "title": "Maximum request attempts",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Total attempts for temporary network, rate-limit, server, or Cloudflare errors. Retries use exponential backoff.",
            "default": 4
          },
          "continueOnError": {
            "title": "Continue All data runs after an error",
            "type": "boolean",
            "description": "Used only in All data mode. Successful sources are kept when another source fails. Error details are written to the OUTPUT record.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}