{
  "openapi": "3.1.0",
  "info": {
    "title": "ballchasing.com API",
    "version": "2026-11",
    "summary": "Upload, search and read Rocket League replays and replay groups.",
    "contact": {
      "name": "ballchasing.com",
      "url": "https://ballchasing.com"
    },
    "description": "This is the [ballchasing.com](https://ballchasing.com) API documentation.\n\n## Authentication\n\nAll API calls **must** be authenticated using an API token,\n[which can be retrieved/generated here](https://ballchasing.com/upload).\n\nTo authenticate an API call, pass the API token, as is, as the value of the `Authorization` header\n(there is **no** `Bearer` prefix):\n\n```http\nAuthorization: $token\n```\n\nFor example, using curl:\n\n```bash\ncurl 'https://ballchasing.com/api/' \\\n  -H \"Authorization: $token\"\n```\n\nThe upload endpoint also accepts a **group upload token** (it starts with `g/`): the uploaded replays then go\nto that group, owned by the group's owner. A group's owner gets its token from the group's page on the site, or\nwith [`GET`/`POST /groups/{id}/token`](#tag/groups/get-group-upload-token). The other endpoints only accept\nAPI keys.\n\nA missing key gets a `401` with `\"error\": \"missing API key\"`, an unknown one a `401` with\n`\"error\": \"invalid API key\"`.\n\n## Rate limiting\n\nMany of the APIs are rate limited to avoid abuse and buggy clients hogging all the server resources.\nThe limits depend on your [Patreon](https://www.patreon.com/ballchasing) tier:\n\n| Tier | Typical limits (most endpoints) |\n|------|---------------------------------|\n| Legend and GC patrons | 16 calls/second |\n| Champion patrons | 8 calls/second |\n| Diamond patrons | 4 calls/second, 2000 to 5000/hour |\n| Gold patrons | 2 calls/second, 1000 to 2000/hour |\n| All others | 2 calls/second, 500 to 1000/hour |\n| Discord moderators | 8 calls/second |\n| Organisation and bot accounts (approved by hand) | 16 calls/second |\n\nEach endpoint documents its exact limits in a **Rate limits** table (and, for tools, in the\n`x-rate-limits` extension of the operation in the [OpenAPI document](https://ballchasing.com/doc/api/openapi.json)). The limits are counted per\naccount (all its API keys together) and per endpoint. An account matching several rows gets the first one of\nthe endpoint's table among the patron tiers, Discord moderators and approved accounts (in this order: Legend,\nGC, Champion, Discord moderator, organisation, bot, Diamond, Gold).\n\nWhen you hit a rate limit, the server responds with a `429` status code, in which case your client\nshould cool down before retrying: the `Retry-After` header holds the number of seconds to wait (rounded down:\n`0` means retry within the second). The body is the usual error object, with `\"error\": \"Too many requests\"`.\n\nDownloading replay files has, in addition, a **daily limit on the files uploaded by other people**: see\n[Download a replay file](#tag/replays/download-replay-file).\n\n## Errors\n\nErrors are JSON objects with an `error` message, plus a random Rocket League quick chat (`chat`), and the\n`request_id` and `server` to quote when reporting a problem:\n\n```json\n{\n  \"error\": \"not found\",\n  \"chat\": {\"Poncho\": \"Whew.\", \"YOU\": \"Oops\"},\n  \"request_id\": \"5A56088B:A9C6_A2379E0D:01BB_6AFFDAAC_2F2FA0:1E0D5E\",\n  \"server\": \"hzprod-front-1\"\n}\n```\n\nA few answers are lighter: the `409` (duplicate) and `429` (upload quota) of the upload endpoint have no\n`request_id` nor `server`, and a request body over 32 KiB on the endpoints other than the upload is refused with\na `413` and the plain text body `request too large`.\n\nAn unknown path gets a `404` (`\"error\": \"not found\"`), a known path with another method a `405`\n(`\"error\": \"method not allowed\"`). Query parameters, path parameters and JSON strings must be valid UTF-8\nwithout NUL characters (`400` otherwise).\n"
  },
  "servers": [
    {
      "url": "https://ballchasing.com/api",
      "description": "Production"
    },
    {
      "url": "/api",
      "description": "Same origin (when the documentation is served by ballchasing.com)"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "ping",
      "x-displayName": "Ping",
      "description": "Check that your API key works and that the API is reachable."
    },
    {
      "name": "upload",
      "x-displayName": "Upload",
      "description": "Upload replay files.\n\nThe upload endpoint accepts both a personal API key and a **group upload token** (`g/...`).\n"
    },
    {
      "name": "replays",
      "x-displayName": "Replays",
      "description": "Search, read, update and delete replays, and download their original files.\n\n> **Warning**\n> The try-it console sends **real** requests with your key: `PATCH` and `DELETE` change or delete your\n> replays for good, and downloads of other people's files count toward your daily quota.\n"
    },
    {
      "name": "groups",
      "x-displayName": "Replay groups",
      "description": "Replay groups allow you to group multiple replays in a tree like structure, to organise them and to get\naccess to multi-game stats.\n\n> **Warning**\n> The try-it console sends **real** requests with your key: `PATCH` and `DELETE` change or delete your\n> groups for good, and `POST /groups/{id}/token` replaces the group's upload token.\n"
    },
    {
      "name": "misc",
      "x-displayName": "Misc",
      "description": "Reference data, such as the map codes."
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "ping",
        "tags": [
          "ping"
        ],
        "summary": "Ping",
        "description": "Use this API to:\n\n* check if your API key is correct\n* check if the ballchasing API is reachable\n* get the upload quota of your account\n* get how many original replay files of other accounts your account downloaded today, and its daily limit\n  (`quota.replay_file_downloads`), before starting a batch of downloads\n\n**Rate limits**: Not rate limited.\n",
        "x-rate-limits": {
          "note": "Not rate limited."
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "cURL",
            "source": "curl -v \\\n    -H \"Authorization: $token\" \\\n    'https://ballchasing.com/api/'\n"
          }
        ],
        "responses": {
          "200": {
            "description": "The API key is valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ping"
                },
                "example": {
                  "ball": "is life",
                  "boost": "over ball",
                  "chaser": true,
                  "chat": {
                    "Iceman": "No Problem.",
                    "YOU": "My Fault."
                  },
                  "name": "Can't Fly",
                  "steam_id": "76561198141161044",
                  "type": "gc",
                  "quota": {
                    "uploads_in_24h": {
                      "used": 2,
                      "max": 10
                    },
                    "uploads_in_7d": {
                      "used": 12,
                      "max": 50
                    },
                    "replay_file_downloads": {
                      "used": 37,
                      "max": 1000,
                      "resets_at": "2026-11-26T00:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v2/upload": {
      "post": {
        "operationId": "uploadReplay",
        "tags": [
          "upload"
        ],
        "summary": "Upload a replay",
        "description": "Upload a replay file to ballchasing.com, as a single part named `file` of a `multipart/form-data` body.\n\nReturns `201` on success (with the id of the created replay), or `409` for a duplicate replay (with the id of\nthe existing replay).\n\nWith a **group upload token** (`Authorization: g/...`), the replay goes to the token's group. The `409` for a\nreplay that the group's owner already has **outside** that group (and its sub-groups) has no `id` nor\n`location`: only `error` and `chat`. It still tells that the owner already has the file, which the uploader\nholds anyway (by design: storing a second copy or answering `201` with a made-up id would break\ndeduplication).\n\n> **Note**\n> The upload quota of your account (replays per day and per week) is in the response of [Ping](#tag/ping).\n\n**Rate limits**: Limited by the account's upload quota (see `quota` in the ping response) rather than per second.\n",
        "x-rate-limits": {
          "note": "Limited by the account's upload quota (see `quota` in the ping response) rather than per second."
        },
        "parameters": [
          {
            "name": "visibility",
            "in": "query",
            "required": false,
            "description": "Visibility of the uploaded replay.",
            "schema": {
              "$ref": "#/components/schemas/Visibility",
              "default": "public"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Id of the group (one of yours) to put the uploaded replay in. With a group upload token, it can only be\nthe token's group.\n",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "contentMediaType": "application/octet-stream",
                    "description": "The `.replay` file: its name must end with `.replay`, and it is at most 50 MiB (52,428,800 bytes).\nOnly the first part named `file` is read.\n"
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 1024,
                    "description": "Optional title of the replay, so that it is named in the same request instead of a\n[PATCH](#tag/replays/patch-replay) after the upload. The same rules as that PATCH: at most\n1,024 characters, valid UTF-8, no NUL character. A title that breaks them is ignored and the upload\ngoes on without one (no error). The first text value of `title` is used (a file part named `title`\nis ignored); empty means no title. It names a new replay only: a duplicate (`409`) keeps its own\ntitle. Like every field, it counts in the request size limit (see `413`).\n"
                  },
                  "match": {
                    "description": "Optional: the game's match data, as Psyonix's match history API returns it for this game (an RLAPI\n`Match` object), sent as a JSON text field. It lets ballchasing show each player's MMR before and\nafter the match. Only the fields listed here are read; others are allowed and ignored. Without\n`MatchGUID`, the rest is not used.\n\nThe values are reports: ballchasing checks them against its own readings from Psyonix before\nshowing any of them, and hides those that disagree.\n\nLimits: at most 64 KiB, nested at most 32 levels deep, at most 64 `Players`. A value that breaks\nthem, is not a JSON object, or has a field of the wrong type is ignored: the upload goes on and its\nresponse is the same as without `match`. The first text value of `match` is used; a file part named\n`match` is ignored.\n",
                    "$ref": "#/components/schemas/UploadMatch"
                  }
                }
              },
              "encoding": {
                "file": {
                  "contentType": "application/octet-stream"
                },
                "match": {
                  "contentType": "application/json"
                }
              },
              "examples": {
                "plain": {
                  "summary": "A replay file",
                  "value": {
                    "file": "game.replay"
                  }
                },
                "title": {
                  "summary": "With a title",
                  "value": {
                    "file": "game.replay",
                    "title": "Finals, game 3"
                  }
                },
                "match": {
                  "summary": "With match data (MMR)",
                  "value": {
                    "file": "game.replay",
                    "match": {
                      "MatchGUID": "5B60E82A11EB9B1C01F2449B87D06070",
                      "Playlist": 11,
                      "MapName": "Stadium_P",
                      "RecordStartTimestamp": 1763924712,
                      "SecondsPlayed": 312.4,
                      "WinningTeam": 0,
                      "Team0Score": 3,
                      "Team1Score": 1,
                      "bOverTime": false,
                      "bNoContest": false,
                      "bForfeit": false,
                      "Players": [
                        {
                          "PlayerID": "Steam|76561198141161044|0",
                          "LastTeam": 0,
                          "SecondsPlayed": 312.4,
                          "bAbandoned": false,
                          "Skills": {
                            "PrevMu": 44.81,
                            "PrevSigma": 2.51,
                            "PrevTier": 14,
                            "PrevDivision": 2,
                            "Mu": 45.27,
                            "Sigma": 2.5,
                            "Tier": 14,
                            "Division": 3,
                            "bValid": true
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "cURL",
            "source": "curl -v \\\n    -F file=@intense-game-with-ballchasing-team-mates.replay \\\n    -F 'title=Finals, game 3' \\\n    -H \"Authorization: $token\" \\\n    'https://ballchasing.com/api/v2/upload?visibility=private'\n"
          },
          {
            "lang": "Python",
            "label": "Python (requests, with duplicates)",
            "source": "import requests\n\nupload_url = \"https://ballchasing.com/api/v2/upload?visibility=public\"\n\ndef upload(path, token):\n    with open(path, \"rb\") as f:\n        r = requests.post(upload_url, headers={\"Authorization\": token}, files={\"file\": f})\n\n    if r.status_code == 201:\n        # replay successfully created, return its id\n        return r.json()[\"id\"]\n    elif r.status_code == 409:  # duplicate replay\n        # either raise an error, or return the existing replay id\n        # (absent for a group upload token when the existing replay is outside the token's group)\n        return r.json().get(\"id\")\n    else:\n        # raise an error for other status codes (50x, ...)\n        r.raise_for_status()\n"
          }
        ],
        "responses": {
          "201": {
            "description": "Replay created.",
            "headers": {
              "Location": {
                "description": "The new replay's page on ballchasing.com.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCreated"
                },
                "example": {
                  "id": "0b4ce8c0-68fa-4a93-8525-cae068c67eee",
                  "location": "https://ballchasing.com/replay/0b4ce8c0-68fa-4a93-8525-cae068c67eee"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: not a `multipart/form-data` body, no `file` part, a file name not ending with `.replay`,\na file over 50 MiB, not a valid replay, an invalid `visibility`, a `group` that is not one of yours (or\nnot the group upload token's).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid": {
                    "summary": "Not a valid replay",
                    "value": {
                      "error": "not a valid replay file"
                    }
                  },
                  "noFile": {
                    "summary": "No file part",
                    "value": {
                      "error": "no files in request"
                    }
                  },
                  "extension": {
                    "summary": "Not a .replay file",
                    "value": {
                      "error": "\"game.zip\" not a .replay file"
                    }
                  },
                  "groupToken": {
                    "summary": "Another group with a group upload token",
                    "value": {
                      "error": "cannot override group in a call made using group upload token"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "The account behind the key is deleted, or banned by the site's owner (`code: account_banned`; do not retry while the ban is active). An account whose API access is blocked can still upload.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/RestrictedError"
                    }
                  ]
                },
                "examples": {
                  "deleted": {
                    "summary": "Account deleted",
                    "value": {
                      "error": "this account is deleted"
                    }
                  },
                  "banned": {
                    "summary": "Account banned",
                    "value": {
                      "code": "account_banned",
                      "error": "This account has been banned from the API and from uploading because it was used together with other accounts to go past the download limits, which the terms of use do not allow. Do not retry these requests while this restriction is active."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Duplicate replay.",
            "headers": {
              "Location": {
                "description": "The existing replay's page on ballchasing.com (absent in the group token variant).",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadDuplicate"
                },
                "examples": {
                  "duplicate": {
                    "summary": "Duplicate replay",
                    "value": {
                      "id": "0b4ce8c0-68fa-4a93-8525-cae068c67eee",
                      "location": "https://ballchasing.com/replay/0b4ce8c0-68fa-4a93-8525-cae068c67eee",
                      "error": "duplicate replay",
                      "chat": {
                        "Poncho": "Whew.",
                        "YOU": "Oops"
                      }
                    }
                  },
                  "groupTokenElsewhere": {
                    "summary": "Group token, the owner has the replay outside the group",
                    "value": {
                      "error": "duplicate replay",
                      "chat": {
                        "Poncho": "Whew.",
                        "YOU": "Oops"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The request body is over the maximum replay size (50 MiB) plus 1 MiB for the multipart framing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "request too large: a replay is at most 52428800 bytes"
                }
              }
            }
          },
          "429": {
            "description": "The account reached its upload quota.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadOverQuota"
                },
                "example": {
                  "max_uploads": 10,
                  "window": "day",
                  "error": "You have reached your daily upload quota of 10 replays. Please try again tomorrow."
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/replays": {
      "get": {
        "operationId": "listReplays",
        "tags": [
          "replays"
        ],
        "summary": "List and filter replays",
        "description": "Filter and retrieve replays, most recent uploads first by default.\n\nYou get the public replays, and your own whatever their visibility. With `group` set to a shared group, the\ngroup's owner's replays in it are listed whatever their visibility too.\n\n## Pagination\n\nA page holds at most `count` replays (default 50, max 200). When there are more, the response has a `next`\nfield: the **full URL** of the next page, with the same filters and an opaque `after` cursor. Call it as is,\nwith your `Authorization` header, until a response has no `next`:\n\n```python\nurl = \"https://ballchasing.com/api/replays?player-id=steam:76561198141161044&count=200\"\nwhile url:\n    page = requests.get(url, headers={\"Authorization\": token}).json()\n    for replay in page[\"list\"]:\n        ...\n    url = page.get(\"next\")\n```\n\n`count` is the total number of replays matching the filters (all pages), counted up to 10,000.\n\n## Repeated parameters\n\n`playlist` can be repeated to match **any** of the values: `?playlist=ranked-duels&playlist=ranked-doubles`.\n\n`player-name` and `player-id` can be repeated to find the replays with **all** of these players:\n`?player-id=steam:1&player-id=steam:2`. The number of players in one search depends on your account:\n\n| Tier | Players per search |\n|------|-------------------:|\n| Legend patrons | 10 |\n| GC and Champion patrons | 6 |\n| Diamond patrons | 4 |\n| Gold patrons | 3 |\n| All others | 2 |\n| Discord moderators | 6 |\n| Organisation and bot accounts | 10 |\n\nMore players get a `400` (`\"you can search for up to 2 players\"`).\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 2000 calls |\n| Gold patrons | 2 calls | 1000 calls |\n| All others | 2 calls | 500 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 2000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 1000
          },
          "others": {
            "perSecond": 2,
            "perHour": 500
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "parameters": [
          {
            "name": "title",
            "in": "query",
            "description": "Filter replays by title.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "player-name",
            "in": "query",
            "description": "Filter replays by a player's name. Repeat it to find the replays with all of these players:\n`?player-name=name1&player-name=name2`.\n\nA name matches the players whose name contains it (as words or a word prefix, case insensitive); quote it\n(`\"Can't Fly\"`, quotes included) for the players with exactly this name. A value starting with a platform\nprefix (`steam:`, `epic:`, `ps4:`, `xbox:`, `switch:`, `psynet:`) makes every `player-name` value a\nplayer id, as with `player-id`.\n",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "player-id",
            "in": "query",
            "description": "Filter replays by a player's platform id, as `$platform:$id`, e.g. `steam:76561198141161044`,\n`ps4:gamertag` (case insensitive). Repeat it to find the replays with all of these players:\n`?player-id=steam:1&player-id=steam:2`. With `player-id` values, the `player-name` ones are ignored.\n",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[A-Za-z0-9]+:.+$"
              }
            }
          },
          {
            "name": "playlist",
            "in": "query",
            "description": "Filter replays by one or more playlists (any of them). Prefix a value with `!` to **exclude** that\nplaylist instead (e.g. `!private`; not offered by the dropdown).\n",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Playlist"
                  },
                  {
                    "title": "Excluded playlist",
                    "type": "string",
                    "pattern": "^!",
                    "examples": [
                      "!private"
                    ]
                  }
                ]
              }
            }
          },
          {
            "name": "season",
            "in": "query",
            "description": "Filter replays by season: a number between 1 and 14 for the old seasons, or `f1`, `f2`, ... for the free\nto play seasons.\n",
            "schema": {
              "anyOf": [
                {
                  "title": "Old season",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 14
                },
                {
                  "title": "Free to play season",
                  "type": "string",
                  "pattern": "^f[1-9][0-9]*$"
                }
              ]
            }
          },
          {
            "name": "match-result",
            "in": "query",
            "description": "Filter **your** replays by result: the replays where the API key's owner (by Steam id) played and won, or\nlost.\n",
            "schema": {
              "type": "string",
              "enum": [
                "win",
                "loss"
              ]
            }
          },
          {
            "name": "min-rank",
            "in": "query",
            "description": "Only include replays whose lowest ranked player is at least this rank. `grand-champion` is the same as\n`grand-champion-1`.\n",
            "schema": {
              "$ref": "#/components/schemas/RankCode"
            }
          },
          {
            "name": "max-rank",
            "in": "query",
            "description": "Only include replays whose highest ranked player is at most this rank (any division of it).\n",
            "schema": {
              "$ref": "#/components/schemas/RankCode"
            }
          },
          {
            "name": "pro",
            "in": "query",
            "description": "Only include replays containing at least one pro player.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "uploader",
            "in": "query",
            "description": "Only include replays uploaded by this user: a SteamID64 (`76561198141161044`), or the special value\n`me` for your own replays. `is:player` keeps the replays whose uploader is one of their players,\n`!is:player` the others.\n",
            "schema": {
              "type": "string",
              "examples": [
                "me",
                "76561198141161044",
                "is:player"
              ]
            }
          },
          {
            "name": "group",
            "in": "query",
            "description": "Only include replays directly under this group (not the replays of its child groups). With a shared\ngroup, its owner's replays are included whatever their visibility.\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "map",
            "in": "query",
            "description": "Only include replays played on this map: a map code of [`GET /maps`](#tag/misc/list-maps) (`400` for an\nunknown one).\n",
            "schema": {
              "type": "string",
              "examples": [
                "stadium_p"
              ]
            }
          },
          {
            "name": "created-before",
            "in": "query",
            "description": "Only include replays uploaded at or before this date (RFC 3339, e.g. `2020-01-02T15:00:05+01:00`).\n",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created-after",
            "in": "query",
            "description": "Only include replays uploaded at or after this date (RFC 3339, e.g. `2020-01-02T15:00:05+01:00`).\n",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "replay-date-before",
            "in": "query",
            "description": "Only include games played at or before this date (RFC 3339, e.g. `2020-01-02T15:00:05+01:00`).\n",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "replay-date-after",
            "in": "query",
            "description": "Only include games played at or after this date (RFC 3339, e.g. `2020-01-02T15:00:05+01:00`).\n",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Replays per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "sort-by",
            "in": "query",
            "description": "Sort field: `created` (upload date) or `replay-date` (when the game was played).\n",
            "schema": {
              "type": "string",
              "enum": [
                "created",
                "replay-date"
              ],
              "default": "created"
            }
          },
          {
            "name": "sort-dir",
            "in": "query",
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "desc"
            }
          },
          {
            "name": "roulette",
            "in": "query",
            "description": "`true`: return **one** random replay among the matching ones (`count` is then 1, or absent when none\nmatches), with no `next` page.\n",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Pagination cursor. Do not build it: it is part of the `next` URL of the previous page.\n",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of replays.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayList"
                },
                "examples": {
                  "page": {
                    "summary": "A page with a next page",
                    "value": {
                      "count": 7,
                      "list": [
                        {
                          "id": "969c37e6-f5c7-41bf-a0c0-21922df74469",
                          "link": "https://ballchasing.com/api/replays/969c37e6-f5c7-41bf-a0c0-21922df74469",
                          "rocket_league_id": "ECAF212F4E9154C5F5C2F681C5D891EE",
                          "replay_title": "NV vs SSG - 4 2021-04-12.01.26",
                          "map_code": "utopiastadium_dusk_p",
                          "map_name": "Utopia Coliseum (Dusk)",
                          "playlist_id": "private",
                          "playlist_name": "Private",
                          "duration": 394,
                          "overtime": true,
                          "overtime_seconds": 60,
                          "season": 3,
                          "season_type": "free2play",
                          "date": "2021-04-12T01:26:47+02:00",
                          "date_has_tz": true,
                          "visibility": "public",
                          "created": "2023-06-11T18:40:33.412901+02:00",
                          "uploader": {
                            "steam_id": "76561198141161044",
                            "name": "Can't Fly",
                            "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                            "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg"
                          },
                          "groups": [
                            {
                              "id": "series-7-spacestation-4-3-envy-3kcgxwpkuu",
                              "name": "Series 7 | Spacestation 4-3 Envy",
                              "link": "https://ballchasing.com/api/groups/series-7-spacestation-4-3-envy-3kcgxwpkuu"
                            }
                          ],
                          "blue": {
                            "name": "TEAM ENVY",
                            "goals": 1,
                            "players": [
                              {
                                "start_time": 0,
                                "end_time": 394.68646,
                                "name": "mist",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198245238200"
                                },
                                "score": 526
                              },
                              {
                                "start_time": 0,
                                "end_time": 394.68646,
                                "name": "Atomic",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198994386260"
                                },
                                "score": 238
                              },
                              {
                                "start_time": 0,
                                "end_time": 394.68646,
                                "name": "TURBOPOLSA",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198194977850"
                                },
                                "score": 226
                              }
                            ]
                          },
                          "orange": {
                            "name": "SSG",
                            "goals": 2,
                            "players": [
                              {
                                "start_time": 0,
                                "end_time": 394.68646,
                                "name": "Sypical",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198323843523"
                                },
                                "mvp": true,
                                "score": 708
                              },
                              {
                                "start_time": 0,
                                "end_time": 394.68646,
                                "name": "Arsenal",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198368482029"
                                },
                                "score": 395
                              },
                              {
                                "start_time": 0,
                                "end_time": 394.68646,
                                "name": "retals",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198353975600"
                                },
                                "score": 301
                              }
                            ]
                          }
                        },
                        {
                          "id": "6f2695fc-6831-4178-a2ad-207755b411b6",
                          "link": "https://ballchasing.com/api/replays/6f2695fc-6831-4178-a2ad-207755b411b6",
                          "rocket_league_id": "900BDB24400E5547B22CCE8F8F30B60B",
                          "replay_title": "NV vs SSG - 5 2021-04-12.01.34",
                          "map_code": "wasteland_night_s_p",
                          "map_name": "Wasteland (Standard, Night)",
                          "playlist_id": "private",
                          "playlist_name": "Private",
                          "duration": 353,
                          "overtime": false,
                          "season": 3,
                          "season_type": "free2play",
                          "date": "2021-04-12T01:34:44+02:00",
                          "date_has_tz": true,
                          "visibility": "public",
                          "created": "2023-06-11T18:40:33.343923+02:00",
                          "uploader": {
                            "steam_id": "76561198141161044",
                            "name": "Can't Fly",
                            "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                            "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg"
                          },
                          "groups": [
                            {
                              "id": "series-7-spacestation-4-3-envy-3kcgxwpkuu",
                              "name": "Series 7 | Spacestation 4-3 Envy",
                              "link": "https://ballchasing.com/api/groups/series-7-spacestation-4-3-envy-3kcgxwpkuu"
                            }
                          ],
                          "blue": {
                            "name": "TEAM ENVY",
                            "goals": 4,
                            "players": [
                              {
                                "start_time": 0,
                                "end_time": 353.2807,
                                "name": "mist",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198245238200"
                                },
                                "mvp": true,
                                "score": 592
                              },
                              {
                                "start_time": 0,
                                "end_time": 353.2807,
                                "name": "Atomic",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198994386260"
                                },
                                "score": 477
                              },
                              {
                                "start_time": 0,
                                "end_time": 353.2807,
                                "name": "TURBOPOLSA",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198194977850"
                                },
                                "score": 388
                              }
                            ]
                          },
                          "orange": {
                            "name": "SSG",
                            "goals": 1,
                            "players": [
                              {
                                "start_time": 0,
                                "end_time": 353.2807,
                                "name": "retals",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198353975600"
                                },
                                "score": 383
                              },
                              {
                                "start_time": 0,
                                "end_time": 353.2807,
                                "name": "Sypical",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198323843523"
                                },
                                "score": 288
                              },
                              {
                                "start_time": 0,
                                "end_time": 353.2807,
                                "name": "Arsenal",
                                "id": {
                                  "platform": "steam",
                                  "id": "76561198368482029"
                                },
                                "score": 212
                              }
                            ]
                          }
                        }
                      ],
                      "next": "https://ballchasing.com/api/replays?after=MS42ODY1MDE2MzMzNDNlKzEyXzZmMjY5NWZjLTY4MzEtNDE3OC1hMmFkLTIwNzc1NWI0MTFiNg%3D%3D&count=2&group=series-7-spacestation-4-3-envy-3kcgxwpkuu"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter (`error` tells which), or more players than your account may search at once.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "parameter": {
                    "summary": "Invalid parameter",
                    "value": {
                      "error": "invalid \"sort-by\"=\"upload-date\": must be one of replay-date, created",
                      "chat": {
                        "Poncho": "Whew.",
                        "YOU": "Oops"
                      }
                    }
                  },
                  "players": {
                    "summary": "Too many players",
                    "value": {
                      "error": "you can search for up to 2 players"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "description": "The search timed out or was incomplete (no partial page is returned): retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/replays/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ReplayId"
        }
      ],
      "get": {
        "operationId": "getReplay",
        "tags": [
          "replays"
        ],
        "summary": "Get a replay",
        "description": "Retrieve a replay's details and stats.\n\nThe response depends on the replay's `status`: a processed replay (`ok`) has all its stats; a replay that is\nnot processed yet (`pending`) or could not be processed (`failed`) only has its metadata.\n\nPlayers and teams stats also have:\n\n* `core`: `epic_saves`, `clears`, `centers`, `aerial_hits`, `first_touches`, `flip_resets`, `crossbar_hits`,\n  `bicycle_hits` and `juggle_hits`, counted by Rocket League itself and read as is from the replay file\n  (`flip_resets` in particular isn't verified by ballchasing)\n* `demo`: `inflicted_in_defensive_half`, `inflicted_in_offensive_half`, `taken_in_defensive_half` and\n  `taken_in_offensive_half`, based on the attacker's position\n\nThese fields are **omitted** when the replay doesn't track them, and `0` when it does but the value is zero.\nThe `core` counters are only tracked by replays from Rocket League's September 2026 update onwards. The demos\nsplit by field half are available for any replay processed since October 2026; replays processed before that\nget them once reprocessed.\n\n`play_duration` is the time actually played, in seconds, without the kickoff countdowns (omitted for replays\nprocessed before it was computed).\n\nYou can read the public and unlisted replays, and your own. A private replay of someone else gets a `404`,\nunless you pass a shared group holding it (`group`).\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "parameters": [
          {
            "name": "group",
            "in": "query",
            "description": "Id of a shared group holding the replay: its owner's replays in it can then be read whatever their\nvisibility, as on the group's page.\n",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The replay. Check `status` first.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Replay"
                    },
                    {
                      "$ref": "#/components/schemas/ReplayPending"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "status",
                    "mapping": {
                      "ok": "#/components/schemas/Replay",
                      "pending": "#/components/schemas/ReplayPending",
                      "failed": "#/components/schemas/ReplayPending"
                    }
                  }
                },
                "examples": {
                  "ok": {
                    "summary": "A processed replay (one player per team shown)",
                    "value": {
                      "id": "62368675-5573-43af-a735-0bc09db03854",
                      "link": "https://ballchasing.com/api/replays/62368675-5573-43af-a735-0bc09db03854",
                      "created": "2023-06-11T18:39:34.16092+02:00",
                      "uploader": {
                        "steam_id": "76561198141161044",
                        "name": "Can't Fly",
                        "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                        "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg"
                      },
                      "status": "ok",
                      "rocket_league_id": "ECAF212F4E9154C5F5C2F681C5D891EE",
                      "match_guid": "5B60E82A11EB9B1C01F2449B87D06070",
                      "title": "NV vs SSG - 4 2021-04-12.01.26",
                      "map_code": "utopiastadium_dusk_p",
                      "match_type": "Private",
                      "team_size": 3,
                      "playlist_id": "private",
                      "duration": 394,
                      "play_duration": 382,
                      "overtime": true,
                      "overtime_seconds": 60,
                      "season": 3,
                      "season_type": "free2play",
                      "date": "2021-04-12T01:26:47+02:00",
                      "date_has_timezone": true,
                      "visibility": "public",
                      "groups": [
                        {
                          "id": "series-7-spacestation-4-3-envy-rthjye20n2",
                          "name": "Series 7 | Spacestation 4-3 Envy",
                          "link": "https://ballchasing.com/api/groups/series-7-spacestation-4-3-envy-rthjye20n2"
                        }
                      ],
                      "blue": {
                        "color": "blue",
                        "name": "TEAM ENVY",
                        "players": [
                          {
                            "start_time": 0,
                            "end_time": 394.68646,
                            "name": "mist",
                            "id": {
                              "platform": "steam",
                              "id": "76561198245238200"
                            },
                            "car_id": 23,
                            "car_name": "Octane",
                            "camera": {
                              "fov": 110,
                              "height": 100,
                              "pitch": -5,
                              "distance": 270,
                              "stiffness": 0.4,
                              "swivel_speed": 4.4,
                              "transition_speed": 1.2
                            },
                            "steering_sensitivity": 1.3,
                            "stats": {
                              "core": {
                                "shots": 2,
                                "shots_against": 10,
                                "goals": 1,
                                "goals_against": 2,
                                "saves": 4,
                                "assists": 0,
                                "score": 526,
                                "mvp": false,
                                "shooting_percentage": 50,
                                "epic_saves": 2,
                                "clears": 3,
                                "centers": 1,
                                "aerial_hits": 14,
                                "first_touches": 2,
                                "flip_resets": 0,
                                "crossbar_hits": 0,
                                "bicycle_hits": 0,
                                "juggle_hits": 0
                              },
                              "boost": {
                                "bpm": 403,
                                "bcpm": 425.36847,
                                "avg_amount": 51.36,
                                "amount_collected": 2713,
                                "amount_stolen": 588,
                                "amount_collected_big": 2017,
                                "amount_stolen_big": 398,
                                "amount_collected_small": 696,
                                "amount_stolen_small": 190,
                                "count_collected_big": 29,
                                "count_stolen_big": 5,
                                "count_collected_small": 55,
                                "count_stolen_small": 17,
                                "amount_overfill": 810,
                                "amount_overfill_stolen": 103,
                                "amount_used_while_supersonic": 341,
                                "time_zero_boost": 44.93,
                                "percent_zero_boost": 11.74088,
                                "time_full_boost": 43.44,
                                "percent_full_boost": 11.3515215,
                                "time_boost_0_25": 128.41,
                                "time_boost_25_50": 86.38,
                                "time_boost_50_75": 86.18,
                                "time_boost_75_100": 85.71,
                                "percent_boost_0_25": 33.20834,
                                "percent_boost_25_50": 22.338884,
                                "percent_boost_50_75": 22.287163,
                                "percent_boost_75_100": 22.165615
                              },
                              "movement": {
                                "avg_speed": 1540,
                                "total_distance": 578827,
                                "time_supersonic_speed": 63.2,
                                "time_boost_speed": 149.52,
                                "time_slow_speed": 180.82,
                                "time_ground": 234.46,
                                "time_low_air": 152.08,
                                "time_high_air": 7.01,
                                "time_powerslide": 13.57,
                                "count_powerslide": 101,
                                "avg_powerslide_duration": 0.13,
                                "avg_speed_percentage": 66.95652,
                                "percent_slow_speed": 45.94704,
                                "percent_boost_speed": 37.99359,
                                "percent_supersonic_speed": 16.059357,
                                "percent_ground": 59.575653,
                                "percent_low_air": 38.64312,
                                "percent_high_air": 1.7812221
                              },
                              "positioning": {
                                "avg_distance_to_ball": 2865,
                                "avg_distance_to_ball_possession": 2833,
                                "avg_distance_to_ball_no_possession": 2893,
                                "avg_distance_to_mates": 3567,
                                "time_defensive_third": 193.27,
                                "time_neutral_third": 122.94,
                                "time_offensive_third": 77.34,
                                "time_defensive_half": 265.87,
                                "time_offensive_half": 127.68,
                                "time_behind_ball": 314.43,
                                "time_infront_ball": 79.11,
                                "time_most_back": 143.9,
                                "time_most_forward": 110.8,
                                "time_closest_to_ball": 119,
                                "time_farthest_from_ball": 136.4,
                                "percent_defensive_third": 49.10939,
                                "percent_offensive_third": 19.651886,
                                "percent_neutral_third": 31.238726,
                                "percent_defensive_half": 67.556854,
                                "percent_offensive_half": 32.443146,
                                "percent_behind_ball": 79.89786,
                                "percent_infront_ball": 20.10215,
                                "percent_most_back": 37.603218,
                                "percent_most_forward": 28.953695,
                                "percent_closest_to_ball": 31.096478,
                                "percent_farthest_from_ball": 35.643356
                              },
                              "demo": {
                                "inflicted": 0,
                                "inflicted_in_defensive_half": 0,
                                "inflicted_in_offensive_half": 0,
                                "taken": 0,
                                "taken_in_defensive_half": 0,
                                "taken_in_offensive_half": 0
                              }
                            }
                          }
                        ],
                        "stats": {
                          "ball": {
                            "possession_time": 171.09,
                            "time_in_side": 170.01
                          },
                          "core": {
                            "shots": 10,
                            "shots_against": 10,
                            "goals": 1,
                            "goals_against": 2,
                            "saves": 5,
                            "assists": 1,
                            "score": 990,
                            "shooting_percentage": 10,
                            "epic_saves": 2,
                            "clears": 11,
                            "centers": 9,
                            "aerial_hits": 23,
                            "first_touches": 4,
                            "flip_resets": 4,
                            "crossbar_hits": 3,
                            "bicycle_hits": 1,
                            "juggle_hits": 1
                          },
                          "boost": {
                            "bpm": 1202,
                            "bcpm": 1207.7454,
                            "avg_amount": 152.2,
                            "amount_collected": 7703,
                            "amount_stolen": 1860,
                            "amount_collected_big": 5304,
                            "amount_stolen_big": 1106,
                            "amount_collected_small": 2399,
                            "amount_stolen_small": 754,
                            "count_collected_big": 68,
                            "count_stolen_big": 13,
                            "count_collected_small": 208,
                            "count_stolen_small": 69,
                            "amount_overfill": 1375,
                            "amount_overfill_stolen": 212,
                            "amount_used_while_supersonic": 1117,
                            "time_zero_boost": 179.37,
                            "time_full_boost": 119.270004,
                            "time_boost_0_25": 399.32,
                            "time_boost_25_50": 235.82,
                            "time_boost_50_75": 208.16,
                            "time_boost_75_100": 312.8
                          },
                          "movement": {
                            "total_distance": 1745244,
                            "time_supersonic_speed": 195.4,
                            "time_boost_speed": 447.23004,
                            "time_slow_speed": 531.09,
                            "time_ground": 678.6,
                            "time_low_air": 466.93,
                            "time_high_air": 28.2,
                            "time_powerslide": 35.36,
                            "count_powerslide": 284
                          },
                          "positioning": {
                            "time_defensive_third": 552.02,
                            "time_neutral_third": 354.77002,
                            "time_offensive_third": 266.94,
                            "time_defensive_half": 745.57,
                            "time_offensive_half": 428.16,
                            "time_behind_ball": 909.6,
                            "time_infront_ball": 264.12
                          },
                          "demo": {
                            "inflicted": 4,
                            "inflicted_in_defensive_half": 2,
                            "inflicted_in_offensive_half": 2,
                            "taken": 2,
                            "taken_in_defensive_half": 0,
                            "taken_in_offensive_half": 2
                          }
                        }
                      },
                      "orange": {
                        "color": "orange",
                        "name": "SSG",
                        "players": [
                          {
                            "start_time": 0,
                            "end_time": 394.68646,
                            "name": "Sypical",
                            "id": {
                              "platform": "steam",
                              "id": "76561198323843523"
                            },
                            "mvp": true,
                            "car_id": 23,
                            "car_name": "Octane",
                            "camera": {
                              "fov": 110,
                              "height": 100,
                              "pitch": -5,
                              "distance": 270,
                              "stiffness": 0.4,
                              "swivel_speed": 4.7,
                              "transition_speed": 1.2
                            },
                            "steering_sensitivity": 1.3,
                            "stats": {
                              "core": {
                                "shots": 1,
                                "shots_against": 10,
                                "goals": 1,
                                "goals_against": 1,
                                "saves": 5,
                                "assists": 1,
                                "score": 708,
                                "mvp": true,
                                "shooting_percentage": 100,
                                "epic_saves": 1,
                                "clears": 3,
                                "centers": 1,
                                "aerial_hits": 9,
                                "first_touches": 0,
                                "flip_resets": 1,
                                "crossbar_hits": 1,
                                "bicycle_hits": 1,
                                "juggle_hits": 0
                              },
                              "boost": {
                                "bpm": 469,
                                "bcpm": 461.27313,
                                "avg_amount": 50.25,
                                "amount_collected": 2942,
                                "amount_stolen": 808,
                                "amount_collected_big": 2275,
                                "amount_stolen_big": 643,
                                "amount_collected_small": 667,
                                "amount_stolen_small": 165,
                                "count_collected_big": 27,
                                "count_stolen_big": 7,
                                "count_collected_small": 52,
                                "count_stolen_small": 15,
                                "amount_overfill": 448,
                                "amount_overfill_stolen": 56,
                                "amount_used_while_supersonic": 374,
                                "time_zero_boost": 85.43,
                                "percent_zero_boost": 22.324135,
                                "time_full_boost": 33.78,
                                "percent_full_boost": 8.827219,
                                "time_boost_0_25": 140.32,
                                "time_boost_25_50": 50.66,
                                "time_boost_50_75": 58.37,
                                "time_boost_75_100": 132.02,
                                "percent_boost_0_25": 36.793667,
                                "percent_boost_25_50": 13.283688,
                                "percent_boost_50_75": 15.3053465,
                                "percent_boost_75_100": 34.617302
                              },
                              "movement": {
                                "avg_speed": 1501,
                                "total_distance": 561062,
                                "time_supersonic_speed": 55.75,
                                "time_boost_speed": 155.8,
                                "time_slow_speed": 176.73,
                                "time_ground": 230.9,
                                "time_low_air": 145.45,
                                "time_high_air": 11.91,
                                "time_powerslide": 10.11,
                                "count_powerslide": 99,
                                "avg_powerslide_duration": 0.1,
                                "avg_speed_percentage": 65.26087,
                                "percent_slow_speed": 45.51612,
                                "percent_boost_speed": 40.125683,
                                "percent_supersonic_speed": 14.358195,
                                "percent_ground": 59.470463,
                                "percent_low_air": 37.462013,
                                "percent_high_air": 3.0675323
                              },
                              "positioning": {
                                "avg_distance_to_ball": 2328,
                                "avg_distance_to_ball_possession": 2250,
                                "avg_distance_to_ball_no_possession": 2422,
                                "avg_distance_to_mates": 3556,
                                "time_defensive_third": 204.46,
                                "time_neutral_third": 103.71,
                                "time_offensive_third": 80.09,
                                "time_defensive_half": 258.35,
                                "time_offensive_half": 129.92,
                                "time_behind_ball": 278.87,
                                "time_infront_ball": 109.4,
                                "time_most_back": 126.2,
                                "time_most_forward": 121.8,
                                "time_closest_to_ball": 155,
                                "time_farthest_from_ball": 109.4,
                                "percent_defensive_third": 52.66059,
                                "percent_offensive_third": 20.62793,
                                "percent_neutral_third": 26.711483,
                                "percent_defensive_half": 66.53874,
                                "percent_offensive_half": 33.46125,
                                "percent_behind_ball": 71.82373,
                                "percent_infront_ball": 28.17627,
                                "percent_most_back": 32.977947,
                                "percent_most_forward": 31.82816,
                                "percent_closest_to_ball": 40.503815,
                                "percent_farthest_from_ball": 28.587854
                              },
                              "demo": {
                                "inflicted": 1,
                                "inflicted_in_defensive_half": 1,
                                "inflicted_in_offensive_half": 0,
                                "taken": 2,
                                "taken_in_defensive_half": 2,
                                "taken_in_offensive_half": 0
                              }
                            }
                          }
                        ],
                        "stats": {
                          "ball": {
                            "possession_time": 176.78,
                            "time_in_side": 209.24
                          },
                          "core": {
                            "shots": 10,
                            "shots_against": 10,
                            "goals": 2,
                            "goals_against": 1,
                            "saves": 8,
                            "assists": 2,
                            "score": 1404,
                            "shooting_percentage": 20,
                            "epic_saves": 2,
                            "clears": 16,
                            "centers": 9,
                            "aerial_hits": 27,
                            "first_touches": 2,
                            "flip_resets": 3,
                            "crossbar_hits": 3,
                            "bicycle_hits": 3,
                            "juggle_hits": 1
                          },
                          "boost": {
                            "bpm": 1281,
                            "bcpm": 1310.7557,
                            "avg_amount": 152.17,
                            "amount_collected": 8360,
                            "amount_stolen": 2295,
                            "amount_collected_big": 6143,
                            "amount_stolen_big": 1626,
                            "amount_collected_small": 2217,
                            "amount_stolen_small": 669,
                            "count_collected_big": 74,
                            "count_stolen_big": 18,
                            "count_collected_small": 190,
                            "count_stolen_small": 59,
                            "amount_overfill": 1358,
                            "amount_overfill_stolen": 186,
                            "amount_used_while_supersonic": 1697,
                            "time_zero_boost": 162.57999,
                            "time_full_boost": 127.55,
                            "time_boost_0_25": 415.66003,
                            "time_boost_25_50": 211.28,
                            "time_boost_50_75": 171.08,
                            "time_boost_75_100": 359.90002
                          },
                          "movement": {
                            "total_distance": 1687237,
                            "time_supersonic_speed": 179.98999,
                            "time_boost_speed": 431.59998,
                            "time_slow_speed": 559.1,
                            "time_ground": 736.41003,
                            "time_low_air": 397.21997,
                            "time_high_air": 37.04,
                            "time_powerslide": 28.14,
                            "count_powerslide": 263
                          },
                          "positioning": {
                            "time_defensive_third": 585,
                            "time_neutral_third": 358.58002,
                            "time_offensive_third": 227.09,
                            "time_defensive_half": 769.29004,
                            "time_offensive_half": 401.39,
                            "time_behind_ball": 809.44995,
                            "time_infront_ball": 361.22998
                          },
                          "demo": {
                            "inflicted": 2,
                            "inflicted_in_defensive_half": 2,
                            "inflicted_in_offensive_half": 0,
                            "taken": 4,
                            "taken_in_defensive_half": 3,
                            "taken_in_offensive_half": 1
                          }
                        }
                      },
                      "playlist_name": "Private",
                      "map_name": "Utopia Coliseum (Dusk)"
                    }
                  },
                  "pending": {
                    "summary": "A replay not processed yet",
                    "value": {
                      "status": "pending",
                      "created": "2019-09-03T03:18:52.010889Z",
                      "id": "af0d8d70-e2be-4c15-91b6-0a6e8aba253b",
                      "link": "https://ballchasing.com/api/replays/af0d8d70-e2be-4c15-91b6-0a6e8aba253b",
                      "uploader": {
                        "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg",
                        "name": "Can't Fly",
                        "profile_url": "https://steamcommunity.com/id/cantflyrl/"
                      }
                    }
                  },
                  "failed": {
                    "summary": "A replay that could not be processed",
                    "value": {
                      "status": "failed",
                      "created": "2019-09-03T03:18:52.010889Z",
                      "id": "af0d8d70-e2be-4c15-91b6-0a6e8aba253b",
                      "link": "https://ballchasing.com/api/replays/af0d8d70-e2be-4c15-91b6-0a6e8aba253b",
                      "uploader": {
                        "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg",
                        "name": "Can't Fly",
                        "profile_url": "https://steamcommunity.com/id/cantflyrl/"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchReplay",
        "tags": [
          "replays"
        ],
        "summary": "Update a replay",
        "description": "Change one or more fields of one of your replays: title, visibility, group. The changes are applied together,\nor not at all. An empty object changes nothing (`204`).\n\n`group` only changes **your** groups: it can also put a replay of someone else that you can see (public or\nunlisted) in one of your groups, or take it out of them. `title` and `visibility` need the replay to be yours\n(`404` otherwise).\n\n> **Warning**\n> This changes the replay for good. The try-it console sends a **real** request with your key.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayPatch"
              },
              "examples": {
                "title": {
                  "summary": "Set the title",
                  "value": {
                    "title": "this game was nuts"
                  }
                },
                "visibility": {
                  "summary": "Set the visibility",
                  "value": {
                    "visibility": "private"
                  }
                },
                "group": {
                  "summary": "Move to a group",
                  "value": {
                    "group": "rlcs-s6-day1-xxd"
                  }
                },
                "ungroup": {
                  "summary": "Take out of its group",
                  "value": {
                    "group": ""
                  }
                },
                "multiple": {
                  "summary": "Several fields at once",
                  "value": {
                    "title": "this game was nuts",
                    "visibility": "private",
                    "group": "rlcs-s6-day1-xxd"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Replay updated (or nothing to change)."
          },
          "400": {
            "description": "Invalid request: invalid JSON or visibility, a title over 1024 characters, or a replay you cannot see (when\nsetting `group`).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid replay visibility 'hidden': must be one of 'private', 'public', 'unlisted'"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "description": "No such replay (or not yours, for `title` and `visibility`), or no such group of yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "replay": {
                    "summary": "No such replay",
                    "value": {
                      "error": "not found"
                    }
                  },
                  "group": {
                    "summary": "No such group",
                    "value": {
                      "error": "error moving replay 7fd09c82-b0d8-4d85-b875-fe1dd3a3a3c1 to group rlcs-s6-day1-xxd: not found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteReplay",
        "tags": [
          "replays"
        ],
        "summary": "Delete a replay",
        "description": "Delete one of your replays.\n\n> **Warning**\n> This is permanent and cannot be undone. The try-it console sends a **real** request with your key.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "responses": {
          "204": {
            "description": "Replay deleted."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/replays/{id}/file": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ReplayId"
        }
      ],
      "get": {
        "operationId": "downloadReplayFile",
        "tags": [
          "replays"
        ],
        "summary": "Download a replay file",
        "description": "Download the original `.replay` file of a replay.\n\nServing largish (binary) files like replays is costly (server CPU and I/O time, object storage access costs,\nnetwork egress costs), which is why this endpoint has lower rate limits than usual.\n\n> **Warning**\n> **Daily limit on other people's replay files.** On top of the rate limits, each account (all its API keys\n> together) can only download a limited number of original replay files **uploaded by other people** per\n> day. Trying this endpoint here on someone else's replay counts toward that limit.\n\n| Tier | Other people's files per day |\n|------|-----------------------------:|\n| Legend patrons | 2500 |\n| GC patrons | 1000 |\n| Champion patrons | 500 |\n| Diamond patrons | 250 |\n| Gold patrons | 100 |\n| All others | 50 |\n| Discord moderators | 500 |\n| Organisation and bot accounts | 2500 |\n\nDiscord moderators and approved organisation and bot accounts get the larger of their row and their tier's.\n\nPatrons whose current pledge started before 15 November 2026 (UTC), with their Patreon account connected, get\ntwice their tier's limit while their pledge continues (up to the tier they had when this perk launched): a\ngoodwill gesture that may be revoked at the site owner's discretion, and not given to accounts collecting\nother players' replays in bulk.\n\n**Your own files are not limited**: the replays you uploaded, including those uploaded with one of your group\nupload tokens. A replay of someone else counts even when it is in one of your groups.\n\nThe limit is shared with the site: the files downloaded on ballchasing.com and through the API count together.\n\nA day is a calendar day in UTC: the count restarts at 00:00 UTC. Distinct replays are counted: downloading the\nsame replay again on the same day does not count twice, and a download that fails because the server could\nnot read the file does not count (one that you interrupt does).\n\nOnce the limit is reached, the server responds with a `429` to any other replay of someone else until the\nnext day (the replays already counted that day can still be downloaded). The `Retry-After` header holds the\nnumber of seconds until the count restarts, and the body has `limit`, `count` and `reset` fields, which tell\nthis limit apart from the rate limits.\n\nTo know where an account stands before starting a batch of downloads, [Ping](#tag/ping) answers the day's count\nand the limit in `quota.replay_file_downloads` (`used`, `max`, `resets_at`); pinging does not count.\n\nThe replay stats and metadata (`GET /replays/{id}`) are not concerned by this limit.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 2 calls | - |\n| Champion patrons | 2 calls | 2000 calls |\n| Diamond patrons | 2 calls | 1000 calls |\n| Gold patrons | 2 calls | 400 calls |\n| All others | 1 calls | 200 calls |\n| Discord moderators | 2 calls | 2000 calls |\n| Organisation and bot accounts | 2 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 2
          },
          "gc": {
            "perSecond": 2
          },
          "champion": {
            "perSecond": 2,
            "perHour": 2000
          },
          "diamond": {
            "perSecond": 2,
            "perHour": 1000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 400
          },
          "others": {
            "perSecond": 1,
            "perHour": 200
          },
          "discordMod": {
            "perSecond": 2,
            "perHour": 2000
          },
          "org": {
            "perSecond": 2
          },
          "bot": {
            "perSecond": 2
          }
        },
        "x-daily-quota": {
          "scope": "other people's original replay files, per account and UTC day",
          "legend": 2500,
          "gc": 1000,
          "champion": 500,
          "diamond": 250,
          "gold": 100,
          "others": 50,
          "discordMod": 500,
          "org": 2500,
          "bot": 2500
        },
        "responses": {
          "200": {
            "description": "The replay file.",
            "headers": {
              "Content-Disposition": {
                "description": "`attachment` with the original file name.",
                "schema": {
                  "type": "string",
                  "examples": [
                    "attachment; filename=\"original-filename.replay\""
                  ]
                }
              },
              "Content-Length": {
                "description": "Size of the file, in bytes.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "contentMediaType": "application/octet-stream"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "410": {
            "description": "The replay exists but its file is lost: the server no longer has it (a stored copy that went missing or bad,\nor a replay whose upload never stored it). It does not count toward the daily limit. It will not come back by\ntrying again.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "the file of this replay is lost"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached (the body is a plain error), or **daily limit on other people's files** reached (the\nbody also has `limit`, `count` and `reset`). Either way, wait `Retry-After` seconds.\n",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DailyLimitError"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                },
                "examples": {
                  "dailyLimit": {
                    "summary": "Daily limit on other people's files",
                    "value": {
                      "error": "daily limit reached: your account can download 50 original replay files uploaded by other people per day (UTC), on the site and through the API together. It resets at 2026-11-17T00:00:00Z. Replays you uploaded are not limited. Daily limits per account type: https://ballchasing.com/doc/using-the-site#downloads",
                      "limit": 50,
                      "count": 50,
                      "reset": "2026-11-17T00:00:00Z",
                      "chat": {
                        "Iceman": "No Problem.",
                        "YOU": "My Fault."
                      },
                      "request_id": "5A56088B:A9C6_A2379E0D:01BB_6AFFDAAC_2F2FA0:1E0D5E",
                      "server": "hzprod-front-1"
                    }
                  },
                  "rateLimit": {
                    "summary": "Rate limit",
                    "value": {
                      "error": "Too many requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/groups": {
      "get": {
        "operationId": "listGroups",
        "tags": [
          "groups"
        ],
        "summary": "List and filter groups",
        "description": "Filter and retrieve replay groups, most recently created first by default.\n\nWithout `group`, only **top level** groups are listed; with `group`, only the direct children of that group.\nYou get your own groups, and the other people's groups that hold at least one replay you can see (public), or\nthat are shared. Add `creator=me` to only get yours.\n\n## Pagination\n\nA page holds at most `count` groups (default 50, max 200). When there are more, the response has a `next`\nfield: the **full URL** of the next page, with the same filters and an opaque `after` cursor. Call it as is,\nwith your `Authorization` header, until a response has no `next`. Unlike `GET /replays`, the response has no\ntotal `count`.\n\n`GET /groups` and `POST /groups` share their rate limit counters.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 2000 calls |\n| Gold patrons | 2 calls | 1000 calls |\n| All others | 2 calls | 500 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 2000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 1000
          },
          "others": {
            "perSecond": 2,
            "perHour": 500
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "description": "Only include groups whose name contains this text (case insensitive).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "creator",
            "in": "query",
            "description": "Only include groups created by this user: a SteamID64 (`76561198141161044`), or the special value `me` for\nyour own groups.\n",
            "schema": {
              "type": "string",
              "examples": [
                "me",
                "76561198141161044"
              ]
            }
          },
          {
            "name": "group",
            "in": "query",
            "description": "Only include the direct children of this group (not their own sub-groups). Without it, only the top level\ngroups are listed.\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created-before",
            "in": "query",
            "description": "Only include groups created before this date (RFC 3339, e.g. `2020-01-02T15:00:05+01:00`).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created-after",
            "in": "query",
            "description": "Only include groups created at or after this date (RFC 3339, e.g. `2020-01-02T15:00:05+01:00`).\n",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Groups per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "sort-by",
            "in": "query",
            "description": "Sort field.",
            "schema": {
              "type": "string",
              "enum": [
                "created",
                "name"
              ],
              "default": "created"
            }
          },
          {
            "name": "sort-dir",
            "in": "query",
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "desc"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Pagination cursor. Do not build it: it is part of the `next` URL of the previous page.\n",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of groups.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupList"
                },
                "examples": {
                  "page": {
                    "summary": "A page with a next page",
                    "value": {
                      "list": [
                        {
                          "id": "m7-c9-vs-dig-e9ae8q2cs0",
                          "link": "https://ballchasing.com/api/groups/m7-c9-vs-dig-e9ae8q2cs0",
                          "name": "m7-c9-vs-dig",
                          "created": "2023-06-11T16:39:49.423417Z",
                          "player_identification": "by-id",
                          "team_identification": "by-distinct-players",
                          "direct_replays": 5,
                          "indirect_replays": 5,
                          "shared": false,
                          "user": {
                            "steam_id": "76561198141161044",
                            "name": "Can't Fly",
                            "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                            "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg"
                          }
                        },
                        {
                          "id": "m6-c9-vs-dig-lytplha7mv",
                          "link": "https://ballchasing.com/api/groups/m6-c9-vs-dig-lytplha7mv",
                          "name": "m6-c9-vs-dig",
                          "created": "2023-06-11T16:39:49.047839Z",
                          "player_identification": "by-id",
                          "team_identification": "by-distinct-players",
                          "direct_replays": 5,
                          "indirect_replays": 5,
                          "shared": false,
                          "user": {
                            "steam_id": "76561198141161044",
                            "name": "Can't Fly",
                            "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                            "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg"
                          }
                        }
                      ],
                      "next": "https://ballchasing.com/api/groups?after=m6-c9-vs-dig-lytplha7mv&count=2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter. `error` tells which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid \"sort-by\"=\"date\": must be one of name, created"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "createGroup",
        "tags": [
          "groups"
        ],
        "summary": "Create a group",
        "description": "Create a new replay group, at the top level or as a child of one of your groups.\n\nGroup names are unique among the groups of the same parent (of yours), and trees are 32 levels deep at most.\n\n`GET /groups` and `POST /groups` share their rate limit counters.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "cURL",
            "source": "curl -v -X POST \\\n    -H \"Authorization: $token\" \\\n    -H 'Content-Type: application/json' \\\n    --data '{\"name\":\"xxx\",\"player_identification\":\"by-id\",\"team_identification\":\"by-player-clusters\"}' \\\n    'https://ballchasing.com/api/groups'\n"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupCreate"
              },
              "examples": {
                "topLevel": {
                  "summary": "A top level group",
                  "value": {
                    "name": "RLCS S9",
                    "player_identification": "by-id",
                    "team_identification": "by-distinct-players"
                  }
                },
                "child": {
                  "summary": "A child group",
                  "value": {
                    "name": "Final day",
                    "parent": "rlcs-s9-xdhit",
                    "player_identification": "by-id",
                    "team_identification": "by-distinct-players"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Group created.",
            "headers": {
              "Location": {
                "description": "API URL of the new group.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupCreated"
                },
                "example": {
                  "id": "rlcs-s9-9c5v8h3aav",
                  "link": "https://ballchasing.com/api/groups/rlcs-s9-9c5v8h3aav"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: invalid JSON, name (missing, shorter than 3 or longer than 255 bytes) or identification,\nduplicate name, no such parent (or not yours), too deep (32 levels at most), or too many groups (100,000 per\naccount).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "duplicate name"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/groups/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/GroupId"
        }
      ],
      "get": {
        "operationId": "getGroup",
        "tags": [
          "groups"
        ],
        "summary": "Get a group",
        "description": "Retrieve a replay group's info and the stats of its players and teams.\n\nPlayers and teams `cumulative` and `game_average` stats also have:\n\n* `core`: `epic_saves`, `clears`, `centers`, `aerial_hits`, `first_touches`, `flip_resets`, `crossbar_hits`,\n  `bicycle_hits` and `juggle_hits`, counted by Rocket League itself and read as is from the replay file\n  (`flip_resets` in particular isn't verified by ballchasing)\n* `demo`: `inflicted_in_defensive_half`, `inflicted_in_offensive_half`, `taken_in_defensive_half` and\n  `taken_in_offensive_half`, based on the attacker's position\n\nThese fields are **omitted** when none of the group's games track them. Otherwise, `cumulative` is the total\nover the games that track them, and `game_average` is averaged over those games only, so groups mixing old and\nnew replays average correctly.\n\n### Replays of the same game\n\nSeveral players often upload their own replay of the same game. Each group has a `dedup` setting (`true` for\ngroups created since November 2026, `false` for older ones until their owner changes it):\n\n* `true`: the stats count each game once, from one of its replays (the longest in-game duration, then the\n  earliest upload). Games, wins, totals and averages ignore the other replays of that game.\n* `false`: every replay counts, as before.\n\nAdd `dedup=on` or `dedup=off` to choose for one request, whatever the group's setting: a tool reading groups\nowned by others can count the same way across all of them.\n\nThe `duplicates` counts say how many of the group's replays are the same game (the same with `on` and `off`).\nWhich replays they are: `GET /groups/{id}/duplicate-replays`.\n\nTwo replays are the same game when they share the match id, the server's match start time (written in replays\nsince September 2024), the score, the duration (within 3 seconds) and enough of the same players on the same\nsides. Older replays are never merged.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "parameters": [
          {
            "name": "dedup",
            "in": "query",
            "required": false,
            "description": "Count each game once (`on`) or every replay (`off`) for this request. Without it, the group's `dedup` setting\ndecides. `true` and `false` work too.\n",
            "schema": {
              "type": "string",
              "enum": [
                "on",
                "off",
                "true",
                "false"
              ]
            }
          }
        ],
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "responses": {
          "200": {
            "description": "The group. Check `status` first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group"
                },
                "examples": {
                  "ok": {
                    "summary": "A group with stats (one player shown)",
                    "value": {
                      "id": "rlcs-s6-final-series-6r6rq5s1zk",
                      "link": "https://ballchasing.com/api/groups/rlcs-s6-final-series-6r6rq5s1zk",
                      "name": "RLCS S6 Final Series",
                      "created": "2023-06-11T16:39:26.684465Z",
                      "status": "ok",
                      "player_identification": "by-id",
                      "team_identification": "by-distinct-players",
                      "shared": false,
                      "dedup": false,
                      "creator": {
                        "steam_id": "76561198141161044",
                        "name": "Can't Fly",
                        "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                        "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg",
                        "avatar_full": "",
                        "avatar_medium": ""
                      },
                      "players": [
                        {
                          "platform": "Steam",
                          "id": "76561198847746452",
                          "name": "Gimmick",
                          "team": "CLOUD9",
                          "cumulative": {
                            "games": 5,
                            "wins": 4,
                            "win_percentage": 80,
                            "play_duration": 1733,
                            "core": {
                              "shots": 12,
                              "shots_against": 36,
                              "goals": 5,
                              "goals_against": 8,
                              "saves": 6,
                              "assists": 1,
                              "score": 1635,
                              "mvp": 0,
                              "shooting_percentage": 41.666668,
                              "epic_saves": 2,
                              "clears": 10,
                              "centers": 10,
                              "aerial_hits": 32,
                              "first_touches": 0,
                              "flip_resets": 0,
                              "crossbar_hits": 5,
                              "bicycle_hits": 0,
                              "juggle_hits": 2
                            },
                            "boost": {
                              "bpm": 462.38083,
                              "bcpm": 463.2083,
                              "avg_amount": 45.09768,
                              "amount_collected": 13379,
                              "amount_stolen": 2940,
                              "amount_collected_big": 10029,
                              "amount_stolen_big": 1882,
                              "amount_collected_small": 3350,
                              "amount_stolen_small": 1058,
                              "count_collected_big": 113,
                              "count_stolen_big": 20,
                              "count_collected_small": 289,
                              "count_stolen_small": 93,
                              "time_zero_boost": 317.99,
                              "percent_zero_boost": 18.349106,
                              "time_full_boost": 109.21,
                              "percent_full_boost": 6.301789,
                              "amount_overfill": 1326,
                              "amount_overfill_stolen": 117,
                              "amount_used_while_supersonic": 2351,
                              "time_boost_0_25": 685.17,
                              "time_boost_25_50": 369.11,
                              "time_boost_50_75": 256.30002,
                              "time_boost_75_100": 362.88998,
                              "percent_boost_0_25": 39.53664,
                              "percent_boost_25_50": 21.298904,
                              "percent_boost_50_75": 14.789384,
                              "percent_boost_75_100": 20.93999
                            },
                            "movement": {
                              "avg_speed": 1590.9418,
                              "total_distance": 2590556,
                              "time_supersonic_speed": 336.03998,
                              "time_boost_speed": 670.48,
                              "time_slow_speed": 720.6,
                              "time_ground": 977.63995,
                              "time_low_air": 671.56,
                              "time_high_air": 77.92,
                              "time_powerslide": 48.93,
                              "count_powerslide": 402,
                              "avg_powerslide_duration": 0.61,
                              "avg_speed_percentage": 69.17138,
                              "percent_slow_speed": 41.72264,
                              "percent_boost_speed": 38.820698,
                              "percent_supersonic_speed": 19.456667,
                              "percent_ground": 56.60521,
                              "percent_low_air": 38.88323,
                              "percent_high_air": 4.5115566
                            },
                            "positioning": {
                              "avg_distance_to_ball": 3039.4062,
                              "avg_distance_to_ball_possession": 2870.918,
                              "avg_distance_to_ball_no_possession": 3206.6323,
                              "time_defensive_third": 824.24,
                              "time_neutral_third": 533.65,
                              "time_offensive_third": 369.21,
                              "time_defensive_half": 1105.69,
                              "time_offensive_half": 621.43005,
                              "time_behind_ball": 1231.62,
                              "time_infront_ball": 495.51,
                              "time_most_back": 495.69998,
                              "time_most_forward": 635.6,
                              "goals_against_while_last_defender": 0,
                              "time_closest_to_ball": 584.30005,
                              "time_farthest_from_ball": 580.6,
                              "percent_defensive_third": 47.72393,
                              "percent_offensive_third": 21.377455,
                              "percent_neutral_third": 30.898619,
                              "percent_defensive_half": 64.01929,
                              "percent_offensive_half": 35.98071,
                              "percent_behind_ball": 71.31021,
                              "percent_infront_ball": 28.68979
                            },
                            "demo": {
                              "inflicted": 4,
                              "inflicted_in_defensive_half": 4,
                              "inflicted_in_offensive_half": 0,
                              "taken": 2,
                              "taken_in_defensive_half": 0,
                              "taken_in_offensive_half": 2
                            }
                          },
                          "game_average": {
                            "core": {
                              "shots": 2.4,
                              "shots_against": 7.2,
                              "goals": 1,
                              "goals_against": 1.6,
                              "saves": 1.2,
                              "assists": 0.2,
                              "score": 327,
                              "mvp": 0,
                              "shooting_percentage": 41.666664,
                              "epic_saves": 0.4,
                              "clears": 2,
                              "centers": 2,
                              "aerial_hits": 6.4,
                              "first_touches": 0,
                              "flip_resets": 0,
                              "crossbar_hits": 1,
                              "bicycle_hits": 0,
                              "juggle_hits": 0.4
                            },
                            "boost": {
                              "bpm": 462.38083,
                              "bcpm": 463.2083,
                              "avg_amount": 45.09768,
                              "amount_collected": 2675.8,
                              "amount_stolen": 588,
                              "amount_collected_big": 2005.8,
                              "amount_stolen_big": 376.4,
                              "amount_collected_small": 670,
                              "amount_stolen_small": 211.6,
                              "count_collected_big": 22.6,
                              "count_stolen_big": 4,
                              "count_collected_small": 57.8,
                              "count_stolen_small": 18.6,
                              "time_zero_boost": 63.598,
                              "percent_zero_boost": 18.349106,
                              "time_full_boost": 21.842,
                              "percent_full_boost": 6.301789,
                              "amount_overfill": 265.2,
                              "amount_overfill_stolen": 23.4,
                              "amount_used_while_supersonic": 470.2,
                              "time_boost_0_25": 137.034,
                              "time_boost_25_50": 73.822,
                              "time_boost_50_75": 51.260002,
                              "time_boost_75_100": 72.577995,
                              "percent_boost_0_25": 39.53664,
                              "percent_boost_25_50": 21.298904,
                              "percent_boost_50_75": 14.789384,
                              "percent_boost_75_100": 20.93999
                            },
                            "movement": {
                              "avg_speed": 1590.9418,
                              "total_distance": 518111.2,
                              "time_supersonic_speed": 67.20799,
                              "time_boost_speed": 134.096,
                              "time_slow_speed": 144.12,
                              "time_ground": 195.52798,
                              "time_low_air": 134.312,
                              "time_high_air": 15.584,
                              "time_powerslide": 9.786,
                              "count_powerslide": 80.4,
                              "avg_powerslide_duration": 0.122,
                              "avg_speed_percentage": 69.17138,
                              "percent_slow_speed": 41.72264,
                              "percent_boost_speed": 38.820698,
                              "percent_supersonic_speed": 19.456667,
                              "percent_ground": 56.60521,
                              "percent_low_air": 38.88323,
                              "percent_high_air": 4.5115566
                            },
                            "positioning": {
                              "avg_distance_to_ball": 3039.4062,
                              "avg_distance_to_ball_possession": 2870.918,
                              "avg_distance_to_ball_no_possession": 3206.6323,
                              "time_defensive_third": 164.84799,
                              "time_neutral_third": 106.73,
                              "time_offensive_third": 73.841995,
                              "time_defensive_half": 221.13799,
                              "time_offensive_half": 124.28601,
                              "time_behind_ball": 246.324,
                              "time_infront_ball": 99.102005,
                              "time_most_back": 99.14,
                              "time_most_forward": 127.119995,
                              "goals_against_while_last_defender": 0,
                              "time_closest_to_ball": 116.86001,
                              "time_farthest_from_ball": 116.119995,
                              "percent_defensive_third": 47.72393,
                              "percent_offensive_third": 21.377455,
                              "percent_neutral_third": 30.898619,
                              "percent_defensive_half": 64.01929,
                              "percent_offensive_half": 35.98071,
                              "percent_behind_ball": 71.31021,
                              "percent_infront_ball": 28.68979
                            },
                            "demo": {
                              "inflicted": 0.8,
                              "inflicted_in_defensive_half": 0.8,
                              "inflicted_in_offensive_half": 0,
                              "taken": 0.4,
                              "taken_in_defensive_half": 0,
                              "taken_in_offensive_half": 0.4
                            }
                          }
                        }
                      ],
                      "teams": [
                        {
                          "name": "DIGNITAS",
                          "players": [
                            {
                              "platform": "Steam",
                              "id": "76561198847487013",
                              "name": "Kaydop",
                              "team": "DIGNITAS"
                            }
                          ],
                          "cumulative": {
                            "games": 5,
                            "wins": 1,
                            "win_percentage": 20,
                            "play_duration": 5199,
                            "core": {
                              "shots": 36,
                              "shots_against": 33,
                              "goals": 8,
                              "goals_against": 14,
                              "saves": 16,
                              "assists": 7,
                              "score": 3850,
                              "shooting_percentage": 22.222221,
                              "epic_saves": 5,
                              "clears": 15,
                              "centers": 12,
                              "aerial_hits": 25,
                              "first_touches": 5,
                              "flip_resets": 5,
                              "crossbar_hits": 2,
                              "bicycle_hits": 2,
                              "juggle_hits": 0
                            },
                            "boost": {
                              "amount_collected": 36413,
                              "amount_stolen": 6319,
                              "amount_collected_big": 24536,
                              "amount_stolen_big": 3204,
                              "amount_collected_small": 11877,
                              "amount_stolen_small": 3115,
                              "count_collected_big": 297,
                              "count_stolen_big": 39,
                              "count_collected_small": 990,
                              "count_stolen_small": 255,
                              "time_zero_boost": 548.51,
                              "percent_zero_boost": 10.550298,
                              "time_full_boost": 429.64,
                              "percent_full_boost": 8.263897,
                              "amount_overfill": 5291,
                              "amount_overfill_stolen": 721,
                              "amount_used_while_supersonic": 3981,
                              "time_boost_0_25": 1925.83,
                              "time_boost_25_50": 1159.3098,
                              "time_boost_50_75": 898.31995,
                              "time_boost_75_100": 1097.14
                            },
                            "movement": {
                              "total_distance": 7612744,
                              "time_supersonic_speed": 771.22,
                              "time_boost_speed": 2190.41,
                              "time_slow_speed": 2207.66,
                              "time_ground": 2870.12,
                              "time_low_air": 2042.23,
                              "time_high_air": 256.92,
                              "time_powerslide": 139.15,
                              "count_powerslide": 1199
                            },
                            "positioning": {
                              "time_defensive_third": 2488.0203,
                              "time_neutral_third": 1750.9801,
                              "time_offensive_third": 930.26,
                              "time_defensive_half": 3460.1099,
                              "time_offensive_half": 1709.1602,
                              "time_behind_ball": 3695.87,
                              "time_infront_ball": 1473.4299,
                              "avg_distance_to_ball": 0,
                              "avg_distance_to_ball_possession": 0,
                              "avg_distance_to_ball_no_possession": 0
                            },
                            "demo": {
                              "inflicted": 8,
                              "inflicted_in_defensive_half": 1,
                              "inflicted_in_offensive_half": 7,
                              "taken": 10,
                              "taken_in_defensive_half": 8,
                              "taken_in_offensive_half": 2
                            }
                          },
                          "game_average": {
                            "core": {
                              "shots": 7.2,
                              "shots_against": 6.6,
                              "goals": 1.6,
                              "goals_against": 2.8,
                              "saves": 3.2,
                              "assists": 1.4,
                              "score": 770,
                              "shooting_percentage": 22.222223,
                              "epic_saves": 1,
                              "clears": 3,
                              "centers": 2.4,
                              "aerial_hits": 5,
                              "first_touches": 1,
                              "flip_resets": 1,
                              "crossbar_hits": 0.4,
                              "bicycle_hits": 0.4,
                              "juggle_hits": 0
                            },
                            "boost": {
                              "bpm": 1292.4,
                              "bcpm": 1264.6018,
                              "avg_amount": 144.794,
                              "amount_collected": 7282.6,
                              "amount_stolen": 1263.8,
                              "amount_collected_big": 4907.2,
                              "amount_stolen_big": 640.8,
                              "amount_collected_small": 2375.4,
                              "amount_stolen_small": 623,
                              "count_collected_big": 59.4,
                              "count_stolen_big": 7.8,
                              "count_collected_small": 198,
                              "count_stolen_small": 51,
                              "time_zero_boost": 109.702,
                              "percent_zero_boost": 10.550298,
                              "time_full_boost": 429.64,
                              "percent_full_boost": 8.263897,
                              "amount_overfill": 5291,
                              "amount_overfill_stolen": 721,
                              "amount_used_while_supersonic": 3981,
                              "time_boost_0_25": 385.166,
                              "time_boost_25_50": 231.86197,
                              "time_boost_50_75": 179.66399,
                              "time_boost_75_100": 219.42801
                            },
                            "movement": {
                              "total_distance": 1522548.8,
                              "time_supersonic_speed": 154.24399,
                              "time_boost_speed": 438.08197,
                              "time_slow_speed": 441.53198,
                              "time_ground": 574.02405,
                              "time_low_air": 408.44598,
                              "time_high_air": 51.384003,
                              "time_powerslide": 27.829998,
                              "count_powerslide": 239.8
                            },
                            "positioning": {
                              "time_defensive_third": 497.60406,
                              "time_neutral_third": 350.196,
                              "time_offensive_third": 186.052,
                              "time_defensive_half": 692.022,
                              "time_offensive_half": 341.83203,
                              "time_behind_ball": 739.174,
                              "time_infront_ball": 294.68597,
                              "avg_distance_to_ball": 9079.8,
                              "avg_distance_to_ball_possession": 8880.4,
                              "avg_distance_to_ball_no_possession": 9244
                            },
                            "demo": {
                              "inflicted": 1.6,
                              "inflicted_in_defensive_half": 0.2,
                              "inflicted_in_offensive_half": 1.4,
                              "taken": 2,
                              "taken_in_defensive_half": 1.6,
                              "taken_in_offensive_half": 0.4
                            }
                          }
                        },
                        {
                          "name": "CLOUD9",
                          "players": [
                            {
                              "platform": "Steam",
                              "id": "76561198847538100",
                              "name": "Squishy",
                              "team": "CLOUD9"
                            }
                          ],
                          "cumulative": {
                            "games": 5,
                            "wins": 4,
                            "win_percentage": 80,
                            "play_duration": 5199,
                            "core": {
                              "shots": 33,
                              "shots_against": 36,
                              "goals": 14,
                              "goals_against": 8,
                              "saves": 22,
                              "assists": 11,
                              "score": 5190,
                              "shooting_percentage": 42.424244,
                              "epic_saves": 2,
                              "clears": 10,
                              "centers": 17,
                              "aerial_hits": 20,
                              "first_touches": 2,
                              "flip_resets": 2,
                              "crossbar_hits": 2,
                              "bicycle_hits": 0,
                              "juggle_hits": 0
                            },
                            "boost": {
                              "amount_collected": 35900,
                              "amount_stolen": 6797,
                              "amount_collected_big": 26794,
                              "amount_stolen_big": 4227,
                              "amount_collected_small": 9106,
                              "amount_stolen_small": 2570,
                              "count_collected_big": 307,
                              "count_stolen_big": 46,
                              "count_collected_small": 767,
                              "count_stolen_small": 210,
                              "time_zero_boost": 788.91003,
                              "percent_zero_boost": 15.174264,
                              "time_full_boost": 402.93,
                              "percent_full_boost": 7.7501445,
                              "amount_overfill": 3907,
                              "amount_overfill_stolen": 366,
                              "amount_used_while_supersonic": 4908,
                              "time_boost_0_25": 2008.7001,
                              "time_boost_25_50": 1147.12,
                              "time_boost_50_75": 806.30005,
                              "time_boost_75_100": 1060.93
                            },
                            "movement": {
                              "total_distance": 7578159,
                              "time_supersonic_speed": 809.22,
                              "time_boost_speed": 2070.47,
                              "time_slow_speed": 2295.5198,
                              "time_ground": 2877.11,
                              "time_low_air": 2017.54,
                              "time_high_air": 280.53,
                              "time_powerslide": 112.840004,
                              "count_powerslide": 1127
                            },
                            "positioning": {
                              "time_defensive_third": 2573.8599,
                              "time_neutral_third": 1649.26,
                              "time_offensive_third": 952.01996,
                              "time_defensive_half": 3483.75,
                              "time_offensive_half": 1691.39,
                              "time_behind_ball": 3880.5203,
                              "time_infront_ball": 1294.65,
                              "avg_distance_to_ball": 0,
                              "avg_distance_to_ball_possession": 0,
                              "avg_distance_to_ball_no_possession": 0
                            },
                            "demo": {
                              "inflicted": 10,
                              "inflicted_in_defensive_half": 8,
                              "inflicted_in_offensive_half": 2,
                              "taken": 8,
                              "taken_in_defensive_half": 5,
                              "taken_in_offensive_half": 3
                            }
                          },
                          "game_average": {
                            "core": {
                              "shots": 6.6,
                              "shots_against": 7.2,
                              "goals": 2.8,
                              "goals_against": 1.6,
                              "saves": 4.4,
                              "assists": 2.2,
                              "score": 1038,
                              "shooting_percentage": 42.424244,
                              "epic_saves": 0.4,
                              "clears": 2,
                              "centers": 3.4,
                              "aerial_hits": 4,
                              "first_touches": 0.4,
                              "flip_resets": 0.4,
                              "crossbar_hits": 0.4,
                              "bicycle_hits": 0,
                              "juggle_hits": 0
                            },
                            "boost": {
                              "bpm": 1262,
                              "bcpm": 1241.8713,
                              "avg_amount": 136.43198,
                              "amount_collected": 7180,
                              "amount_stolen": 1359.4,
                              "amount_collected_big": 5358.8,
                              "amount_stolen_big": 845.4,
                              "amount_collected_small": 1821.2,
                              "amount_stolen_small": 514,
                              "count_collected_big": 61.4,
                              "count_stolen_big": 9.2,
                              "count_collected_small": 153.4,
                              "count_stolen_small": 42,
                              "time_zero_boost": 157.78201,
                              "percent_zero_boost": 15.174264,
                              "time_full_boost": 402.93,
                              "percent_full_boost": 7.7501445,
                              "amount_overfill": 3907,
                              "amount_overfill_stolen": 366,
                              "amount_used_while_supersonic": 4908,
                              "time_boost_0_25": 401.74002,
                              "time_boost_25_50": 229.424,
                              "time_boost_50_75": 161.26001,
                              "time_boost_75_100": 212.186
                            },
                            "movement": {
                              "total_distance": 1515631.8,
                              "time_supersonic_speed": 161.844,
                              "time_boost_speed": 414.094,
                              "time_slow_speed": 459.10394,
                              "time_ground": 575.422,
                              "time_low_air": 403.508,
                              "time_high_air": 56.106,
                              "time_powerslide": 22.568,
                              "count_powerslide": 225.4
                            },
                            "positioning": {
                              "time_defensive_third": 514.772,
                              "time_neutral_third": 329.852,
                              "time_offensive_third": 190.40399,
                              "time_defensive_half": 696.75,
                              "time_offensive_half": 338.278,
                              "time_behind_ball": 776.10406,
                              "time_infront_ball": 258.93,
                              "avg_distance_to_ball": 9060.2,
                              "avg_distance_to_ball_possession": 8795.4,
                              "avg_distance_to_ball_no_possession": 9360
                            },
                            "demo": {
                              "inflicted": 2,
                              "inflicted_in_defensive_half": 1.6,
                              "inflicted_in_offensive_half": 0.4,
                              "taken": 1.6,
                              "taken_in_defensive_half": 1,
                              "taken_in_offensive_half": 0.6
                            }
                          }
                        }
                      ],
                      "duplicates": {
                        "total_replays": 5,
                        "duplicate_replays": 0,
                        "unique_games": 5
                      }
                    }
                  },
                  "pending": {
                    "summary": "A group with replays not processed yet",
                    "value": {
                      "id": "rlcs-s6-final-series-6r6rq5s1zk",
                      "link": "https://ballchasing.com/api/groups/rlcs-s6-final-series-6r6rq5s1zk",
                      "name": "RLCS S6 Final Series",
                      "created": "2023-06-11T16:39:26.684465Z",
                      "status": "pending_replays",
                      "player_identification": "by-id",
                      "team_identification": "by-distinct-players",
                      "shared": false,
                      "creator": {
                        "steam_id": "76561198141161044",
                        "name": "Can't Fly",
                        "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                        "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg",
                        "avatar_full": "",
                        "avatar_medium": ""
                      }
                    }
                  },
                  "failed": {
                    "summary": "A group with failed replays",
                    "value": {
                      "id": "rlcs-s6-final-series-6r6rq5s1zk",
                      "link": "https://ballchasing.com/api/groups/rlcs-s6-final-series-6r6rq5s1zk",
                      "name": "RLCS S6 Final Series",
                      "created": "2023-06-11T16:39:26.684465Z",
                      "status": "failed_replays",
                      "player_identification": "by-id",
                      "team_identification": "by-distinct-players",
                      "shared": false,
                      "creator": {
                        "steam_id": "76561198141161044",
                        "name": "Can't Fly",
                        "profile_url": "https://steamcommunity.com/id/cantflyrl/",
                        "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2e988d06c9935eb54b09488ef0b03d94f9c157f0.jpg",
                        "avatar_full": "",
                        "avatar_medium": ""
                      },
                      "failed_replays": [
                        "d78ddb13-c3b6-4665-9401-e437f8bd9835"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchGroup",
        "tags": [
          "groups"
        ],
        "summary": "Update a group",
        "description": "Change one or more fields of one of your groups: player and team identification, parent, sharing, and the\nreplays directly in it. The changes are applied together, or not at all.\n\n> **Warning**\n> This changes the group for good. The try-it console sends a **real** request with your key.\n\nSomeone else's group gets a `404`, like an unknown one.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupPatch"
              },
              "examples": {
                "playerIdentification": {
                  "summary": "Set the player identification",
                  "value": {
                    "player_identification": "by-name"
                  }
                },
                "teamIdentification": {
                  "summary": "Set the team identification",
                  "value": {
                    "team_identification": "by-player-clusters"
                  }
                },
                "dedup": {
                  "summary": "Count each game once, in the group and its sub-groups",
                  "value": {
                    "dedup": true
                  }
                },
                "parent": {
                  "summary": "Change the parent group",
                  "value": {
                    "parent": "new-parent-group-id"
                  }
                },
                "topLevel": {
                  "summary": "Make it a top level group",
                  "value": {
                    "parent": ""
                  }
                },
                "shared": {
                  "summary": "Share the group",
                  "value": {
                    "shared": true
                  }
                },
                "assign": {
                  "summary": "Put replays in the group",
                  "value": {
                    "assign_replays": [
                      "7fd09c82-b0d8-4d85-b875-fe1dd3a3a3c1",
                      "56889c3e-c420-45db-92fd-47ce2a3604b0"
                    ]
                  }
                },
                "unassign": {
                  "summary": "Take replays out of your groups",
                  "value": {
                    "unassign_replays": [
                      "56889c3e-c420-45db-92fd-47ce2a3604b0"
                    ]
                  }
                },
                "multiple": {
                  "summary": "Several fields at once",
                  "value": {
                    "player_identification": "by-name",
                    "parent": "new-parent-group-id",
                    "shared": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Group updated (or nothing to change)."
          },
          "400": {
            "description": "Invalid request: invalid JSON or identification, more than 150 replays to assign or 300 to unassign, an\ninvalid or inaccessible replay id, or a parent that does not exist (or is not yours), is the group itself or\none of its sub-groups, or would make the tree deeper than 32 levels.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "error while changing group parent to \"new-parent-group-id\": not found"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "description": "No such group, or not yours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Group not found"
                }
              }
            }
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteGroup",
        "tags": [
          "groups"
        ],
        "summary": "Delete a group",
        "description": "Delete one of your groups, with its sub-groups and their upload tokens. The replays are **not** deleted: they\njust leave the deleted groups.\n\n> **Warning**\n> This is permanent and cannot be undone. The try-it console sends a **real** request with your key.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "responses": {
          "204": {
            "description": "Group deleted."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "The group holds a group of another user, so it cannot be deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "This group holds a group of another user: it cannot be deleted"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/groups/{id}/duplicate-replays": {
      "parameters": [
        {
          "$ref": "#/components/parameters/GroupId"
        }
      ],
      "get": {
        "operationId": "listGroupDuplicateReplays",
        "tags": [
          "groups"
        ],
        "summary": "List a group's duplicate replays",
        "description": "The group's replays that hold a game already held in another of its replays: one row per replay **not counted**\nwhen the group counts each game once (see \"Replays of the same game\" in `GET /groups/{id}`), with the replay that\ncounts (`same_game_as`).\n\nA game held in 3 replays gives 2 rows with the same `same_game_as`. The replay that counts and the games held in a\nsingle replay have no row. The rows over all pages add up to the group's `duplicates.duplicate_replays`. The list\nis the same whatever the group's `dedup` setting, and only uses the replays you may see.\n\nRows are sorted by `replay_id`. When there are more, the response has a `next` field: the **full URL** of the\nnext page. Each page is computed again from the group's current replays: if replays are added or removed while\nyou walk the pages, a page can reflect the change.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "Returns at most `count` rows.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 200
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Only the rows whose `replay_id` comes after this one. Set by the `next` URL.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of rows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateReplayList"
                },
                "example": {
                  "list": [
                    {
                      "replay_id": "0b5c7a7e-4c38-4c5a-9f7e-2d1c3a8e5f10",
                      "same_game_as": "8f2d4a61-1b7e-4e0a-a3c9-6d5e2f4b7c21"
                    },
                    {
                      "replay_id": "2e9a1f3c-7d64-4b8e-b0a5-91c2d3e4f5a6",
                      "same_game_as": "8f2d4a61-1b7e-4e0a-a3c9-6d5e2f4b7c21"
                    }
                  ],
                  "next": "https://ballchasing.com/api/groups/rlcs-world-championship-s6-bfy1532kn0/duplicate-replays?after=2e9a1f3c-7d64-4b8e-b0a5-91c2d3e4f5a6&count=2"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "description": "The group holds more replays than its owner's limit for stats, or took too long to compute.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "This group has too many replays to compute its duplicates (the same limit as its stats)"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/groups/{id}/token": {
      "parameters": [
        {
          "$ref": "#/components/parameters/GroupId"
        }
      ],
      "get": {
        "operationId": "getGroupUploadToken",
        "tags": [
          "groups"
        ],
        "summary": "Get a group's upload token",
        "description": "Get the **upload token** of one of your groups: a key that uploads replays straight into that group (with\n`POST /v2/upload`, as the `Authorization` header), for an auto-upload tool or a teammate. Replays uploaded with\nit are **yours**: they count against your upload quota, and as your own files for the daily download limit.\n\nA group has at most one token. `204` when the group has none yet: create it with `POST`.\n\nGroup upload tokens are available to Patreon patrons (Gold and up) and to the accounts they were enabled for;\nother accounts get a `404`.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "responses": {
          "200": {
            "description": "The group's upload token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupUploadToken"
                },
                "example": {
                  "token": "g/Xq3vB8sKfLm2NpR7tYw9ZcD4eHjU6aGi1oQ5bVnE",
                  "created_at": "2026-03-14T18:02:11.482113Z",
                  "updated_at": "2026-09-02T09:41:57.120934Z",
                  "generation": 3
                }
              }
            }
          },
          "204": {
            "description": "The group has no upload token yet."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "description": "No such group, not yours, or group upload tokens are not available to your account.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Group not found"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "createGroupUploadToken",
        "tags": [
          "groups"
        ],
        "summary": "Create or replace a group's upload token",
        "description": "Create the upload token of one of your groups, or **replace** it: the previous token stops working at once.\n\n> **Warning**\n> Replacing the token breaks the tools that use the old one. The try-it console sends a **real** request with\n> your key.\n\nGroup upload tokens are available to Patreon patrons (Gold and up) and to the accounts they were enabled for;\nother accounts get a `404`.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "responses": {
          "201": {
            "description": "The new token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupUploadToken"
                },
                "examples": {
                  "created": {
                    "summary": "The group's first token",
                    "value": {
                      "token": "g/Xq3vB8sKfLm2NpR7tYw9ZcD4eHjU6aGi1oQ5bVnE",
                      "created_at": "2026-03-14T18:02:11.482113Z",
                      "generation": 1
                    }
                  },
                  "replaced": {
                    "summary": "A replaced token",
                    "value": {
                      "token": "g/7LkPz2WqYc9TbN4rVx1JmHs8DfGa3UeK6oRi5wBt",
                      "created_at": "2026-03-14T18:02:11.482113Z",
                      "updated_at": "2026-11-20T10:15:03.904211Z",
                      "generation": 4
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "404": {
            "description": "No such group, not yours, or group upload tokens are not available to your account.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Group token not found"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/maps": {
      "get": {
        "operationId": "listMaps",
        "tags": [
          "misc"
        ],
        "summary": "List the maps",
        "description": "Get the map codes and their names (map as in stadium): the codes of `map_code` in the replays, and the values\nof the `map` filter of `GET /replays`.\n\nSome maps have several codes (their versions), with the same name.\n\n**Rate limits**\n\n| Tier | Per second | Per hour |\n|------|-----------:|---------:|\n| Legend and GC patrons | 16 calls | - |\n| Champion patrons | 8 calls | - |\n| Diamond patrons | 4 calls | 5000 calls |\n| Gold patrons | 2 calls | 2000 calls |\n| All others | 2 calls | 1000 calls |\n| Discord moderators | 8 calls | - |\n| Organisation and bot accounts | 16 calls | - |\n",
        "x-rate-limits": {
          "legend": {
            "perSecond": 16
          },
          "gc": {
            "perSecond": 16
          },
          "champion": {
            "perSecond": 8
          },
          "diamond": {
            "perSecond": 4,
            "perHour": 5000
          },
          "gold": {
            "perSecond": 2,
            "perHour": 2000
          },
          "others": {
            "perSecond": 2,
            "perHour": 1000
          },
          "discordMod": {
            "perSecond": 8
          },
          "org": {
            "perSecond": 16
          },
          "bot": {
            "perSecond": 16
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "cURL",
            "source": "curl -v \\\n    -H \"Authorization: $token\" \\\n    'https://ballchasing.com/api/maps'\n"
          }
        ],
        "responses": {
          "200": {
            "description": "Map names by map code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string",
                    "description": "The map name."
                  }
                },
                "example": {
                  "arc_darc_p": "Starbase ARC (Aftermath)",
                  "arc_p": "Starbase ARC",
                  "arc_standard_p": "Starbase ARC (Standard)",
                  "bb_p": "Champions Field (NFL)",
                  "beach_night_grs_p": "Salty Shores (Salty Fest)",
                  "beach_night_p": "Salty Shores (Night)",
                  "beach_p": "Salty Shores",
                  "beachvolley": "Salty Shores (Volley)",
                  "chn_stadium_day_p": "Forbidden Temple (Day)",
                  "chn_stadium_p": "Forbidden Temple",
                  "cs_day_p": "Champions Field (Day)",
                  "cs_hw_p": "Rivals Arena",
                  "cs_p": "Champions Field",
                  "eurostadium_dusk_p": "Mannfield (Dusk)",
                  "eurostadium_night_p": "Mannfield (Night)",
                  "eurostadium_p": "Mannfield",
                  "eurostadium_rainy_p": "Mannfield (Stormy)",
                  "eurostadium_snownight_p": "Mannfield (Snowy)",
                  "farm_grs_p": "Farmstead (Pitched)",
                  "farm_hw_p": "Farmstead (Spooky)",
                  "farm_night_p": "Farmstead (Night)",
                  "farm_p": "Farmstead",
                  "farm_upsidedown_p": "Farmstead (The Upside Down)",
                  "ff_dusk_p": "Estadio Vida (Dusk)",
                  "fni_stadium_p": "Forbidden Temple (Fire & Ice)",
                  "haunted_trainstation_p": "Urban Central (Haunted)",
                  "hoopsstadium_p": "Dunk House",
                  "hoopsstreet_p": "The Block (Dusk)",
                  "ko_calavera_p": "Calavera",
                  "ko_carbon_p": "Carbon",
                  "ko_quadron_p": "Quadron",
                  "labs_basin_p": "Basin",
                  "labs_circlepillars_p": "Pillars",
                  "labs_corridor_p": "Corridor",
                  "labs_cosmic_p": "Cosmic",
                  "labs_cosmic_v4_p": "Cosmic",
                  "labs_doublegoal_p": "Double Goal",
                  "labs_doublegoal_v2_p": "Double Goal",
                  "labs_galleon_mast_p": "Galleon Retro",
                  "labs_galleon_p": "Galleon",
                  "labs_holyfield_p": "Loophole",
                  "labs_octagon_02_p": "Octagon",
                  "labs_octagon_p": "Octagon",
                  "labs_pillarglass_p": "Hourglass",
                  "labs_pillarheat_p": "Barricade",
                  "labs_pillarwings_p": "Colossus",
                  "labs_underpass_p": "Underpass",
                  "labs_underpass_v0_p": "Underpass",
                  "labs_utopia_p": "Utopia Retro",
                  "music_p": "Neon Fields",
                  "neotokyo_arcade_p": "Neo Tokyo (Arcade)",
                  "neotokyo_hax_p": "Neo Tokyo (Hacked)",
                  "neotokyo_p": "Neo Tokyo",
                  "neotokyo_standard_p": "Neo Tokyo (Standard)",
                  "neotokyo_toon_p": "Neo Tokyo (Comic)",
                  "outlaw_oasis_p": "Deadeye Canyon (Oasis)",
                  "outlaw_p": "Deadeye Canyon",
                  "park_bman_p": "Beckwith Park (Night)",
                  "park_night_p": "Beckwith Park (Midnight)",
                  "park_p": "Beckwith Park",
                  "park_rainy_p": "Beckwith Park (Stormy)",
                  "park_snowy_p": "Beckwith Park (Snowy)",
                  "shattershot_p": "Core 707",
                  "stadium_day_p": "DFH Stadium (Day)",
                  "stadium_foggy_p": "DFH Stadium (Stormy)",
                  "stadium_p": "DFH Stadium",
                  "stadium_race_day_p": "DFH Stadium (Circuit)",
                  "stadium_winter_p": "DFH Stadium (Snowy)",
                  "street_p": "Sovereign Heights (Dusk)",
                  "swoosh_p": "Champions Field (Nike FC)",
                  "throwbackhockey_p": "Throwback Stadium (Snowy)",
                  "throwbackstadium_p": "Throwback Stadium",
                  "trainstation_dawn_p": "Urban Central (Dawn)",
                  "trainstation_night_p": "Urban Central (Night)",
                  "trainstation_p": "Urban Central",
                  "trainstation_spooky_p": "Urban Central (Spooky)",
                  "underwater_grs_p": "AquaDome (Salty Shallows)",
                  "underwater_p": "Aquadome",
                  "utopiastadium_dusk_p": "Utopia Coliseum (Dusk)",
                  "utopiastadium_lux_p": "Utopia Coliseum (Gilded)",
                  "utopiastadium_p": "Utopia Coliseum",
                  "utopiastadium_snow_p": "Utopia Coliseum (Snowy)",
                  "wasteland_grs_p": "Wasteland (Pitched)",
                  "wasteland_night_p": "Wasteland (Night)",
                  "wasteland_night_s_p": "Wasteland (Standard, Night)",
                  "wasteland_p": "Wasteland",
                  "wasteland_s_p": "Wasteland (Standard)",
                  "woods_night_p": "Drift Woods (Night",
                  "woods_p": "Drift Woods"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Restricted"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Your API token, [from the upload page](https://ballchasing.com/upload), sent as is (no `Bearer` prefix).\nThe upload endpoint also accepts a group upload token (`g/...`).\n"
      }
    },
    "schemas": {
      "Chat": {
        "type": "object",
        "description": "A random Rocket League quick chat exchange, for fun. Keys are speaker names, values are quick chats.",
        "additionalProperties": {
          "type": "string"
        },
        "example": {
          "Iceman": "No Problem.",
          "YOU": "My Fault."
        }
      },
      "QuotaPair": {
        "type": "object",
        "required": [
          "used"
        ],
        "properties": {
          "used": {
            "type": "integer",
            "description": "Replays uploaded in the window."
          },
          "max": {
            "type": "integer",
            "description": "Most replays allowed in the window (absent when unlimited)."
          },
          "unlimited": {
            "type": "boolean",
            "description": "`true` when the window has no limit (`max` is then absent)."
          },
          "error": {
            "type": "string",
            "description": "Set when the uploads could not be counted (`used` is then 0)."
          }
        }
      },
      "ReplayFileDownloads": {
        "type": "object",
        "description": "Downloads of original replay files uploaded by **other accounts**, today (UTC), against the account's daily limit\n(see [Download a replay file](#tag/replays/download-replay-file)). One count for the API (`GET /api/replays/{id}/file`),\nthe site's download button and group zips together; each replay counts once a day, and the replays the account\nuploaded never count. Once `used` reaches a `max` above 0, downloading a replay not downloaded yet today answers 429\nuntil `resets_at`. A `max` of 0 means downloading other accounts' replays is turned off for the account: those\ndownloads answer 403, also after `resets_at`. Reading it (pinging) never changes it.\n",
        "required": [
          "used",
          "resets_at"
        ],
        "properties": {
          "used": {
            "type": "integer",
            "description": "Distinct replays of other accounts downloaded today (UTC). Can be above `max` after the account's limit went\ndown during the day. For an account that shares its daily limit with other accounts, the distinct replays they\ndownloaded together today.\n"
          },
          "max": {
            "type": "integer",
            "description": "The account's daily limit (absent when unlimited; `0` when downloading other accounts' replays is turned off for the account, see above)."
          },
          "unlimited": {
            "type": "boolean",
            "description": "`true` when the account has no daily limit (`max` is then absent)."
          },
          "resets_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the count restarts at 0 (the next midnight UTC), RFC 3339."
          },
          "error": {
            "type": "string",
            "description": "Set when the count could not be read (`used` is then 0)."
          }
        }
      },
      "Ping": {
        "type": "object",
        "required": [
          "chaser",
          "boost",
          "ball",
          "chat",
          "name",
          "steam_id",
          "type",
          "quota"
        ],
        "properties": {
          "chaser": {
            "type": "boolean",
            "const": true
          },
          "boost": {
            "type": "string",
            "const": "over ball"
          },
          "ball": {
            "type": "string",
            "const": "is life"
          },
          "chat": {
            "$ref": "#/components/schemas/Chat"
          },
          "name": {
            "type": "string",
            "description": "Steam name of the API key's owner."
          },
          "steam_id": {
            "type": "string",
            "description": "SteamID64 of the API key's owner."
          },
          "type": {
            "type": "string",
            "description": "The kind of account behind the key, the first that applies: `admin`, `org` (approved organisation\naccount), `bot` (approved bot account), its Patreon tier (`gold`, `diamond`, `champion`, `gc`, `legend`),\nelse `regular`.\n",
            "enum": [
              "regular",
              "gold",
              "diamond",
              "champion",
              "gc",
              "legend",
              "org",
              "bot",
              "admin"
            ]
          },
          "quota": {
            "type": "object",
            "description": "The quotas of the account: replays uploaded in the last 24 hours and 7 days, and the maximum of each window;\noriginal replay files of other accounts downloaded today (UTC), and the daily limit.\n",
            "properties": {
              "uploads_in_24h": {
                "$ref": "#/components/schemas/QuotaPair"
              },
              "uploads_in_7d": {
                "$ref": "#/components/schemas/QuotaPair"
              },
              "replay_file_downloads": {
                "$ref": "#/components/schemas/ReplayFileDownloads"
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "The body of every error response.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong, for humans."
          },
          "chat": {
            "$ref": "#/components/schemas/Chat"
          },
          "request_id": {
            "type": "string",
            "description": "The id of the request, to quote when reporting a problem."
          },
          "server": {
            "type": "string",
            "description": "The server that answered, to quote when reporting a problem."
          }
        }
      },
      "RestrictedError": {
        "description": "A restriction the site's owner put on the account.",
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "account_banned",
                  "api_access_blocked",
                  "files_suspended"
                ],
                "description": "Which restriction refused the request. Do not retry the refused requests while it is active: `account_banned` refuses every API call; `api_access_blocked` refuses reads (`GET`/`HEAD`) except `GET /api/`, writes and uploads still work; `files_suspended` refuses replay files uploaded by other players, your own still download."
              }
            }
          }
        ]
      },
      "Visibility": {
        "type": "string",
        "enum": [
          "public",
          "unlisted",
          "private"
        ],
        "description": "* `public`: listed and searchable by everyone\n* `unlisted`: visible to anyone with the link, not listed\n* `private`: only visible to you\n"
      },
      "UploadMatch": {
        "type": "object",
        "title": "Match",
        "description": "The game's match data, as Psyonix's match history API returns it for this game (an RLAPI `Match` object). Only the\nfields below are read; other fields are allowed and ignored. Every field is optional except `MatchGUID`: without it,\nthe rest is not used.\n\nThe values are reports: ballchasing checks them against its own readings from Psyonix before showing any of them,\nand hides those that disagree.\n\nLimits: at most 64 KiB, nested at most 32 levels deep, at most 64 `Players`. A value that breaks them, is not a\nJSON object, or has a field of the wrong type is ignored: the upload goes on and its response is the same as\nwithout `match`.\n",
        "required": [
          "MatchGUID"
        ],
        "properties": {
          "MatchGUID": {
            "type": "string",
            "description": "The game's match GUID. It ties the report to the replay; the same GUID is read from the replay file.",
            "examples": [
              "5B60E82A11EB9B1C01F2449B87D06070"
            ]
          },
          "Playlist": {
            "type": "integer",
            "description": "Psyonix's playlist id (e.g. `10` ranked duel, `11` ranked doubles, `13` ranked standard).",
            "examples": [
              11
            ]
          },
          "MapName": {
            "type": "string",
            "examples": [
              "Stadium_P"
            ]
          },
          "RecordStartTimestamp": {
            "type": "number",
            "description": "Start of the match, Unix time in seconds."
          },
          "SecondsPlayed": {
            "type": "number"
          },
          "OvertimeSecondsPlayed": {
            "type": "number"
          },
          "WinningTeam": {
            "type": "integer",
            "description": "`0` (blue) or `1` (orange)."
          },
          "Team0Score": {
            "type": "integer",
            "description": "Blue team's goals."
          },
          "Team1Score": {
            "type": "integer",
            "description": "Orange team's goals."
          },
          "bOverTime": {
            "type": "boolean"
          },
          "bNoContest": {
            "type": "boolean"
          },
          "bForfeit": {
            "type": "boolean"
          },
          "Players": {
            "type": "array",
            "maxItems": 64,
            "items": {
              "type": "object",
              "title": "MatchPlayer",
              "properties": {
                "PlayerID": {
                  "type": "string",
                  "description": "Platform, platform id and split-screen index, separated by `|`.",
                  "examples": [
                    "Steam|76561198141161044|0",
                    "Epic|0123456789abcdef0123456789abcdef|0"
                  ]
                },
                "LastTeam": {
                  "type": "integer",
                  "description": "`0` (blue) or `1` (orange)."
                },
                "ConnectTimestamp": {
                  "type": "number"
                },
                "JoinTimestamp": {
                  "type": "number"
                },
                "LeaveTimestamp": {
                  "type": "number"
                },
                "SecondsPlayed": {
                  "type": "number"
                },
                "bAbandoned": {
                  "type": "boolean"
                },
                "Skills": {
                  "type": "object",
                  "title": "MatchPlayerSkills",
                  "description": "The player's skill in this match's playlist, before (`Prev*`) and after the match.",
                  "properties": {
                    "Mu": {
                      "type": "number",
                      "description": "Skill after the match, on Psyonix's internal scale (MMR is `Mu × 20 + 100`)."
                    },
                    "Sigma": {
                      "type": "number",
                      "description": "Uncertainty of `Mu` after the match."
                    },
                    "Tier": {
                      "type": "integer",
                      "description": "Rank after the match (`0` unranked, `1` Bronze I … `22` Supersonic Legend)."
                    },
                    "Division": {
                      "type": "integer",
                      "description": "Division after the match, `0` (I) to `3` (IV)."
                    },
                    "PrevMu": {
                      "type": "number",
                      "description": "Skill before the match."
                    },
                    "PrevSigma": {
                      "type": "number"
                    },
                    "PrevTier": {
                      "type": "integer"
                    },
                    "PrevDivision": {
                      "type": "integer"
                    },
                    "bValid": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "UploadCreated": {
        "type": "object",
        "required": [
          "id",
          "location"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The id of the created replay."
          },
          "location": {
            "type": "string",
            "format": "uri",
            "description": "The replay's page on ballchasing.com (also in the `Location` header)."
          }
        }
      },
      "UploadDuplicate": {
        "type": "object",
        "required": [
          "error"
        ],
        "description": "The replay was already uploaded. `id` and `location` point to the existing replay, except for an upload made\nwith a group upload token of a replay that the group's owner already has **outside** that group (and its\nsub-groups): then only `error` and `chat` are set.\n",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The id of the existing replay."
          },
          "location": {
            "type": "string",
            "format": "uri",
            "description": "The existing replay's page on ballchasing.com."
          },
          "error": {
            "type": "string",
            "const": "duplicate replay"
          },
          "chat": {
            "$ref": "#/components/schemas/Chat"
          }
        }
      },
      "UploadOverQuota": {
        "type": "object",
        "required": [
          "error",
          "max_uploads",
          "window"
        ],
        "description": "The account reached its upload quota (see the `quota` of the ping endpoint).",
        "properties": {
          "error": {
            "type": "string"
          },
          "max_uploads": {
            "type": "integer",
            "description": "The quota of the window."
          },
          "window": {
            "type": "string",
            "enum": [
              "day",
              "week"
            ]
          },
          "chat": {
            "$ref": "#/components/schemas/Chat"
          }
        }
      },
      "Playlist": {
        "type": "string",
        "description": "Playlist code.",
        "enum": [
          "unranked-duels",
          "unranked-doubles",
          "unranked-standard",
          "unranked-chaos",
          "private",
          "season",
          "offline",
          "ranked-duels",
          "ranked-doubles",
          "ranked-solo-standard",
          "ranked-standard",
          "snowday",
          "rocketlabs",
          "hoops",
          "rumble",
          "tournament",
          "dropshot",
          "local-lobby",
          "anniversary",
          "third-party",
          "ranked-hoops",
          "ranked-rumble",
          "ranked-dropshot",
          "ranked-snowday",
          "ghost-hunt",
          "beach-ball",
          "spike-rush",
          "rocket-labs",
          "dropshot-rumble",
          "heatseeker",
          "gridiron",
          "spooky-cube"
        ]
      },
      "RankCode": {
        "type": "string",
        "description": "Rank code.",
        "enum": [
          "unranked",
          "bronze-1",
          "bronze-2",
          "bronze-3",
          "silver-1",
          "silver-2",
          "silver-3",
          "gold-1",
          "gold-2",
          "gold-3",
          "platinum-1",
          "platinum-2",
          "platinum-3",
          "diamond-1",
          "diamond-2",
          "diamond-3",
          "champion-1",
          "champion-2",
          "champion-3",
          "grand-champion",
          "grand-champion-1",
          "grand-champion-2",
          "grand-champion-3",
          "supersonic-legend"
        ]
      },
      "Rank": {
        "type": "object",
        "description": "A Rocket League rank (only set for ranked playlists).",
        "properties": {
          "id": {
            "type": "string",
            "description": "Rank code, as used by the `min-rank` and `max-rank` filters.",
            "examples": [
              "champion-2"
            ]
          },
          "tier": {
            "type": "integer"
          },
          "division": {
            "type": "integer",
            "description": "Division, from 1 (absent for ranks without divisions)."
          },
          "name": {
            "type": "string",
            "examples": [
              "Champion II Division 3"
            ]
          }
        }
      },
      "User": {
        "type": "object",
        "description": "A ballchasing.com account (a Steam account).",
        "properties": {
          "steam_id": {
            "type": "string",
            "description": "SteamID64 of the account.",
            "examples": [
              "76561198141161044"
            ]
          },
          "name": {
            "type": "string",
            "description": "Steam display name."
          },
          "profile_url": {
            "type": "string",
            "description": "Steam profile URL."
          },
          "avatar": {
            "type": "string",
            "description": "Small avatar URL (empty when unknown)."
          },
          "avatar_full": {
            "type": "string",
            "description": "Large avatar URL (empty when unknown)."
          },
          "avatar_medium": {
            "type": "string",
            "description": "Medium avatar URL (empty when unknown)."
          }
        }
      },
      "GroupRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "API URL of the group."
          }
        }
      },
      "PlayerId": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string",
            "description": "Platform, lower case in `GET /replays` and `GET /replays/{id}`.",
            "examples": [
              "steam",
              "epic",
              "ps4",
              "xbox",
              "switch"
            ]
          },
          "id": {
            "type": "string",
            "description": "The id of the player on the platform."
          },
          "player_number": {
            "type": "integer",
            "description": "Split-screen player number (absent for the main player)."
          }
        }
      },
      "ReplaySummaryTeam": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "goals": {
            "type": "integer"
          },
          "players": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "start_time": {
                  "type": "number"
                },
                "end_time": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "id": {
                  "$ref": "#/components/schemas/PlayerId"
                },
                "mvp": {
                  "type": "boolean"
                },
                "rank": {
                  "$ref": "#/components/schemas/Rank"
                },
                "score": {
                  "type": "integer"
                },
                "pro": {
                  "type": "boolean",
                  "description": "Whether the player is a known pro player."
                },
                "liquipedia_roles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "ReplaySummary": {
        "type": "object",
        "description": "A replay in a listing (no stats).",
        "required": [
          "link"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "API URL of the replay."
          },
          "rocket_league_id": {
            "type": "string"
          },
          "replay_title": {
            "type": "string"
          },
          "recorder": {
            "type": "string"
          },
          "map_code": {
            "type": "string"
          },
          "map_name": {
            "type": "string"
          },
          "playlist_id": {
            "$ref": "#/components/schemas/Playlist"
          },
          "playlist_name": {
            "type": "string"
          },
          "duration": {
            "type": "integer"
          },
          "overtime": {
            "type": "boolean"
          },
          "overtime_seconds": {
            "type": "integer"
          },
          "season": {
            "type": "integer"
          },
          "season_type": {
            "type": "string",
            "enum": [
              "free2play"
            ]
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "date_has_tz": {
            "type": "boolean"
          },
          "visibility": {
            "$ref": "#/components/schemas/Visibility"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "min_rank": {
            "$ref": "#/components/schemas/Rank"
          },
          "max_rank": {
            "$ref": "#/components/schemas/Rank"
          },
          "uploader": {
            "$ref": "#/components/schemas/User"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupRef"
            }
          },
          "blue": {
            "$ref": "#/components/schemas/ReplaySummaryTeam"
          },
          "orange": {
            "$ref": "#/components/schemas/ReplaySummaryTeam"
          }
        }
      },
      "ReplayList": {
        "type": "object",
        "required": [
          "list"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "description": "Total number of replays matching the filters (all pages), counted up to 10,000 (more reads 10000). Absent\nwhen no replay matches.\n"
          },
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplaySummary"
            }
          },
          "next": {
            "type": "string",
            "format": "uri",
            "description": "Full URL of the next page, with the same filters: call it as is (with your `Authorization` header).\nAbsent on the last page.\n"
          }
        }
      },
      "ReplayBase": {
        "type": "object",
        "description": "What every replay response has, whatever its processing status.",
        "required": [
          "id",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "API URL of the replay."
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "description": "When the replay was uploaded."
          },
          "uploader": {
            "$ref": "#/components/schemas/User"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "pending",
              "failed"
            ],
            "description": "* `ok`: processed, all the fields are set\n* `pending`: not processed yet: retry later\n* `failed`: the replay file could not be processed\n"
          }
        }
      },
      "Camera": {
        "type": "object",
        "description": "Camera settings of a player.\n",
        "properties": {
          "fov": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "pitch": {
            "type": "number"
          },
          "distance": {
            "type": "number"
          },
          "stiffness": {
            "type": "number"
          },
          "swivel_speed": {
            "type": "number"
          },
          "transition_speed": {
            "type": "number"
          }
        }
      },
      "CoreCounters": {
        "type": "object",
        "description": "Counters read as is from the replay file, counted by Rocket League itself.\n**Omitted** when the replay does not track them (replays from before Rocket League's September 2026\nupdate), `0` when it does but the value is zero.\n",
        "properties": {
          "epic_saves": {
            "type": "number",
            "description": "Epic saves."
          },
          "clears": {
            "type": "number",
            "description": "Clears."
          },
          "centers": {
            "type": "number",
            "description": "Centers."
          },
          "aerial_hits": {
            "type": "number",
            "description": "Aerial hits."
          },
          "first_touches": {
            "type": "number",
            "description": "Kickoff first touches."
          },
          "flip_resets": {
            "type": "number",
            "description": "Flip resets (as counted by the game, not verified by ballchasing)."
          },
          "crossbar_hits": {
            "type": "number",
            "description": "Crossbar hits."
          },
          "bicycle_hits": {
            "type": "number",
            "description": "Bicycle hits."
          },
          "juggle_hits": {
            "type": "number",
            "description": "Juggle hits."
          }
        }
      },
      "PlayerCore": {
        "type": "object",
        "description": "Core stats of a player in a replay.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/CoreCounters"
          }
        ],
        "properties": {
          "shots": {
            "type": "number",
            "description": "Shots taken."
          },
          "shots_against": {
            "type": "number",
            "description": "Shots conceded."
          },
          "goals": {
            "type": "number",
            "description": "Goals scored."
          },
          "goals_against": {
            "type": "number",
            "description": "Goals conceded."
          },
          "saves": {
            "type": "number",
            "description": "Saves."
          },
          "assists": {
            "type": "number",
            "description": "Assists."
          },
          "score": {
            "type": "number",
            "description": "In-game score."
          },
          "mvp": {
            "type": "boolean",
            "description": "Whether the player was the MVP."
          },
          "shooting_percentage": {
            "type": "number",
            "description": "goals / shots, in percent."
          }
        }
      },
      "PlayerBoost": {
        "type": "object",
        "description": "Boost stats of a player.\n",
        "properties": {
          "bpm": {
            "type": "number",
            "description": "Boost used per minute."
          },
          "bcpm": {
            "type": "number",
            "description": "Boost collected per minute."
          },
          "avg_amount": {
            "type": "number",
            "description": "Average boost amount (0-100)."
          },
          "amount_collected": {
            "type": "number",
            "description": "Boost collected."
          },
          "amount_stolen": {
            "type": "number",
            "description": "Boost collected in the opponent half."
          },
          "amount_collected_big": {
            "type": "number",
            "description": "Boost collected from big pads."
          },
          "amount_stolen_big": {
            "type": "number",
            "description": "Boost stolen from big pads."
          },
          "amount_collected_small": {
            "type": "number",
            "description": "Boost collected from small pads."
          },
          "amount_stolen_small": {
            "type": "number",
            "description": "Boost stolen from small pads."
          },
          "count_collected_big": {
            "type": "number",
            "description": "Big pads collected."
          },
          "count_stolen_big": {
            "type": "number",
            "description": "Big pads stolen."
          },
          "count_collected_small": {
            "type": "number",
            "description": "Small pads collected."
          },
          "count_stolen_small": {
            "type": "number",
            "description": "Small pads stolen."
          },
          "amount_overfill": {
            "type": "number",
            "description": "Boost wasted by collecting pads over 100."
          },
          "amount_overfill_stolen": {
            "type": "number",
            "description": "Boost overfill on stolen pads."
          },
          "amount_used_while_supersonic": {
            "type": "number",
            "description": "Boost used while already supersonic."
          },
          "time_zero_boost": {
            "type": "number",
            "description": "Seconds with no boost."
          },
          "percent_zero_boost": {
            "type": "number",
            "description": "Percent of the time with no boost."
          },
          "time_full_boost": {
            "type": "number",
            "description": "Seconds with full boost."
          },
          "percent_full_boost": {
            "type": "number",
            "description": "Percent of the time with full boost."
          },
          "time_boost_0_25": {
            "type": "number",
            "description": "Seconds with 0-25 boost."
          },
          "time_boost_25_50": {
            "type": "number",
            "description": "Seconds with 25-50 boost."
          },
          "time_boost_50_75": {
            "type": "number",
            "description": "Seconds with 50-75 boost."
          },
          "time_boost_75_100": {
            "type": "number",
            "description": "Seconds with 75-100 boost."
          },
          "percent_boost_0_25": {
            "type": "number",
            "description": "Percent of the time with 0-25 boost."
          },
          "percent_boost_25_50": {
            "type": "number",
            "description": "Percent of the time with 25-50 boost."
          },
          "percent_boost_50_75": {
            "type": "number",
            "description": "Percent of the time with 50-75 boost."
          },
          "percent_boost_75_100": {
            "type": "number",
            "description": "Percent of the time with 75-100 boost."
          }
        }
      },
      "PlayerMovement": {
        "type": "object",
        "description": "Movement stats of a player.\n",
        "properties": {
          "avg_speed": {
            "type": "number",
            "description": "Average speed (uu/s)."
          },
          "total_distance": {
            "type": "number",
            "description": "Distance travelled (uu)."
          },
          "time_supersonic_speed": {
            "type": "number",
            "description": "Seconds at supersonic speed."
          },
          "time_boost_speed": {
            "type": "number",
            "description": "Seconds at boost speed."
          },
          "time_slow_speed": {
            "type": "number",
            "description": "Seconds at slow speed."
          },
          "time_ground": {
            "type": "number",
            "description": "Seconds on the ground."
          },
          "time_low_air": {
            "type": "number",
            "description": "Seconds in low air."
          },
          "time_high_air": {
            "type": "number",
            "description": "Seconds in high air."
          },
          "time_wall": {
            "type": "number",
            "description": "Seconds on the walls (replays processed with repgen 4.0+)."
          },
          "time_powerslide": {
            "type": "number",
            "description": "Seconds powersliding."
          },
          "count_powerslide": {
            "type": "number",
            "description": "Powerslides."
          },
          "avg_powerslide_duration": {
            "type": "number",
            "description": "Average powerslide duration (s)."
          },
          "avg_speed_percentage": {
            "type": "number",
            "description": "Average speed, in percent of the max speed."
          },
          "percent_slow_speed": {
            "type": "number",
            "description": "Percent of the time at slow speed."
          },
          "percent_boost_speed": {
            "type": "number",
            "description": "Percent of the time at boost speed."
          },
          "percent_supersonic_speed": {
            "type": "number",
            "description": "Percent of the time at supersonic speed."
          },
          "percent_ground": {
            "type": "number",
            "description": "Percent of the time on the ground."
          },
          "percent_low_air": {
            "type": "number",
            "description": "Percent of the time in low air."
          },
          "percent_high_air": {
            "type": "number",
            "description": "Percent of the time in high air."
          },
          "percent_wall": {
            "type": "number",
            "description": "Percent of the time on the walls."
          }
        }
      },
      "PlayerPositioning": {
        "type": "object",
        "description": "Positioning stats of a player. `avg_distance_to_mates` and the `percent_most_*`,\n`percent_closest_to_ball` and `percent_farthest_from_ball` fields are only set in replay stats.\n",
        "properties": {
          "avg_distance_to_ball": {
            "type": "number",
            "description": "Average distance to the ball (uu)."
          },
          "avg_distance_to_ball_possession": {
            "type": "number",
            "description": "Average distance to the ball while the team has it (uu)."
          },
          "avg_distance_to_ball_no_possession": {
            "type": "number",
            "description": "Average distance to the ball while the other team has it (uu)."
          },
          "avg_distance_to_mates": {
            "type": "number",
            "description": "Average distance to team mates (uu)."
          },
          "time_defensive_third": {
            "type": "number",
            "description": "Seconds in the defensive third."
          },
          "time_neutral_third": {
            "type": "number",
            "description": "Seconds in the neutral third."
          },
          "time_offensive_third": {
            "type": "number",
            "description": "Seconds in the offensive third."
          },
          "time_defensive_half": {
            "type": "number",
            "description": "Seconds in the defensive half."
          },
          "time_offensive_half": {
            "type": "number",
            "description": "Seconds in the offensive half."
          },
          "time_behind_ball": {
            "type": "number",
            "description": "Seconds behind the ball."
          },
          "time_infront_ball": {
            "type": "number",
            "description": "Seconds in front of the ball."
          },
          "time_most_back": {
            "type": "number",
            "description": "Seconds as the most back player."
          },
          "time_most_forward": {
            "type": "number",
            "description": "Seconds as the most forward player."
          },
          "goals_against_while_last_defender": {
            "type": "number",
            "description": "Goals conceded while last defender."
          },
          "time_closest_to_ball": {
            "type": "number",
            "description": "Seconds as the closest player to the ball."
          },
          "time_farthest_from_ball": {
            "type": "number",
            "description": "Seconds as the farthest player from the ball."
          },
          "percent_defensive_third": {
            "type": "number",
            "description": "Percent of the time in the defensive third."
          },
          "percent_offensive_third": {
            "type": "number",
            "description": "Percent of the time in the offensive third."
          },
          "percent_neutral_third": {
            "type": "number",
            "description": "Percent of the time in the neutral third."
          },
          "percent_defensive_half": {
            "type": "number",
            "description": "Percent of the time in the defensive half."
          },
          "percent_offensive_half": {
            "type": "number",
            "description": "Percent of the time in the offensive half."
          },
          "percent_behind_ball": {
            "type": "number",
            "description": "Percent of the time behind the ball."
          },
          "percent_infront_ball": {
            "type": "number",
            "description": "Percent of the time in front of the ball."
          },
          "percent_most_back": {
            "type": "number",
            "description": "Percent of the time as the most back player."
          },
          "percent_most_forward": {
            "type": "number",
            "description": "Percent of the time as the most forward player."
          },
          "percent_closest_to_ball": {
            "type": "number",
            "description": "Percent of the time as the closest player to the ball."
          },
          "percent_farthest_from_ball": {
            "type": "number",
            "description": "Percent of the time as the farthest player from the ball."
          }
        }
      },
      "Demo": {
        "type": "object",
        "description": "Demolitions. The `*_in_defensive_half` / `*_in_offensive_half` split is based on the attacker's position;\nit is **omitted** for replays processed before October 2026 (until they are reprocessed).\n",
        "properties": {
          "inflicted": {
            "type": "number",
            "description": "Demolitions inflicted."
          },
          "inflicted_in_defensive_half": {
            "type": "number",
            "description": "Demolitions inflicted while the attacker was in its defensive half."
          },
          "inflicted_in_offensive_half": {
            "type": "number",
            "description": "Demolitions inflicted while the attacker was in its offensive half."
          },
          "taken": {
            "type": "number",
            "description": "Demolitions taken."
          },
          "taken_in_defensive_half": {
            "type": "number",
            "description": "Demolitions taken while the attacker was in its defensive half."
          },
          "taken_in_offensive_half": {
            "type": "number",
            "description": "Demolitions taken while the attacker was in its offensive half."
          }
        }
      },
      "PlayerStats": {
        "type": "object",
        "description": "Stats of a player in a replay.\n",
        "properties": {
          "core": {
            "$ref": "#/components/schemas/PlayerCore"
          },
          "boost": {
            "$ref": "#/components/schemas/PlayerBoost"
          },
          "movement": {
            "$ref": "#/components/schemas/PlayerMovement"
          },
          "positioning": {
            "$ref": "#/components/schemas/PlayerPositioning"
          },
          "demo": {
            "$ref": "#/components/schemas/Demo"
          }
        }
      },
      "ReplayPlayer": {
        "type": "object",
        "properties": {
          "start_time": {
            "type": "number",
            "description": "When the player joined, in seconds since the start of the replay."
          },
          "end_time": {
            "type": "number",
            "description": "When the player left, in seconds since the start of the replay."
          },
          "name": {
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/PlayerId"
          },
          "mvp": {
            "type": "boolean"
          },
          "rank": {
            "$ref": "#/components/schemas/Rank"
          },
          "car_id": {
            "type": "integer"
          },
          "car_name": {
            "type": "string",
            "examples": [
              "Octane"
            ]
          },
          "camera": {
            "$ref": "#/components/schemas/Camera"
          },
          "steering_sensitivity": {
            "type": "number"
          },
          "link": {
            "type": "string"
          },
          "stats": {
            "$ref": "#/components/schemas/PlayerStats"
          }
        }
      },
      "TeamBall": {
        "type": "object",
        "description": "Ball stats of a team.\n",
        "properties": {
          "possession_time": {
            "type": "number",
            "description": "Seconds of ball possession."
          },
          "time_in_side": {
            "type": "number",
            "description": "Seconds the ball spent in the team side."
          }
        }
      },
      "TeamCore": {
        "type": "object",
        "description": "Core stats of a team.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/CoreCounters"
          }
        ],
        "properties": {
          "shots": {
            "type": "number",
            "description": "Shots taken."
          },
          "shots_against": {
            "type": "number",
            "description": "Shots conceded."
          },
          "goals": {
            "type": "number",
            "description": "Goals scored."
          },
          "goals_against": {
            "type": "number",
            "description": "Goals conceded."
          },
          "saves": {
            "type": "number",
            "description": "Saves."
          },
          "assists": {
            "type": "number",
            "description": "Assists."
          },
          "score": {
            "type": "number",
            "description": "In-game score."
          },
          "shooting_percentage": {
            "type": "number",
            "description": "goals / shots, in percent."
          }
        }
      },
      "TeamBoost": {
        "type": "object",
        "description": "Boost stats of a team. `bpm`, `bcpm` and `avg_amount` are absent from a group's `cumulative` stats;\nthe `percent_*` fields are only set in group stats.\n",
        "properties": {
          "bpm": {
            "type": "number",
            "description": "Boost used per minute."
          },
          "bcpm": {
            "type": "number",
            "description": "Boost collected per minute."
          },
          "avg_amount": {
            "type": "number",
            "description": "Average boost amount (0-100)."
          },
          "amount_collected": {
            "type": "number",
            "description": "Boost collected."
          },
          "amount_stolen": {
            "type": "number",
            "description": "Boost collected in the opponent half."
          },
          "amount_collected_big": {
            "type": "number",
            "description": "Boost collected from big pads."
          },
          "amount_stolen_big": {
            "type": "number",
            "description": "Boost stolen from big pads."
          },
          "amount_collected_small": {
            "type": "number",
            "description": "Boost collected from small pads."
          },
          "amount_stolen_small": {
            "type": "number",
            "description": "Boost stolen from small pads."
          },
          "count_collected_big": {
            "type": "number",
            "description": "Big pads collected."
          },
          "count_stolen_big": {
            "type": "number",
            "description": "Big pads stolen."
          },
          "count_collected_small": {
            "type": "number",
            "description": "Small pads collected."
          },
          "count_stolen_small": {
            "type": "number",
            "description": "Small pads stolen."
          },
          "amount_overfill": {
            "type": "number",
            "description": "Boost wasted by collecting pads over 100."
          },
          "amount_overfill_stolen": {
            "type": "number",
            "description": "Boost overfill on stolen pads."
          },
          "amount_used_while_supersonic": {
            "type": "number",
            "description": "Boost used while already supersonic."
          },
          "time_zero_boost": {
            "type": "number",
            "description": "Seconds with no boost."
          },
          "percent_zero_boost": {
            "type": "number",
            "description": "Percent of the time with no boost."
          },
          "time_full_boost": {
            "type": "number",
            "description": "Seconds with full boost."
          },
          "percent_full_boost": {
            "type": "number",
            "description": "Percent of the time with full boost."
          },
          "time_boost_0_25": {
            "type": "number",
            "description": "Seconds with 0-25 boost."
          },
          "time_boost_25_50": {
            "type": "number",
            "description": "Seconds with 25-50 boost."
          },
          "time_boost_50_75": {
            "type": "number",
            "description": "Seconds with 50-75 boost."
          },
          "time_boost_75_100": {
            "type": "number",
            "description": "Seconds with 75-100 boost."
          }
        }
      },
      "TeamMovement": {
        "type": "object",
        "description": "Movement stats of a team.\n",
        "properties": {
          "total_distance": {
            "type": "number",
            "description": "Distance travelled (uu)."
          },
          "time_supersonic_speed": {
            "type": "number",
            "description": "Seconds at supersonic speed."
          },
          "time_boost_speed": {
            "type": "number",
            "description": "Seconds at boost speed."
          },
          "time_slow_speed": {
            "type": "number",
            "description": "Seconds at slow speed."
          },
          "time_ground": {
            "type": "number",
            "description": "Seconds on the ground."
          },
          "time_low_air": {
            "type": "number",
            "description": "Seconds in low air."
          },
          "time_high_air": {
            "type": "number",
            "description": "Seconds in high air."
          },
          "time_wall": {
            "type": "number",
            "description": "Seconds on the walls (replays processed with repgen 4.0+)."
          },
          "time_powerslide": {
            "type": "number",
            "description": "Seconds powersliding."
          },
          "count_powerslide": {
            "type": "number",
            "description": "Powerslides."
          }
        }
      },
      "TeamPositioning": {
        "type": "object",
        "description": "Positioning stats of a team (the `avg_distance_*` fields only in group stats).\n",
        "properties": {
          "time_defensive_third": {
            "type": "number",
            "description": "Seconds in the defensive third."
          },
          "time_neutral_third": {
            "type": "number",
            "description": "Seconds in the neutral third."
          },
          "time_offensive_third": {
            "type": "number",
            "description": "Seconds in the offensive third."
          },
          "time_defensive_half": {
            "type": "number",
            "description": "Seconds in the defensive half."
          },
          "time_offensive_half": {
            "type": "number",
            "description": "Seconds in the offensive half."
          },
          "time_behind_ball": {
            "type": "number",
            "description": "Seconds behind the ball."
          },
          "time_infront_ball": {
            "type": "number",
            "description": "Seconds in front of the ball."
          },
          "avg_distance_to_ball": {
            "type": "number",
            "description": "Average distance to the ball (uu)."
          },
          "avg_distance_to_ball_possession": {
            "type": "number",
            "description": "Average distance to the ball while the team has it (uu)."
          },
          "avg_distance_to_ball_no_possession": {
            "type": "number",
            "description": "Average distance to the ball while the other team has it (uu)."
          }
        }
      },
      "TeamStats": {
        "type": "object",
        "description": "Stats of a team in a replay.\n",
        "properties": {
          "ball": {
            "$ref": "#/components/schemas/TeamBall"
          },
          "core": {
            "$ref": "#/components/schemas/TeamCore"
          },
          "boost": {
            "$ref": "#/components/schemas/TeamBoost"
          },
          "movement": {
            "$ref": "#/components/schemas/TeamMovement"
          },
          "positioning": {
            "$ref": "#/components/schemas/TeamPositioning"
          },
          "demo": {
            "$ref": "#/components/schemas/Demo"
          }
        }
      },
      "ReplayTeam": {
        "type": "object",
        "required": [
          "color"
        ],
        "properties": {
          "color": {
            "type": "string",
            "enum": [
              "blue",
              "orange"
            ]
          },
          "name": {
            "type": "string"
          },
          "players": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayPlayer"
            }
          },
          "stats": {
            "$ref": "#/components/schemas/TeamStats"
          }
        }
      },
      "Server": {
        "type": "object",
        "description": "The game server the match was played on, when the replay tells it.",
        "properties": {
          "name": {
            "type": "string"
          },
          "region": {
            "type": "string"
          }
        }
      },
      "Replay": {
        "title": "Processed replay",
        "description": "A processed replay with its stats.\n\n`play_duration` is the time actually played, in seconds, without the kickoff countdowns (omitted for replays\nprocessed before it was computed).\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReplayBase"
          },
          {
            "type": "object",
            "required": [
              "blue",
              "orange"
            ],
            "properties": {
              "status": {
                "type": "string",
                "const": "ok"
              },
              "rocket_league_id": {
                "type": "string",
                "description": "The id Rocket League gave the replay."
              },
              "match_guid": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "recorder": {
                "type": "string",
                "description": "Name of the player who recorded the replay."
              },
              "map_code": {
                "type": "string",
                "description": "Map code (see `GET /maps`)."
              },
              "map_name": {
                "type": "string"
              },
              "match_type": {
                "type": "string",
                "examples": [
                  "Online",
                  "Private",
                  "Offline"
                ]
              },
              "team_size": {
                "type": "integer"
              },
              "playlist_id": {
                "$ref": "#/components/schemas/Playlist"
              },
              "playlist_name": {
                "type": "string"
              },
              "duration": {
                "type": "integer",
                "description": "Duration of the replay, in seconds."
              },
              "play_duration": {
                "type": "integer",
                "description": "Time actually played, in seconds, without the kickoff countdowns."
              },
              "overtime": {
                "type": "boolean"
              },
              "overtime_seconds": {
                "type": "integer"
              },
              "season": {
                "type": "integer",
                "description": "Season number (see `season_type`)."
              },
              "season_type": {
                "type": "string",
                "description": "`free2play` for the free to play seasons, absent for the old seasons.",
                "enum": [
                  "free2play"
                ]
              },
              "date": {
                "type": "string",
                "format": "date-time",
                "description": "When the game was played."
              },
              "date_has_timezone": {
                "type": "boolean",
                "description": "Whether `date` has a real timezone (old replays only have a local time)."
              },
              "visibility": {
                "$ref": "#/components/schemas/Visibility"
              },
              "min_rank": {
                "$ref": "#/components/schemas/Rank"
              },
              "max_rank": {
                "$ref": "#/components/schemas/Rank"
              },
              "groups": {
                "type": "array",
                "description": "The groups of the replay that you can see.",
                "items": {
                  "$ref": "#/components/schemas/GroupRef"
                }
              },
              "blue": {
                "$ref": "#/components/schemas/ReplayTeam"
              },
              "orange": {
                "$ref": "#/components/schemas/ReplayTeam"
              },
              "server": {
                "$ref": "#/components/schemas/Server"
              }
            }
          }
        ]
      },
      "ReplayPending": {
        "title": "Pending or failed replay",
        "description": "A replay that is not processed (yet): only the metadata is available.",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReplayBase"
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "failed"
                ]
              }
            }
          }
        ]
      },
      "ReplayPatch": {
        "type": "object",
        "description": "Only the fields that are set are changed; all the changes are applied together, or none. An empty object changes\nnothing.\n",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 1024,
            "description": "The new title (at most 1024 characters)."
          },
          "visibility": {
            "$ref": "#/components/schemas/Visibility"
          },
          "group": {
            "type": "string",
            "description": "Id of the group to move the replay to (one of yours), or `\"\"` to take it out of its group. The replay leaves\nthe other groups of yours it was directly in.\n"
          }
        }
      },
      "DailyLimitError": {
        "description": "The daily limit on other people's replay files is reached.",
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "required": [
              "limit",
              "count",
              "reset"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "description": "Files of other people the account can download per UTC day."
              },
              "count": {
                "type": "integer",
                "description": "Distinct files of other people downloaded today."
              },
              "reset": {
                "type": "string",
                "format": "date-time",
                "description": "When the count restarts (next 00:00 UTC)."
              }
            }
          }
        ]
      },
      "PlayerIdentification": {
        "type": "string",
        "enum": [
          "by-id",
          "by-name"
        ],
        "description": "How to identify the same player across multiple replays:\n\n* `by-id`: by platform id\n* `by-name`: by name. Some tournaments (e.g. RLCS) make players use a pool of generic Steam accounts, meaning the\n  same player could end up using 2 different accounts in 2 series: that's when `by-name` comes in handy.\n"
      },
      "GroupSummary": {
        "type": "object",
        "description": "A group in a listing (no stats).",
        "required": [
          "id",
          "link",
          "name",
          "created",
          "player_identification",
          "team_identification",
          "direct_replays",
          "indirect_replays",
          "shared",
          "user"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "API URL of the group."
          },
          "name": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "player_identification": {
            "$ref": "#/components/schemas/PlayerIdentification"
          },
          "team_identification": {
            "type": "string",
            "enum": [
              "by-distinct-players",
              "by-player-clusters",
              "by-player-majority"
            ],
            "description": "How teams are identified (see `POST /groups`)."
          },
          "direct_replays": {
            "type": "integer",
            "description": "Replays directly in the group that you can see."
          },
          "indirect_replays": {
            "type": "integer",
            "description": "Replays in its sub-groups (at any depth) that you can see."
          },
          "shared": {
            "type": "boolean",
            "description": "Whether the group is shared (its replays visible to others through it, whatever their visibility)."
          },
          "user": {
            "$ref": "#/components/schemas/User",
            "description": "The group's owner."
          }
        }
      },
      "GroupList": {
        "type": "object",
        "required": [
          "list"
        ],
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupSummary"
            }
          },
          "next": {
            "type": "string",
            "format": "uri",
            "description": "Full URL of the next page, with the same filters: call it as is (with your `Authorization` header).\nAbsent on the last page.\n"
          }
        }
      },
      "TeamIdentification": {
        "type": "string",
        "enum": [
          "by-distinct-players",
          "by-player-clusters"
        ],
        "description": "How to identify the same team across multiple replays:\n\n* `by-distinct-players`: teams have a fixed roster of players for every single game\n* `by-player-clusters`: teams allow player rotations, or a sub can replace another player\n"
      },
      "GroupCreate": {
        "type": "object",
        "required": [
          "name",
          "player_identification",
          "team_identification"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 3,
            "maxLength": 255,
            "description": "The new group's name: 3 to 255 bytes once trimmed, unique among the groups of the same parent (of yours).\n"
          },
          "parent": {
            "type": "string",
            "description": "If set, the new group is created as a child of this group (one of yours, by id)."
          },
          "player_identification": {
            "$ref": "#/components/schemas/PlayerIdentification"
          },
          "team_identification": {
            "$ref": "#/components/schemas/TeamIdentification"
          },
          "dedup": {
            "type": "boolean",
            "default": true,
            "description": "Count each game once (see \"Replays of the same game\" in `GET /groups/{id}`). `false`: every replay counts, like\nthe groups created before this setting existed.\n"
          }
        }
      },
      "GroupCreated": {
        "type": "object",
        "required": [
          "id",
          "link"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The new group's id."
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "API URL of the new group (also in the `Location` header)."
          }
        }
      },
      "GroupPlayer": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string",
            "examples": [
              "Steam",
              "Epic",
              "PS4",
              "XboxOne",
              "Switch"
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "team": {
            "type": "string",
            "description": "Name of the player's team."
          }
        }
      },
      "GroupPlayerCore": {
        "type": "object",
        "description": "Core stats of a player in a group.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/CoreCounters"
          }
        ],
        "properties": {
          "shots": {
            "type": "number",
            "description": "Shots taken."
          },
          "shots_against": {
            "type": "number",
            "description": "Shots conceded."
          },
          "goals": {
            "type": "number",
            "description": "Goals scored."
          },
          "goals_against": {
            "type": "number",
            "description": "Goals conceded."
          },
          "saves": {
            "type": "number",
            "description": "Saves."
          },
          "assists": {
            "type": "number",
            "description": "Assists."
          },
          "score": {
            "type": "number",
            "description": "In-game score."
          },
          "mvp": {
            "type": "number",
            "description": "MVPs (total, or per game in `game_average`)."
          },
          "shooting_percentage": {
            "type": "number",
            "description": "goals / shots, in percent."
          }
        }
      },
      "GroupPlayerCumulative": {
        "type": "object",
        "description": "Totals of a player over the games of the group.\n",
        "properties": {
          "games": {
            "type": "integer",
            "description": "Games played."
          },
          "wins": {
            "type": "integer",
            "description": "Games won."
          },
          "win_percentage": {
            "type": "number"
          },
          "play_duration": {
            "type": "number",
            "description": "Seconds played."
          },
          "core": {
            "$ref": "#/components/schemas/GroupPlayerCore"
          },
          "boost": {
            "$ref": "#/components/schemas/PlayerBoost"
          },
          "movement": {
            "$ref": "#/components/schemas/PlayerMovement"
          },
          "positioning": {
            "$ref": "#/components/schemas/PlayerPositioning"
          },
          "demo": {
            "$ref": "#/components/schemas/Demo"
          }
        }
      },
      "GroupPlayerAverage": {
        "type": "object",
        "description": "Per-game averages of a player over the games of the group.\n",
        "properties": {
          "core": {
            "$ref": "#/components/schemas/GroupPlayerCore"
          },
          "boost": {
            "$ref": "#/components/schemas/PlayerBoost"
          },
          "movement": {
            "$ref": "#/components/schemas/PlayerMovement"
          },
          "positioning": {
            "$ref": "#/components/schemas/PlayerPositioning"
          },
          "demo": {
            "$ref": "#/components/schemas/Demo"
          }
        }
      },
      "GroupPlayerStats": {
        "description": "A player of the group and its stats.",
        "allOf": [
          {
            "$ref": "#/components/schemas/GroupPlayer"
          },
          {
            "type": "object",
            "properties": {
              "cumulative": {
                "$ref": "#/components/schemas/GroupPlayerCumulative"
              },
              "game_average": {
                "$ref": "#/components/schemas/GroupPlayerAverage"
              }
            }
          }
        ]
      },
      "GroupTeamCumulative": {
        "type": "object",
        "description": "Totals of a team over the games of the group.\n",
        "properties": {
          "games": {
            "type": "integer",
            "description": "Games played."
          },
          "wins": {
            "type": "integer",
            "description": "Games won."
          },
          "win_percentage": {
            "type": "number"
          },
          "play_duration": {
            "type": "number",
            "description": "Seconds played."
          },
          "core": {
            "$ref": "#/components/schemas/TeamCore"
          },
          "boost": {
            "$ref": "#/components/schemas/TeamBoost"
          },
          "movement": {
            "$ref": "#/components/schemas/TeamMovement"
          },
          "positioning": {
            "$ref": "#/components/schemas/TeamPositioning"
          },
          "demo": {
            "$ref": "#/components/schemas/Demo"
          }
        }
      },
      "GroupTeamAverage": {
        "type": "object",
        "description": "Per-game averages of a team over the games of the group.\n",
        "properties": {
          "core": {
            "$ref": "#/components/schemas/TeamCore"
          },
          "boost": {
            "$ref": "#/components/schemas/TeamBoost"
          },
          "movement": {
            "$ref": "#/components/schemas/TeamMovement"
          },
          "positioning": {
            "$ref": "#/components/schemas/TeamPositioning"
          },
          "demo": {
            "$ref": "#/components/schemas/Demo"
          }
        }
      },
      "GroupTeamStats": {
        "type": "object",
        "description": "A team of the group and its stats.",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "players": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupPlayer"
            }
          },
          "cumulative": {
            "$ref": "#/components/schemas/GroupTeamCumulative"
          },
          "game_average": {
            "$ref": "#/components/schemas/GroupTeamAverage"
          }
        }
      },
      "GroupDuplicates": {
        "type": "object",
        "description": "Replays of the same game among the group's replays you may see. The same counts whatever `dedup`: only the stats\nchange. Which replays they are: `GET /groups/{id}/duplicate-replays`.\n",
        "required": [
          "total_replays",
          "duplicate_replays",
          "unique_games"
        ],
        "properties": {
          "total_replays": {
            "type": "integer",
            "description": "The group's replays."
          },
          "duplicate_replays": {
            "type": "integer",
            "description": "`total_replays - unique_games`: the replays of a game already held in another replay."
          },
          "unique_games": {
            "type": "integer",
            "description": "The distinct games among them."
          }
        }
      },
      "Group": {
        "type": "object",
        "description": "A replay group, with the stats of its players and teams.\n\n`players` and `teams` are only set when `status` is `ok`: until then, retry later (`pending_replays`), fix or\nremove the failed replays (`failed_replays`, listed in `failed_replays` for the group's owner), or use smaller\ngroups (`too_many_replays`).\n",
        "required": [
          "id",
          "link",
          "name",
          "created",
          "status",
          "player_identification",
          "team_identification",
          "shared",
          "creator"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "link": {
            "type": "string",
            "format": "uri"
          },
          "name": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "pending_replays",
              "failed_replays",
              "too_many_replays"
            ]
          },
          "player_identification": {
            "$ref": "#/components/schemas/PlayerIdentification"
          },
          "team_identification": {
            "type": "string",
            "enum": [
              "by-distinct-players",
              "by-player-clusters",
              "by-player-majority"
            ],
            "description": "How teams are identified (see `POST /groups`)."
          },
          "shared": {
            "type": "boolean",
            "description": "Whether the group is shared (visible to others)."
          },
          "dedup": {
            "type": "boolean",
            "description": "The group's setting: count each game once (`true`) or every replay (`false`). It is the default of the\n`dedup` parameter. See \"Replays of the same game\" above.\n"
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "failed_replays": {
            "type": "array",
            "description": "Ids of the replays that could not be processed (only for the group's owner).",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "players": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupPlayerStats"
            }
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupTeamStats"
            }
          },
          "duplicates": {
            "$ref": "#/components/schemas/GroupDuplicates"
          }
        }
      },
      "GroupPatch": {
        "type": "object",
        "description": "Only the fields that are set are changed; all the changes are applied together, or none. An empty object changes\nnothing (`204`).\n",
        "properties": {
          "player_identification": {
            "$ref": "#/components/schemas/PlayerIdentification"
          },
          "team_identification": {
            "$ref": "#/components/schemas/TeamIdentification"
          },
          "parent": {
            "type": "string",
            "description": "Id of the new parent group (one of yours), or `\"\"` to make the group a top level one. A group cannot be moved\nunder itself or one of its sub-groups, and trees are 32 levels deep at most.\n"
          },
          "shared": {
            "type": "boolean",
            "description": "Share the group (`true`) or stop sharing it (`false`). Everyone can then open the group and its sub-groups,\nwith all your replays in them, whatever their visibility.\n"
          },
          "dedup": {
            "type": "boolean",
            "description": "Count each game once (`true`) or every replay (`false`), in this group and all its sub-groups (see \"Replays of\nthe same game\" in `GET /groups/{id}`).\n"
          },
          "assign_replays": {
            "type": "array",
            "maxItems": 150,
            "description": "Ids of replays to put directly in this group (replays you can see: yours, or other people's public and\nunlisted ones). A replay leaves the other groups of yours it was directly in.\n",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "unassign_replays": {
            "type": "array",
            "maxItems": 300,
            "description": "Ids of replays to take out of your groups (whichever group of yours they are in).",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "DuplicateReplayList": {
        "type": "object",
        "required": [
          "list"
        ],
        "properties": {
          "list": {
            "type": "array",
            "description": "One row per replay not counted when the group counts each game once, sorted by `replay_id`.",
            "items": {
              "type": "object",
              "required": [
                "replay_id",
                "same_game_as"
              ],
              "properties": {
                "replay_id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "A replay of a game already held in another replay of the group."
                },
                "same_game_as": {
                  "type": "string",
                  "format": "uuid",
                  "description": "The replay that counts for that game."
                }
              }
            }
          },
          "next": {
            "type": "string",
            "format": "uri",
            "description": "Full URL of the next page, absent on the last page."
          }
        }
      },
      "GroupUploadToken": {
        "type": "object",
        "required": [
          "token",
          "created_at",
          "generation"
        ],
        "properties": {
          "token": {
            "type": "string",
            "pattern": "^g/",
            "description": "The group upload token, to send as is in the `Authorization` header of `POST /v2/upload`."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the group got its first token."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the token was last replaced (absent if it never was)."
          },
          "generation": {
            "type": "integer",
            "minimum": 1,
            "description": "1 for the first token, incremented each time it is replaced."
          }
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missing": {
                "summary": "No Authorization header",
                "value": {
                  "error": "missing API key",
                  "chat": {
                    "Imp": "Sorry",
                    "YOU": "Centering"
                  },
                  "request_id": "5A56088B:A9C6_A2379E0D:01BB_6AFFDAAC_2F2FA0:1E0D5E",
                  "server": "hzprod-front-1"
                }
              },
              "invalid": {
                "summary": "Unknown API key",
                "value": {
                  "error": "invalid API key",
                  "chat": {
                    "Imp": "Sorry",
                    "YOU": "Centering"
                  }
                }
              }
            }
          }
        }
      },
      "Restricted": {
        "description": "The account is restricted (see `code`). Do not retry these requests while the restriction is active. A shared or lowered daily limit is not a 403: it shows up as the usual 429 with its own message.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/RestrictedError"
            },
            "examples": {
              "banned": {
                "summary": "Account banned",
                "value": {
                  "code": "account_banned",
                  "error": "This account has been banned from the API and from uploading because it was used together with other accounts to go past the download limits, which the terms of use do not allow. Do not retry these requests while this restriction is active."
                }
              },
              "apiBlocked": {
                "summary": "API reads blocked",
                "value": {
                  "code": "api_access_blocked",
                  "error": "API access is turned off for this account because it was used together with other accounts to go past the download limits, which the terms of use do not allow. Uploading still works. Do not retry these requests while this restriction is active."
                }
              },
              "filesSuspended": {
                "summary": "Other players' files suspended",
                "value": {
                  "code": "files_suspended",
                  "error": "Downloads of replay files uploaded by other players are turned off for this account because it was used together with other accounts to go past the download limits, which the terms of use do not allow. You can still download your own replays. Do not retry these requests while this restriction is active."
                }
              }
            }
          }
        }
      },
      "ServerError": {
        "description": "Server fault.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "ballchasing.com fault. reason here"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit reached. Wait `Retry-After` seconds before retrying.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "Too many requests"
            }
          }
        }
      },
      "BadRequest": {
        "description": "Invalid request: a bad parameter or body, or a parameter that is not valid UTF-8 or holds a NUL character.\n`error` tells what is wrong.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "invalid id \"abc\\x00\": must not contain a NUL character",
              "chat": {
                "Poncho": "Whew.",
                "YOU": "Oops"
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "No such resource, or you cannot see it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "not found"
            }
          }
        }
      },
      "PayloadTooLarge": {
        "description": "The request body is over 32 KiB (the limit of every endpoint but the upload). The body is plain text, and the\nconnection is closed.\n",
        "content": {
          "text/plain": {
            "schema": {
              "type": "string"
            },
            "example": "request too large"
          }
        }
      }
    },
    "headers": {
      "RetryAfter": {
        "description": "Seconds to wait before retrying.",
        "schema": {
          "type": "integer",
          "examples": [
            43200
          ]
        }
      }
    },
    "parameters": {
      "ReplayId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The replay id.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "examples": [
            "7fd09c82-b0d8-4d85-b875-fe1dd3a3a3c1"
          ]
        }
      },
      "GroupId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The group id.",
        "schema": {
          "type": "string",
          "examples": [
            "rlcs-world-championship-s6-bfy1532kn0"
          ]
        }
      }
    }
  }
}