{"openapi":"3.1.0","info":{"title":"mpl-api v2","version":"2.0.0","description":"Unofficial MPL (ID, PH, MY) and MSL Myanmar data, read from a database an ingest worker keeps current. JSON is camelCase; every data response is `{ data, meta }` (the M8 event route keeps v1's body). Match `status` and `winner` are resolved at request time. `ETag` covers `data` only. Liquipedia-derived data must keep the CC BY-SA credit in `meta.credit`."},"servers":[{"url":"/api/v2"}],"components":{"schemas":{"RegionList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Region"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Region":{"type":"object","properties":{"code":{"type":"string","enum":["id","ph","my","mm"],"example":"id"},"name":{"type":"string","example":"MPL Indonesia"},"source":{"type":"string","enum":["official","liquipedia"]},"timezone":{"type":"string","example":"Asia/Jakarta"},"currentSeason":{"anyOf":[{"$ref":"#/components/schemas/SeasonSummary"},{"type":"null"}]}},"required":["code","name","source","timezone","currentSeason"]},"SeasonSummary":{"type":"object","properties":{"id":{"type":"string"},"region":{"type":"string","enum":["id","ph","my","mm"],"example":"id"},"number":{"type":"integer","example":18},"label":{"type":"string","example":"Season 18"},"status":{"type":"string","enum":["upcoming","active","settling","closed"]},"startsOn":{"type":["string","null"],"description":"YYYY-MM-DD, local."},"endsOn":{"type":["string","null"],"description":"YYYY-MM-DD, local."},"closedAt":{"type":["string","null"],"description":"When the season was closed and frozen.","example":"2026-11-05T12:00:00.000Z"},"current":{"type":"boolean","description":"Whether `current` resolves to this season."},"features":{"type":"array","items":{"type":"string"},"description":"Features this season publishes. A route for a feature not listed answers 404 `feature_unavailable`.","example":["season","standings","teams","schedule","match_detail"]},"statFamilies":{"type":"array","items":{"type":"string","enum":["team","player","hero","hero-pool","player-pool","mvp","player-ranking","hero-ranking"]},"description":"Stats families this season publishes (`/stats/{family}`); any other family answers 404 `feature_unavailable`.","example":["team","player","hero","mvp"]},"playoffSeeds":{"type":"boolean","description":"Whether `/stages/{stage}/seeds` is published (ID playoffs only)."}},"required":["id","region","number","label","status","startsOn","endsOn","closedAt","current","features","statFamilies","playoffSeeds"]},"Meta":{"type":"object","properties":{"updatedAt":{"type":["string","null"],"description":"When the newest row in this response was last written by ingest.","example":"2026-11-05T12:00:00.000Z"},"source":{"type":"array","items":{"type":"string","enum":["official","liquipedia","mlbbesports","ingest"]},"description":"Where the data in this response comes from."},"credit":{"type":["string","null"],"description":"Attribution that must travel with the data: the CC BY-SA credit when any of it comes from Liquipedia, else null."}},"required":["updatedAt","source","credit"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found","feature_unavailable","bad_request","rate_limited","unauthorized","internal_error"]},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"RegionResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Region"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"SeasonList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SeasonSummary"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"SeasonResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Season"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Season":{"allOf":[{"$ref":"#/components/schemas/SeasonSummary"},{"type":"object","properties":{"stages":{"type":"array","items":{"$ref":"#/components/schemas/Stage"}},"currentRound":{"anyOf":[{"$ref":"#/components/schemas/CurrentRound"},{"type":"null"}],"description":"Null when the season has no listed match, or does not publish a schedule (`schedule` not in `features`)."},"playoffBracketImage":{"type":["string","null"],"description":"The playoff bracket graphic the official schedule page shows (v1 `bracket_image`), as upstream's own URL: hot-linked, never rehosted, unwrapped from the wsrv.nl image proxy. Served only while upstream publishes it unsigned; a signed CDN URL (about 6h expiry: MY today) is never served, so the field is null then, and goes back to null if upstream returns to signed URLs. Null too when the page has never shown one, when it is the artwork of another season (MY's S18 page kept the S17 bracket), and for MM. The graphic is upstream's: draw the bracket from the playoff matches when it is null.","example":"https://ik.imagekit.io/nloe8dhf7w/mplid/s18/Banners/LANDSCAPE%20BRACKET.png"}},"required":["stages","currentRound","playoffBracketImage"]}]},"Stage":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["regular","playins","last_chance","playoffs"]},"name":{"type":"string","example":"Regular Season"},"ordinal":{"type":"integer"},"rounds":{"type":"array","items":{"$ref":"#/components/schemas/Round"}}},"required":["id","kind","name","ordinal","rounds"]},"Round":{"type":"object","properties":{"key":{"type":"string","example":"week-3"},"label":{"type":"string","example":"Week 3"},"ordinal":{"type":"integer"}},"required":["key","label","ordinal"]},"CurrentRound":{"type":"object","properties":{"stageId":{"type":"string"},"roundKey":{"type":["string","null"],"description":"Null when that stage's matches carry no round.","example":"week-3"}},"required":["stageId","roundKey"],"description":"The round in progress or next up, at request time in the region's timezone (v1 `is_current`): the first round holding a live match, else the first with a match today, else the one with the nearest future match date, else the last round with a dated match, else the first round. Rounds are ordered by stage ordinal, then round ordinal; matches no longer listed upstream are ignored. v1 grouped a whole non-regular stage (every official playoff round) as one week: for those, `stageId` alone is v1's answer."},"TeamList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/KnownTeam"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"KnownTeam":{"type":"object","properties":{"id":{"type":"string","example":"t_01jd8k5v4x0000000000000000"},"slug":{"type":"string","example":"onic","description":"The team's slug this season."},"name":{"type":"string","example":"ONIC"},"shortName":{"type":["string","null"],"description":"The team code upstream prints this season, casing kept (`RORA`, `iG`): ID standings, the PH and MY schedule cards (v1's `team_a`), Liquipedia for MM. Null until a page that prints it has been read.","example":"ONIC"},"crest":{"type":["string","null"],"description":"Root-relative URL of the vendored crest PNG (dark surfaces), versioned by content hash; null when none is held.","example":"/api/v2/crests/id/onic.png?v=0123456789abcdef0123456789abcdef"}},"required":["id","slug","name","shortName","crest"]},"TeamDetailResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TeamDetail"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"TeamDetail":{"allOf":[{"$ref":"#/components/schemas/KnownTeam"},{"type":"object","properties":{"socialLinks":{"type":"object","additionalProperties":{"type":"string"},"example":{"instagram":"https://instagram.com/onic.esports"}},"players":{"type":"array","items":{"$ref":"#/components/schemas/RosterPlayer"}}},"required":["socialLinks","players"]}]},"RosterPlayer":{"type":"object","properties":{"id":{"type":"string"},"ign":{"type":"string"},"role":{"type":["string","null"]},"lane":{"type":["string","null"],"description":"As published, even when wrong."},"missingSince":{"type":["string","null"],"description":"When the player stopped appearing on the team page; null while listed.","example":"2026-11-05T12:00:00.000Z"}},"required":["id","ign","role","lane","missingSince"]},"MatchList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Match"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Match":{"type":"object","properties":{"id":{"type":"string","example":"m_01jd8k5v4x0000000000000000"},"region":{"type":"string","enum":["id","ph","my","mm"],"example":"id"},"season":{"type":"integer"},"stage":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["regular","playins","last_chance","playoffs"]},"name":{"type":"string"},"ordinal":{"type":"integer"}},"required":["id","kind","name","ordinal"]},"round":{"type":["object","null"],"properties":{"key":{"type":"string"},"label":{"type":"string"},"ordinal":{"type":"integer"}},"required":["key","label","ordinal"]},"slot":{"type":["string","null"],"description":"Bracket position, when the stage is a bracket."},"scheduledAt":{"type":["string","null"],"description":"Kickoff, UTC; null when the clock time is not published.","example":"2026-11-05T12:00:00.000Z"},"localDate":{"type":["string","null"],"description":"YYYY-MM-DD in `timezone`.","example":"2026-11-05"},"localTime":{"type":["string","null"],"description":"HH:MM in `timezone`.","example":"17:15"},"timezone":{"type":"string","example":"Asia/Jakarta"},"teamA":{"$ref":"#/components/schemas/TeamRef"},"teamB":{"$ref":"#/components/schemas/TeamRef"},"scoreA":{"type":["integer","null"]},"scoreB":{"type":["integer","null"]},"bestOf":{"type":"integer"},"formatSource":{"type":"string","enum":["printed","assumed"],"description":"`printed` when upstream prints the series length, `assumed` when it is the stage default."},"status":{"type":["string","null"],"enum":["upcoming","live","completed",null],"description":"Resolved per request from upstream signals and the clock. Completed only at the clinch count or on an explicit marker; null when nothing says (e.g. an MM series past its live window)."},"winner":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}],"description":"Only once `completed`."},"outcome":{"type":["string","null"],"enum":["played","forfeit","walkover",null]},"vodUrl":{"type":["string","null"],"description":"Upstream publishes one per broadcast day, not per match."},"refs":{"$ref":"#/components/schemas/MatchRefs"},"missingSince":{"type":["string","null"],"description":"Set when the fixture stopped appearing upstream (rescheduled under a new identity or removed); null while listed. Such a match is left out of `/live` and the draft listings.","example":"2026-11-05T12:00:00.000Z"}},"required":["id","region","season","stage","round","slot","scheduledAt","localDate","localTime","timezone","teamA","teamB","scoreA","scoreB","bestOf","formatSource","status","winner","outcome","vodUrl","refs","missingSince"]},"TeamRef":{"anyOf":[{"$ref":"#/components/schemas/KnownTeam"},{"$ref":"#/components/schemas/UnknownTeam"}],"description":"A team, or `{ id: null, label }` for TBD and unmapped teams."},"UnknownTeam":{"type":"object","properties":{"id":{"type":"null"},"label":{"type":"string","example":"TBD","description":"The name as printed upstream."}},"required":["id","label"]},"MatchRefs":{"type":"object","properties":{"idDetail":{"type":["string","null"],"description":"ID `/match-detail/{id}`."},"phSlug":{"type":["string","null"],"description":"PH `/data/match/{slug}`."},"mySlug":{"type":["string","null"],"description":"MY `/detail/{slug}`."},"myPlayoffId":{"type":["string","null"],"description":"MY numeric playoff match id."},"mmWiki":{"type":["string","null"],"description":"Liquipedia match key (MM)."},"v1MatchDetailId":{"type":["string","null"],"description":"What v1 served as `match_detail_id` for this match: the region's upstream ref (ID `idDetail`, PH `phSlug`, MY `mySlug` else `myPlayoffId`, MM `mmWiki`). A migration aid: `/regions/{region}/seasons/{season}/matches/by-ref/{ref}` finds the match whose `v1MatchDetailId` equals the ref. Null for an ID match until it completes (ID publishes its detail id only then), as in v1."}},"required":["idDetail","phSlug","mySlug","myPlayoffId","mmWiki","v1MatchDetailId"],"description":"Upstream references; null when upstream has none."},"MatchResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Match"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"MatchDetailResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MatchDetail"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"MatchDetail":{"allOf":[{"$ref":"#/components/schemas/Match"},{"type":"object","properties":{"games":{"type":"array","items":{"$ref":"#/components/schemas/Game"}}},"required":["games"]}]},"Game":{"type":"object","properties":{"gameNo":{"type":"integer"},"teamA":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}],"description":"Per game: ID and MY swap sides between games."},"teamB":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"winner":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"winnerSide":{"type":["string","null"],"enum":["a","b",null],"description":"The winning side relative to this object's `teamA` / `teamB`, known even when a team could not be identified."},"winnerSource":{"type":["string","null"],"enum":["scoreboard","liquipedia",null]},"durationSec":{"type":["integer","null"]},"teamAKills":{"type":["integer","null"]},"teamBKills":{"type":["integer","null"]},"summary":{"type":"array","items":{"$ref":"#/components/schemas/GameMetric"},"description":"PH only."},"sides":{"anyOf":[{"$ref":"#/components/schemas/Sides"},{"type":"null"}],"description":"Map sides, from a verified Liquipedia draft only."},"draft":{"anyOf":[{"$ref":"#/components/schemas/VerifiedDraft"},{"type":"null"}]},"players":{"type":"array","items":{"$ref":"#/components/schemas/GamePlayer"}}},"required":["gameNo","teamA","teamB","winner","winnerSide","winnerSource","durationSec","teamAKills","teamBKills","summary","sides","draft","players"]},"GameMetric":{"type":"object","properties":{"label":{"type":"string"},"teamA":{"type":["number","null"]},"teamB":{"type":["number","null"]}},"required":["label","teamA","teamB"]},"Sides":{"type":"object","properties":{"teamA":{"type":"string","enum":["blue","red"]},"teamB":{"type":"string","enum":["blue","red"]}},"required":["teamA","teamB"]},"VerifiedDraft":{"allOf":[{"$ref":"#/components/schemas/DraftSlots"},{"type":"object","properties":{"vodUrl":{"type":["string","null"]},"verifiedAt":{"type":["string","null"],"description":"When the draft last passed verification against our scoreboard.","example":"2026-11-05T12:00:00.000Z"},"notes":{"type":"array","items":{"type":"string"}}},"required":["vodUrl","verifiedAt","notes"]}]},"HeroRef":{"type":"object","properties":{"id":{"type":"string","example":"ling"},"name":{"type":"string","example":"Ling"}},"required":["id","name"]},"DraftSlots":{"type":"object","properties":{"bansA":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/HeroRef"},{"type":"null"}]},"description":"Five slots in wiki order; null is an empty ban."},"bansB":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/HeroRef"},{"type":"null"}]}},"picksA":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/HeroRef"},{"type":"null"}]},"description":"Wiki slot order, not draft order."},"picksB":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/HeroRef"},{"type":"null"}]}}},"required":["bansA","bansB","picksA","picksB"]},"GamePlayer":{"type":"object","properties":{"slot":{"type":"integer"},"side":{"type":"string","enum":["a","b"],"description":"This game's team A or team B."},"team":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"player":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]}},"required":["id","name"]},"hero":{"anyOf":[{"$ref":"#/components/schemas/HeroRef"},{"type":"null"}],"description":"Null when the scoreboard shows none (a data gap)."},"heroImage":{"type":["string","null"],"description":"The hero portrait the scoreboard shows (v1 `hero_image`), as upstream's own URL: hot-linked, never rehosted. Null when upstream signs it (a signed CDN URL expires in about 6h) and for a game read before URLs were stored.","example":"https://mlbb-image.scoregg.com/hero_h/85.png"},"lane":{"type":["string","null"]},"kills":{"type":["integer","null"]},"deaths":{"type":["integer","null"]},"assists":{"type":["integer","null"]},"kda":{"type":["number","null"],"description":"As printed (PH). ID and MY print only K/D/A, so it is derived there as v1 did: `(kills + assists) / max(deaths, 1)`, rounded to 2 places; null when any part is missing."},"gold":{"type":["integer","null"],"description":"MY: always null (upstream mislabels it)."},"heroDamage":{"type":["integer","null"]},"damageTaken":{"type":["integer","null"]},"towerDamage":{"type":["integer","null"]},"items":{"type":"array","items":{"type":["string","null"]},"description":"Item icons in scoreboard order, as upstream's own URLs (hot-linked). An entry is null where upstream signs the icon (ID's own CDN today; a signed URL expires in about 6h), so positions are kept. Empty for a game read before URLs were stored. See `itemIds` for identity: an icon's path can show a reused icon and is not the id.","example":["https://mlbb-image.scoregg.com/m/33/p/2511/0617014872193.png",null,"https://ik.imagekit.io/nloe8dhf7w/mlbb/2024/equipments/3431.png"]},"itemIds":{"type":"array","items":{"type":["string","null"]},"description":"Upstream's item id behind each icon, same length and order as `items`, and present where the `items` entry is null (signed). The icon's printed `alt` when it is numeric (ID, MY), else the id in the icon's `equip/`, `equipment/` or `equipments/<id>.png` path (PH), else null. Ids are upstream's, per region: a shared numbering across regions is likely but not verified. No region prints item names. Empty for a game read before ids were stored (until its next re-read).","example":["3204","3212","3431"]},"emblem":{"type":["string","null"],"description":"The emblem icon's upstream URL; null when signed or not shown.","example":"https://mlbb-image.scoregg.com/emblem/20003.png"},"talents":{"type":"array","items":{"type":["string","null"]},"description":"Talent icons in scoreboard order, upstream URLs; null where signed.","example":["https://mlbb-image.scoregg.com/rune/811.png"]}},"required":["slot","side","team","player","hero","heroImage","lane","kills","deaths","assists","kda","gold","heroDamage","damageTaken","towerDamage","items","itemIds","emblem","talents"]},"UnverifiedMatchDraftResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/UnverifiedMatchDraft"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"UnverifiedMatchDraft":{"type":"object","properties":{"match":{"$ref":"#/components/schemas/Match"},"verified":{"type":"boolean","enum":[false]},"games":{"type":"array","items":{"$ref":"#/components/schemas/UnverifiedGame"}},"substitutions":{"type":"array","items":{"$ref":"#/components/schemas/Substitution"}}},"required":["match","verified","games","substitutions"]},"UnverifiedGame":{"allOf":[{"$ref":"#/components/schemas/DraftSlots"},{"type":"object","properties":{"gameNo":{"type":"integer"},"teamA":{"allOf":[{"$ref":"#/components/schemas/TeamRef"},{"description":"The match's team A (every unverified game is oriented to it)."}]},"teamB":{"$ref":"#/components/schemas/TeamRef"},"sides":{"anyOf":[{"$ref":"#/components/schemas/Sides"},{"type":"null"}]},"winner":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}],"description":"The wiki's winner; unchecked."},"winnerSide":{"type":["string","null"],"enum":["a","b",null],"description":"The winning side relative to this object's `teamA` / `teamB`, known even when a team could not be identified."},"durationSec":{"type":["integer","null"]},"vodUrl":{"type":["string","null"]}},"required":["gameNo","teamA","teamB","sides","winner","winnerSide","durationSec","vodUrl"]}],"description":"Oriented to the match's team A / team B."},"Substitution":{"type":"object","properties":{"team":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"side":{"type":"string","enum":["a","b"]},"playerIn":{"type":"string"},"playerOut":{"type":"string"},"playerInPage":{"type":["string","null"]},"playerOutPage":{"type":["string","null"]},"games":{"type":["array","null"],"items":{"type":"integer"},"description":"Game numbers; null means the whole match."}},"required":["team","side","playerIn","playerOut","playerInPage","playerOutPage","games"]},"LiveResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Live"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Live":{"type":"object","properties":{"live":{"type":"array","items":{"$ref":"#/components/schemas/Match"},"description":"Matches live now, every region."},"next":{"type":"array","items":{"$ref":"#/components/schemas/Match"},"description":"Per region, the upcoming matches of its next match day."}},"required":["live","next"]},"SeasonDraftsResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SeasonDrafts"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"SeasonDrafts":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"match":{"$ref":"#/components/schemas/Match"},"games":{"type":"array","items":{"$ref":"#/components/schemas/SeasonVerifiedGame"}}},"required":["match","games"]}},"completed":{"type":"integer","description":"Matches completed at request time and played (forfeits and walkovers have no draft and are not counted)."},"covered":{"type":"integer","description":"Completed matches with at least one draft."},"unreadable":{"type":"array","items":{"$ref":"#/components/schemas/DraftCoverageEntry"}},"missing":{"type":"array","items":{"$ref":"#/components/schemas/DraftCoverageEntry"}}},"required":["matches","completed","covered","unreadable","missing"]},"SeasonVerifiedGame":{"allOf":[{"$ref":"#/components/schemas/DraftSlots"},{"type":"object","properties":{"gameNo":{"type":"integer"},"teamA":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"teamB":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"sides":{"anyOf":[{"$ref":"#/components/schemas/Sides"},{"type":"null"}]},"winner":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"winnerSide":{"type":["string","null"],"enum":["a","b",null],"description":"The winning side relative to this object's `teamA` / `teamB`, known even when a team could not be identified."},"winnerSource":{"type":["string","null"],"enum":["scoreboard","liquipedia",null]},"vodUrl":{"type":["string","null"]}},"required":["gameNo","teamA","teamB","sides","winner","winnerSide","winnerSource","vodUrl"]}]},"DraftCoverageEntry":{"type":"object","properties":{"matchId":{"type":"string"},"reason":{"type":["string","null"]}},"required":["matchId","reason"]},"SeasonUnverifiedDraftsResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SeasonUnverifiedDrafts"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"SeasonUnverifiedDrafts":{"type":"object","properties":{"verified":{"type":"boolean","enum":[false]},"matches":{"type":"array","items":{"type":"object","properties":{"match":{"$ref":"#/components/schemas/Match"},"games":{"type":"array","items":{"$ref":"#/components/schemas/UnverifiedGame"}}},"required":["match","games"]}},"completed":{"type":"integer"},"covered":{"type":"integer"},"unreadable":{"type":"array","items":{"$ref":"#/components/schemas/DraftCoverageEntry"}},"missing":{"type":"array","items":{"$ref":"#/components/schemas/DraftCoverageEntry"}}},"required":["verified","matches","completed","covered","unreadable","missing"]},"StandingsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StageStandings"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"StageStandings":{"type":"object","properties":{"stage":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["regular","playins","last_chance","playoffs"]},"name":{"type":"string"}},"required":["id","kind","name"]},"derived":{"type":"boolean","description":"Computed by us from results (MM), not read from a table."},"asOf":{"type":"string","description":"When upstream last showed these standings.","example":"2026-11-05T12:00:00.000Z"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/StandingRow"}}},"required":["stage","derived","asOf","rows"]},"StandingRow":{"type":"object","properties":{"rank":{"type":"integer","description":"Shared ranks allowed."},"team":{"$ref":"#/components/schemas/TeamRef"},"wins":{"type":["integer","null"]},"losses":{"type":["integer","null"]},"gameWins":{"type":["integer","null"]},"gameLosses":{"type":["integer","null"]},"points":{"type":["integer","null"]},"netGameWins":{"type":["integer","null"]},"aggPoints":{"type":["integer","null"],"description":"MY only."},"livePoints":{"type":["integer","null"],"description":"MY only; null since S18."}},"required":["rank","team","wins","losses","gameWins","gameLosses","points","netGameWins","aggPoints","livePoints"]},"SeedsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Seed"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Seed":{"type":"object","properties":{"seed":{"type":["integer","null"]},"team":{"$ref":"#/components/schemas/TeamRef"},"label":{"type":["string","null"]},"matchWins":{"type":["integer","null"]},"matchLosses":{"type":["integer","null"]}},"required":["seed","team","label","matchWins","matchLosses"]},"StatTableResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StatTable"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"StatTable":{"type":"object","properties":{"family":{"type":"string","enum":["team","player","hero","hero-pool","player-pool","mvp","player-ranking","hero-ranking"]},"asOf":{"type":["string","null"],"description":"When upstream last showed this table; null before the first snapshot of the season.","example":"2026-11-05T12:00:00.000Z"},"sections":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/StatRow"}}},"required":["name","rows"]}}},"required":["family","asOf","sections"]},"StatRow":{"type":"object","properties":{"rowNo":{"type":"integer","description":"Order as published (ranks tie, so order is not rank)."},"entity":{"type":"object","properties":{"kind":{"type":"string","enum":["team","player","hero"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"team":{"anyOf":[{"$ref":"#/components/schemas/TeamRef"},{"type":"null"}]},"stats":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/StatValue"}},"extra":{"type":["object","null"],"additionalProperties":{},"description":"Per-family extras (pools, lanes). Images are upstream's own URLs, hot-linked: `heroImageUrl`, `playerImageUrl`. Each is null while upstream signs it (player photos today; a signed CDN URL expires in about 6h). Team logos are not carried: use `team.crest`."}},"required":["rowNo","entity","team","stats","extra"]},"StatValue":{"type":"object","properties":{"value":{"type":["number","null"]},"raw":{"type":["string","null"],"description":"As printed upstream.","example":"78.5%"},"derived":{"type":"boolean","enum":[true],"description":"Present and true only when `value` was computed by the API rather than printed upstream; `raw` is then null. Absent on printed values. Today only PH player `totalGames`: PH prints no games column, so it is the single whole number n for which every printed total and per-game average (kills, deaths, assists) agree within rounding (|total / n - average| <= 0.005), and null when no n or several fit."}},"required":["value","raw"],"example":{"value":0.785,"raw":"78.5%"}},"EventData":{"type":"object","properties":{"event":{"type":"string","example":"m8"},"source_url":{"type":"string"},"days":{"type":"array","items":{"$ref":"#/components/schemas/EventDay"}},"results_published":{"type":"boolean"},"matches":{"type":"array","items":{"$ref":"#/components/schemas/EventMatch"}}},"required":["event","source_url","days","results_published","matches"],"description":"v1's `EventData` body, field for field (snake_case), so the mlbbhub.com website can switch hosts without a deploy."},"EventDay":{"type":"object","properties":{"stage":{"type":"string","enum":["wild-card","main-stage"]},"day":{"type":"string","example":"2026-12-17"},"match_count":{"type":"integer"},"grand_final":{"type":"boolean"},"utc_times":{"type":"array","items":{"type":"string"},"example":["2026-12-17T12:00:00Z"]}},"required":["stage","day","match_count","grand_final","utc_times"]},"EventMatch":{"type":"object","properties":{"id":{"type":"string"},"stage":{"type":"string","enum":["wild-card-groups","wild-card-bracket","swiss","knockout","grand-final"]},"group":{"type":["string","null"]},"round":{"type":["string","null"],"enum":["semifinal","final",null]},"swiss_round":{"type":["integer","null"]},"bracket_side":{"type":["string","null"],"enum":["upper","lower",null]},"bracket_round":{"type":["integer","null"]},"label":{"type":["string","null"]},"day":{"type":["string","null"]},"best_of":{"type":["integer","null"]},"team_a":{"type":["string","null"]},"team_b":{"type":["string","null"]},"score_a":{"type":["integer","null"]},"score_b":{"type":["integer","null"]},"completed":{"type":"boolean"}},"required":["id","stage","group","round","swiss_round","bracket_side","bracket_round","label","day","best_of","team_a","team_b","score_a","score_b","completed"]},"HealthResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Health"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]},"Health":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded","empty","error"],"description":"The worst job status (error > degraded > empty > ok)."},"replica":{"type":"object","properties":{"replicated":{"type":"boolean"},"lastSyncAt":{"type":["string","null"],"description":"Last successful replica sync by this process.","example":"2026-11-05T12:00:00.000Z"}},"required":["replicated","lastSyncAt"]},"jobs":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"job":{"type":"string"},"status":{"type":"string","enum":["ok","degraded","empty","error"]},"since":{"type":"string","description":"Since when the job has had this status.","example":"2026-11-05T12:00:00.000Z"},"lastOkAt":{"type":["string","null"]},"lastChangeAt":{"type":["string","null"]},"detail":{"type":["string","null"]},"refused":{"type":["object","null"],"properties":{"count":{"type":"integer","description":"Every game the last pass refused (the true total)."},"games":{"type":"array","items":{"type":"string"},"description":"Why each was refused, one message per game (or per series), sorted (so by date), at most 50 of at most 300 characters."}},"required":["count","games"],"description":"`drafts` jobs only (null for every other job): the games the last pass refused when it verified Liquipedia's drafts against our scoreboard. A refusal where the two sources disagree (heroes, winner, length, the series score, or a half-typed wiki) is listed here and does not raise `status`; a refusal that is a fault of ours (an unknown hero, our scoreboard short or unreadable, two wiki matches for one pair), or more disagreements than max(3, 5% of the games checked), makes the job `degraded` and is also named in `detail`."}},"required":["region","job","status","since","lastOkAt","lastChangeAt","detail","refused"]}},"usage":{"type":"object","properties":{"today":{"type":"object","properties":{"runs":{"type":"integer"},"pagesFetched":{"type":"integer"},"pagesChanged":{"type":"integer"},"rowsWritten":{"type":"integer"},"errors":{"type":"integer"}},"required":["runs","pagesFetched","pagesChanged","rowsWritten","errors"],"description":"Ingest totals for the current UTC day."},"month":{"type":"object","properties":{"runs":{"type":"integer"},"pagesFetched":{"type":"integer"},"pagesChanged":{"type":"integer"},"rowsWritten":{"type":"integer"},"errors":{"type":"integer"}},"required":["runs","pagesFetched","pagesChanged","rowsWritten","errors"],"description":"Ingest totals for the current UTC month."}},"required":["today","month"]},"budget":{"type":"object","additionalProperties":{"type":"string"},"description":"Ingest's budget counters and breaker state (`meta` keys starting `budget.`)."}},"required":["status","replica","jobs","usage","budget"]}},"parameters":{}},"paths":{"/regions":{"get":{"tags":["Regions"],"summary":"List regions","description":"Every region with its current season.","responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionList"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}":{"get":{"tags":["Regions"],"summary":"Get a region","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegionResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons":{"get":{"tags":["Regions"],"summary":"List a region's seasons","description":"Newest first. Closed seasons are frozen and stay available.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonList"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}":{"get":{"tags":["Regions"],"summary":"Get a season","description":"The season with its stages and rounds. `features` lists what the season publishes; a route for anything else answers 404 `feature_unavailable`.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/teams":{"get":{"tags":["Teams"],"summary":"List a season's teams","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamList"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/teams/{team}":{"get":{"tags":["Teams"],"summary":"Get a team with its roster","description":"`team` is the team's slug this season or its id.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"},{"schema":{"type":"string","example":"onic"},"required":true,"name":"team","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamDetailResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/matches":{"get":{"tags":["Matches"],"summary":"List a season's matches","description":"The whole season, no pagination, ordered by date (undated last). `status` and `winner` are resolved at request time from upstream's signals and the clock.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"},{"schema":{"type":"string","description":"Stage id, or a stage kind (`regular`, `playoffs`, ...)."},"required":false,"description":"Stage id, or a stage kind (`regular`, `playoffs`, ...).","name":"stage","in":"query"},{"schema":{"type":"string","description":"Round key, e.g. `week-3`."},"required":false,"description":"Round key, e.g. `week-3`.","name":"round","in":"query"},{"schema":{"type":"string","description":"Team slug (this season or an alias) or id."},"required":false,"description":"Team slug (this season or an alias) or id.","name":"team","in":"query"},{"schema":{"type":"string","enum":["upcoming","live","completed"]},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchList"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/matches/by-ref/{ref}":{"get":{"tags":["Matches"],"summary":"Find a season's match by its upstream ref (v1 id)","description":"The match whose `refs.v1MatchDetailId` equals `{ref}`: v1's `match_detail_id`, which is the upstream ref (ID numeric detail id, PH slug, MY slug or numeric playoff id, MM wiki key). Exact and case-sensitive. Refs are unique per season only (MY slugs recur every season), so the season is part of the path; `current` resolves as everywhere, and after a rollover an old season's ref answers 404 under `current`. Store the match `id` going forward. Matches no longer listed upstream are still found.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"},{"schema":{"type":"string","description":"The upstream ref, as v1 served it in `match_detail_id`.","example":"1001"},"required":true,"description":"The upstream ref, as v1 served it in `match_detail_id`.","name":"ref","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/matches/{matchId}":{"get":{"tags":["Matches"],"summary":"Get a match with games, players, sides and verified drafts","description":"Games come from the official scoreboard. Bans, map sides and a winner the scoreboard lacks come from Liquipedia, only when verified against the scoreboard (credited in `meta.credit`). Unverified drafts are a separate route.","parameters":[{"schema":{"type":"string","example":"m_01jd8k5v4x0000000000000000"},"required":true,"name":"matchId","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchDetailResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/matches/{matchId}/unverified-draft":{"get":{"tags":["Drafts"],"summary":"Get Liquipedia's draft for a match, unverified","description":"Liquipedia's account of the series with nothing checked against a scoreboard: picks, bans, sides, the wiki's winner, duration, substitutions. Separate from `/matches/{matchId}` on purpose. 404 when the wiki has no readable draft for the match.","parameters":[{"schema":{"type":"string","example":"m_01jd8k5v4x0000000000000000"},"required":true,"name":"matchId","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnverifiedMatchDraftResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/live":{"get":{"tags":["Matches"],"summary":"Live and next matches across regions","description":"`live`: every listed match whose resolved status is `live` (a live marker at any age, or a kickoff within the last 12h; 36h when only the date is published). `next`: per region, the upcoming matches of its next match day. Matches no longer listed upstream (`missingSince`) are left out.","responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/drafts":{"get":{"tags":["Drafts"],"summary":"Verified drafts of a season, with coverage","description":"Every completed match with Liquipedia drafts that passed verification against our scoreboard, oriented per game. `completed`, `covered`, `unreadable` and `missing` describe coverage at request time.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonDraftsResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/unverified-drafts":{"get":{"tags":["Drafts"],"summary":"Unverified drafts of a season, with coverage","description":"Liquipedia's drafts for every completed match, unchecked against any scoreboard, oriented to each match's team A / team B.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeasonUnverifiedDraftsResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/standings":{"get":{"tags":["Standings"],"summary":"Standings of a season, per stage","description":"One table per stage that has standings, latest values. MM standings are computed from results with the league's declared points and tiebreakers (`derived: true`).","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"},{"schema":{"type":"string","description":"Stage id, or a stage kind."},"required":false,"description":"Stage id, or a stage kind.","name":"stage","in":"query"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandingsResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/stages/{stage}/seeds":{"get":{"tags":["Standings"],"summary":"Playoff seeding of a stage (ID only)","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"},{"schema":{"type":"string","description":"Stage id, or a stage kind naming exactly one stage (`playoffs`).","example":"playoffs"},"required":true,"description":"Stage id, or a stage kind naming exactly one stage (`playoffs`).","name":"stage","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedsResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regions/{region}/seasons/{season}/stats/{family}":{"get":{"tags":["Stats"],"summary":"A stats table of a season","description":"The latest snapshot of one family. Values are typed numbers with the printed string alongside (`{ value: 0.785, raw: \"78.5%\" }`). A family the region does not publish answers 404 `feature_unavailable`; one it publishes but has not shown yet this season answers `asOf: null` with no sections.","parameters":[{"schema":{"type":"string","description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","example":"id"},"required":true,"description":"Region code: `id`, `ph`, `my`, `mm`. Unknown codes answer 404.","name":"region","in":"path"},{"schema":{"type":"string","description":"Season number, or `current` (the most recent season that has opened).","example":"current"},"required":true,"description":"Season number, or `current` (the most recent season that has opened).","name":"season","in":"path"},{"schema":{"type":"string","enum":["team","player","hero","hero-pool","player-pool","mvp","player-ranking","hero-ranking"]},"required":true,"name":"family","in":"path"}],"responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatTableResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/events/{event}":{"get":{"tags":["Events"],"summary":"A cross-league event (M8 World Championship)","description":"v1's `EventData` body, snake_case on purpose. `results_published` is false and `matches` empty until the source publishes teams and scores: show \"not published yet\", not an empty table.","parameters":[{"schema":{"type":"string","example":"m8"},"required":true,"name":"event","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventData"}}}},"304":{"description":"Not modified."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/crests/{region}/{file}":{"get":{"tags":["Teams"],"summary":"A team crest (PNG)","description":"Vendored crest artwork, prepared for dark surfaces. Use the `crest` URL a team reference carries: its `v` (content hash) makes it safe to cache for a year. 404 when no crest is held.","parameters":[{"schema":{"type":"string","example":"id"},"required":true,"name":"region","in":"path"},{"schema":{"type":"string","example":"onic.png"},"required":true,"name":"file","in":"path"},{"schema":{"type":"string","description":"Content hash."},"required":false,"description":"Content hash.","name":"v","in":"query"}],"responses":{"200":{"description":"The PNG.","content":{"image/png":{"schema":{}}}},"304":{"description":"Not modified."},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health":{"get":{"tags":["Operations"],"summary":"Ingest health and quota usage","description":"Ingest status per region and job (written by ingest only when a status changes), ingest totals for today and this month (UTC), the budget breaker's counters, and this process's replica state. Never cached.","responses":{"200":{"description":"OK. `Cache-Control`, `ETag` (over `data`) and `Cache-Tag` are set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"304":{"description":"Not modified: the `If-None-Match` ETag still matches."},"400":{"description":"Malformed parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown region, season or entity (`not_found`), or a feature the season does not publish (`feature_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{}}