--- status: accepted --- # Two data sources: the local game client and the Riot API The app reads the local League client API for the active Account and for live state (champ select, end of a Match), and the Riot web API for Match history. We accept the cost of a second integration and a personal Riot API key because the client alone cannot backfill: measured on 2026-11-15, its match history endpoint returns only the 20 most recent games across all game modes and ignores paging, while the Riot API keeps about two years. ## Considered Options - **Client only**: no API key, but history limited to 20 recent games, so past Seasons and any Match played while the app was closed for long would be lost. - **Riot API only**: full history, but no knowledge of which Account is signed in and no champ select. ## Consequences - The client API is unofficial and may change between patches; the app must keep working on stored Matches when it is unavailable. - The app only ever reads from the client. It never picks, bans or acts on the player's behalf.