Where the numbers come from
Riot's API has no win rates. Like every statistics site, Optimancer collects ranked games itself and counts them. Nothing is copied from other sites.
- Games: Ranked Solo/Duo and Ranked Flex on EUW, found through the players on the Challenger, Grandmaster, Master, Diamond and Emerald ladders, highest ranks first: the players at the top are asked for their games first, and those games are fetched first.
- Counted: games of the current or previous patch, at least 5 minutes long, without an early surrender (remake), with every position assigned.
- Per player and game: champion, position, win, summoner spells, the full rune page, the items bought in the first minute, the completed items in the order they were first bought, the boots, and the order of the ability points (from the game's timeline).
- Opponent in the matchups: the enemy champion in the same position.
- Lane at 15 minutes: total gold, CS (minions and monsters) and XP of both lane opponents at the timeline's minute-15 frame. The matchups show the average difference, over the games that lasted 15 minutes.
The rank of a game
A game has no rank of its own. Optimancer gives it the median rank of the players whose rank it knows, from the ladder pages it reads once a day. If it knows none of them, the game gets the rank of the player it was found through. The champion page shows what share of its players had a known rank. The rank filter applies to this game rank.
How to read a win rate
Every win rate comes with its number of games and its 95% interval (Wilson score). With 100 games a 50% win rate could just as well be 40% or 60%. With 10,000 games it lies within about ±1 point. In the lists, the dot is the win rate and the line is its interval, on a 30–70% scale. The grey hairline is 50%, the red tick the champion's average. Rows with fewer than 30 games are greyed. Hover a row or focus it with the keyboard for the exact numbers. The small ▲/▼ number is the difference from the champion's average in points.
A high win rate does not prove that an option is better. Players who choose it may differ: they may be one-tricks, or the option may suit games that are already going well. Compare options that have many games and intervals that don't overlap.
The arrows on the icons
Every champion, ability, item, rune and summoner spell shows how its last change went: a green ▲ for a buff, a red ▼ for a nerf, a grey ↔ for an adjustment. A gold ring around the arrow means the change is in the current patch. Hover the arrow to see the change line by line and the patches before it, or click it for the whole history.
Riot labels buffs, nerfs and adjustments only in each patch's infographic, which is an image, and only for champions. Items are listed there under "Systems" without a direction. So Optimancer judges every line of the wiki's patch notes by its wording:
- "increased" / "reduced" decides the direction. For cooldowns, costs, cast times and delays, less is better.
- "changed to … from …" compares the numbers.
- New or removed effects and descriptions without numbers count as adjustments.
- Bug fixes and minor changes (icons, visuals, sounds, tooltips, renames, level requirements, recipe notes, other modes like ARAM or Arena) don't count. The patch histories hide them unless you switch them on. A patch with only those is skipped when looking for the last change.
- The patch that added a champion, item or rune describes it rather than changing it. It is marked ★ New and gives no arrow, so something never changed since its release has no arrow.
A patch is a buff when all its counted lines are buffs, a nerf when all are nerfs, otherwise an adjustment. Compared with Riot's infographics for patches 26.21 and 26.22, this gives Riot's verdict for 35 of 40 champions. The other five were mixed patches that Riot counted as a net nerf (or buff), and Optimancer shows those as adjusted.
How much data
With a development or personal API key Riot allows 100 requests per 2 minutes per host.
EUW games come from the europe host, so that is about 30,000 games per day (a game takes
two requests: game and timeline), but only while the site is running. Every game counts ten
players. More regions (KR, …) can be switched on, each with its own budget; for now the budget goes
to EUW's highest ranks.
Getting a Riot API key
- Sign in at developer.riotgames.com.
- A development key is there right away. It expires after 24 hours, which is good for a first try.
- For a key that doesn't expire, register a personal product there. That is what a tool for yourself, not open to the public, is meant to use.
- Put the key in
riot_key.txtin the Optimancer folder (it is not committed to git), or set the environment variableRIOT_API_KEY. The site notices it within a minute.
Game data, icons and patch notes
- Champions, abilities, items, runes, summoner spells and icons: Riot's Data Dragon. Rune stat shards come from CommunityDragon. Once an hour the site checks whether a new patch is out; if so, it downloads the new data and icons. It keeps the games of the current and the previous patch.
- Patch histories: the League of Legends Wiki (CC BY-SA 3.0), read through its API. Every 6 hours the site asks which pages changed and downloads only those, one page per second. The wiki says "V26.07" where Riot's data says "16.7". Optimancer converts between the two, so it can mark the current patch.
- Everything downloaded is kept in
assets/lol/cache/.