{
  "openapi": "3.0.1",
  "info": {
    "title": "Esports Earnings Prize Money & Tournament Rankings",
    "description": "Pull player, team, game and tournament prize-money rankings from EsportsEarnings.com, with per-game and per-country filters and career-earnings totals in USD.",
    "version": "1.0",
    "x-build-id": "3JoviiLtsUgJj1fRI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~esports-earnings-prize-money-and-tournament/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-esports-earnings-prize-money-and-tournament",
        "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/xyrelith-data~esports-earnings-prize-money-and-tournament/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-esports-earnings-prize-money-and-tournament",
        "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/xyrelith-data~esports-earnings-prize-money-and-tournament/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-esports-earnings-prize-money-and-tournament",
        "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": "Mode",
            "enum": [
              "topPlayers",
              "topTeams",
              "topGames",
              "tournaments",
              "topPlayersByCountry",
              "topCountries",
              "playerProfile",
              "teamProfile",
              "tournamentProfile"
            ],
            "type": "string",
            "description": "What to fetch from Esports Earnings. Profile modes need the matching `playerIds`, `teamIds`, or `tournamentIds` list.",
            "default": "topPlayers"
          },
          "game": {
            "title": "Game (topPlayers, topTeams, tournaments)",
            "enum": [
              "",
              "231-dota-2",
              "164-league-of-legends",
              "371-heroes-of-the-storm",
              "351-smite",
              "531-mobile-legends-bang-bang",
              "245-counter-strike-global-offensive",
              "839-counter-strike-2",
              "426-overwatch",
              "792-overwatch-2",
              "439-rainbow-six-siege",
              "646-valorant",
              "335-team-fortress-2",
              "648-call-of-duty-warzone",
              "639-call-of-duty-mobile",
              "534-fortnite",
              "566-apex-legends",
              "598-free-fire",
              "151-starcraft-ii",
              "586-brawl-stars",
              "464-clash-royale",
              "507-clash-of-clans",
              "409-rocket-league",
              "558-super-smash-bros-ultimate",
              "434-street-fighter-v",
              "406-tekken-7",
              "328-hearthstone",
              "165-world-of-warcraft",
              "525-osu"
            ],
            "type": "string",
            "description": "Filter to a specific game. Leave blank on topPlayers/topTeams for cross-game rankings and on tournaments for the overall largest-prize-pools list. Use `gameCustom` for games not in this list.",
            "default": ""
          },
          "country": {
            "title": "Country (mode=topPlayersByCountry)",
            "enum": [
              "",
              "cn",
              "us",
              "kr",
              "ru",
              "br",
              "dk",
              "fr",
              "se",
              "de",
              "ca",
              "gb",
              "jp",
              "ua",
              "au",
              "fi",
              "pl",
              "th",
              "ph",
              "my",
              "tw",
              "id",
              "vn",
              "nl",
              "es",
              "sa",
              "tr",
              "no",
              "il",
              "ar",
              "mx",
              "bg",
              "jo",
              "pe",
              "it",
              "ee",
              "in",
              "sg",
              "pk",
              "cz",
              "kz",
              "mn",
              "at",
              "sk",
              "ro",
              "be",
              "pt",
              "lb",
              "by",
              "hk",
              "mk",
              "rs",
              "cl",
              "ba",
              "lv",
              "ch",
              "si",
              "eg",
              "gr",
              "hu",
              "nz",
              "lt",
              "za",
              "am",
              "ma",
              "hr",
              "mo",
              "md",
              "np",
              "mm",
              "kg",
              "iq",
              "ie",
              "co",
              "uz",
              "do",
              "uy",
              "pr",
              "ae",
              "bo",
              "ir",
              "kh",
              "dz",
              "kw",
              "cu",
              "ge",
              "az",
              "gt",
              "xk",
              "sy",
              "bh",
              "me",
              "ve",
              "tn",
              "la",
              "ec",
              "bd",
              "to",
              "is",
              "ni",
              "cr",
              "ps",
              "mt",
              "sn",
              "pa",
              "al",
              "lu",
              "gi",
              "qa",
              "om",
              "bn",
              "hn",
              "ye",
              "af",
              "py",
              "ly",
              "re",
              "sv",
              "lk",
              "ng",
              "cm",
              "jm",
              "um",
              "et",
              "mu",
              "tt",
              "pf",
              "gl",
              "mc",
              "mv",
              "ci",
              "gh",
              "fo",
              "na",
              "gp",
              "gy",
              "tm",
              "sd",
              "fj",
              "an",
              "sr",
              "nc",
              "im",
              "je",
              "tz",
              "mg",
              "zw",
              "ax",
              "gg",
              "tj",
              "cy",
              "ke",
              "mz",
              "ht",
              "as",
              "zm",
              "ao",
              "gu",
              "tg",
              "ad",
              "mr",
              "bm",
              "wf",
              "ga",
              "aw",
              "tv",
              "bw",
              "mp",
              "ne",
              "bs",
              "bz",
              "dm",
              "ug",
              "so",
              "vi",
              "pw",
              "nu",
              "li",
              "mf",
              "ag",
              "pg",
              "kn",
              "bl"
            ],
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code. Returns that country's top-earning players, cross-game (esportsearnings.com's per-country breakdown page).",
            "default": ""
          },
          "gameCustom": {
            "title": "Custom game ID-slug override",
            "type": "string",
            "description": "Any esportsearnings.com game in `{numericId}-{slug}` form (e.g. `654-arena-of-valor`), for games not in the `game` dropdown. Overrides `game` when set. Find the ID-slug in the game's esportsearnings.com URL."
          },
          "year": {
            "title": "Year (history rankings)",
            "minimum": 1998,
            "maximum": 2100,
            "type": "integer",
            "description": "Rank players/teams/games/countries or list tournaments for one year (1998 to today). Applies to topPlayers, topTeams, topGames, topCountries and tournaments. Ignored when a game filter is also set on topPlayers/topTeams/tournaments."
          },
          "month": {
            "title": "Month (topPlayers with year)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Optional month (1-12) for mode=topPlayers when `year` is set. Returns that month's player earnings ranking."
          },
          "playerIds": {
            "title": "Player IDs, URLs, or ID-slug (playerProfile)",
            "type": "array",
            "description": "One or more players. Each entry can be a numeric player ID (e.g. 3304), an id-slug (e.g. 3304-n0tail-johan-sundstein), an esportsearnings.com player path, or a full URL.",
            "items": {
              "type": "string"
            }
          },
          "teamIds": {
            "title": "Team IDs, URLs, or ID-slug (teamProfile)",
            "type": "array",
            "description": "One or more teams. Each entry can be a numeric team ID (e.g. 102), an id-slug (e.g. 102-team-liquid), an esportsearnings.com team path, or a full URL.",
            "items": {
              "type": "string"
            }
          },
          "tournamentIds": {
            "title": "Tournament IDs, URLs, or ID-slug (tournamentProfile)",
            "type": "array",
            "description": "One or more tournaments. Each entry can be a numeric tournament ID (e.g. 49174), an id-slug, an esportsearnings.com tournament path, or a full URL.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of records to return.",
            "default": 30
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}