← All projects

Scouting a League team on public data

Riot API tooling for a student league team, from one-player profiles to full team scouting reports, and the data ceiling I keep running into.

· active

  • data-analysis
  • league-of-legends
  • riot-api
A hexbin heatmap of one player's positions over eighteen games, plotted on a stylised Summoner's Rift

Last updated: 9 November 2026.

New since August: Scout, a program that scouts a whole team instead of one player. Five Riot IDs in, one report out: per-player signals, the botlane, premades, games played as a stack, suggested bans, a head-to-head against another report, and a much better smurf detector.

I played in the Grosse Ligue, a French student league, from 2021 to 2023, first as a player and then as manager and coach of a team I built with friends. We were good (when I wasn't playing). We played at the top level of the competition in our region, with teams that were competing at national and international level.

Coaching that team was much less about League than people assume. It was booking scrims against opponents who would actually show up, holding a planning together around five sets of lectures, and arriving at a best-of with a draft that was not improvised. Preparing a draft means knowing who you are playing against, and the way everyone did that was to open op.gg, read a few numbers, watch a VOD if someone had time, and hope for the best. I wanted something better than a guess, and the Riot API was sitting right there.

The first tools

Jungle pathing. A jungler's first three minutes tell you most of what you need to know about how the enemy team wants to play. Match timelines give you every player's position once a minute, which is enough to see which side of the map someone starts on, whether they clear full camps or cross to the other half early, and how often they are already in a lane by three minutes. It is not precise, and I will come back to that, but it can give you an insight about the way someone plays, their habits, and help anticipate their movements.

Vision setup. Similarly, vision setups can be a lot about habits and reflexes. This means that knowing how your opponent wards can help you surprise them, and use paths that are likely not visible to them. It can also give you a lot of insight on your own problems, and we had a lot of them with vision.

Smurf detection. This one is different than the other two, and it was mainly used in other competitions where we had account limitations. For example, some competitions have a rank limit for players, which is exactly the thing a strong player gets around by making a fresh account and playing the bracket it lets them into.

The idea is that a smurf can be detected by using their friend list, their habits and a bit of data. You can detect some accounts that play with the same people, but never together. Then, you can check if they play at the same periods, and that they are never in-game at the same time, especially when one starts playing just after the other logged off. And with data, you can make an estimation of the probability for two accounts to never play at the same time. This led us to find a few smurfs that eventually admitted to cheating and were banned from the competition.

The current version

The league era ended, the itch did not, and the tooling turned into a proper toolkit. It is two programs sharing one API client.

The first is a scouting report. You give it a Riot ID and it pulls the recent match history plus timelines, builds per-match features out of the participant record, the challenges block and the position frames, and renders a profile: champion pool, role split, a ten-axis playstyle model, a Carry ↔ Facilitator index, a damage profile, a role-specific archetype and the position heatmap at the top of this page.

The axes come out as a shape rather than a score, which is the point. Here is my own support profile, which is a flattering read of a 39% winrate:

Axis Score
Disruption (CC) 73
Vision / Map control 69
Early game 67
Durability (frontline) 61
Enabling (teamplay) 56
Farming / Economy 39
Damage output 38
Aggression 33
Survivability 27
Objective control 2

Two decisions in there are worth defending. The axes are heuristics scaled to typical solo queue ranges, so they are useful for comparing players against each other and for spotting a shape, and they are not ladder percentiles. And the playstyle model runs on the player's most-played role only, because farm and vision mean entirely different things for a support and a jungler, and averaging across roles produces a profile of nobody. The champion pool and the winrate still use every game.

The second program is a build optimiser. Instead of reporting the most common build on some aggregator, it simulates the champion's damage and survivability against the enemy team that was actually in the game (their champions, their levels, their resistances, their items) and searches for the item set that maximises a weighted objective. It does that several times under different priorities, so you get options rather than an answer: max damage, balanced, leaning into surviving whoever is fed, anti-tank shred, anti-heal.

Then it sequences the six items into a buy order by re-running the simulation at each step with the enemies scaled from base stats toward their final build. In theory that should produce a sensible order on its own, without a single rule about build paths. In practice it doesn't, and the table below is the proof:

# Buy Why now Δ damage
1 Rabadon's Deathcap core power spike +57%
2 Sorcerer's Shoes boots +7%
3 Void Staff penetration +41%
4 Shadowflame keep scaling your damage +46%
5 Stormsurge final damage +55%
6 Lich Bane final damage +58%

This is where you can see the actual limitations. The optimiser doesn't have enough data about everything going on, so it resolves for maximum damage and doesn't take into account other resources like mana, health... Things that can let you farm and survive longer, eventually putting you in a better situation.

Scouting the whole team

The profile above has one obvious problem: you never play against one player. A draft is against five people, and a lot of what matters sits between them. Who duos with whom, what they pick when they queue together, whether the support only wins with one specific ADC. So I wrote a third program, Scout, which does what I actually wanted back in 2022.

You give it the five Riot IDs of a team, one per role, and a team name. It pulls up to 150 ranked games per player over the last 90 days, with their timelines, and produces a report you read in the browser and can print to PDF before a match. It runs locally, and the interface is in French, since the people it was built for are.

The annoying part is the rate limit. A development key allows 100 requests every two minutes, and every game costs two (the match and its timeline), so the first run on a fresh team of five takes 15 to 20 minutes. After that, every game is cached on disk, compressed, forever. Running the report again is instant, and so is scouting a team that played against one you already did, because a lot of their games are already there. The last report I ran covered 637 games and needed 45 requests, which took 13 seconds.

The overview page of a Scout report for "Équipe A": a roster table with each player's rank, games, winrate, KDA, gold difference at 15 and main champions, two suspected smurf accounts listed under their mains with scores of 93 and 85, then the five suggested bans and the start of the key signals table
The first page of a report. Every name is a placeholder here, since these are real players. The two rows tagged smurf are second accounts Scout found on its own, with their own stats.

Signals instead of numbers

My first version of each player page was a wall of statistics, and nobody reads a wall of statistics just before a match. So now every page opens with a short table of signals: only the indicators that stand out, each one tagged as a weakness to exploit, a strength to respect, or just something worth knowing. Here is the top laner of one team I scouted, on a short sample of 25 games:

Signal Value Context Read
Gold diff at 15 +882 ahead in 73% of games strength
Killed 1v1 before 14 min 1.0 / game 1.0 by the lane opponent weakness
Solo kills 2.5 / game strength
Winrate under 25 / over 32 min 88% / 38% better early info
Winrate blue / red side 50% / 70% info

You don't need anything else to plan that lane. This is someone who wins lane and dies in lane, which usually means they take every fight on every wave. You either punish that with a jungler nearby or you survive it, and when they don't get ahead and finish the game before 25 minutes, they usually struggle more.

The thresholds are absolute ("more than 2.2 deaths before 14 minutes is a problem"), not compared to the rest of the ladder, so they are a first filter and not a verdict. The full numbers are still underneath for anyone who wants them: lane diffs at 10 and 15 minutes, winrate when ahead and when behind, level 6 timing, champion pool with runes and first items, results against each lane opponent and against each class of champion, leads thrown and comebacks.

Two signals turned out to be more useful than I expected. The first is the hidden pick: a champion with a big mastery score and zero ranked games in the period. Eight of the ten players in the two reports I've run so far had at least one with more than 100k points. That's a champion they can lock in without you expecting it. The second is the split of early deaths, which comes from the event stream rather than the position frames: every kill has a timestamp, a position and a list of everyone involved, so I can tell a solo death from a death to the lane opponent and from a death to a gank. "Dies a lot early" is not that useful alone. "Dies to the jungler, never to the laner" can give you a game plan.

The role-specific parts use the same data. For junglers: which side they start on, how often they invade at level 1, whether they contest the scuttle crab at 3 to 4 minutes, which lane they visit first and when their first takedown happens. For mid laners, how often they leave lane between 3 and 14 minutes and how much of their kill participation happens outside mid. For supports, vision and roaming. It's still one position a minute underneath, so it can only describe habits.

The jungle section of a player page: headline numbers (14 games with timeline, 7% level 1 invades, 64% at the scuttle crab at 3 to 4 minutes, first takedown usually bot around 5 minutes), two maps of Summoner's Rift with kills, assists and deaths before 7 minutes and between 7 and 14 minutes, and a table of takedowns and deaths by zone
The jungle part of one player page. Green dots are kills, rings are assists, red crosses are deaths, all before 14 minutes.

Bans

Each player gets a short list of champions worth banning, and the team gets the best five overall. The score is simple on purpose. A champion counts more if it was played a lot, more again if it was played in the last 30 days, and only if it wins. The winrate is smoothed, as if every champion started with 3 wins and 3 losses, so a 3-0 doesn't beat 30 games at 60%.

The team

The second half of the report is about the five of them together.

Botlane. The ADC's games with this support compared to their games without them, which champion pairs they play, and how the duo does against each class of enemy support. In one report, the duo won 80% of their games together against 60% for the ADC alone, and was +2,426 gold ahead in the botlane at 15 minutes. Small sample, but the takeaway was pretty clear.

Premades. Who plays with whom inside the roster, how often, with what result, and which outside accounts keep showing up with them. Those regulars matter later, for the smurf detection.

Games as a stack. Every game where three or more of them queued together: winrate, game length, how often they take first blood, the first tower, the first drake, the grubs, the herald, the first baron, what classes of champions they draft and what kind of damage they deal. My favourite table in there is the reserved picks: champions a player has played at least twice with the team and at most once without. One player had a champion at 4 wins out of 4 in stack games and had touched it once alone. That can reveal a draft preparation and what they are specifically trying to play together.

The team compositions section: 10 games with three or more roster players, 9 wins and 1 loss, a table of champions each player plays with the team, the duos that come back, the team's bans, and the reserved picks, with Sejuani at 4 games and 4 wins in stack and once without the team
Games as a stack. The reserved picks are at the bottom right.

Head-to-head. Once two reports exist, say yours and your opponent's, you can put them side by side. Role by role on about twenty indicators, lane matchups (how each player does against the champions their direct opponent plays most), suggested bans in both directions, and any games where the two teams already met.

The head-to-head page, "Équipe A vs Équipe B": a role by role table comparing the two teams' players on rank, games, winrate, KDA and gold, CS and XP differences at 15, with the better value of each pair in green
The top of the head-to-head. The full table goes on for about twenty rows.

Smurf detection, again

The old idea stayed the same: someone with a second account brings their friends along. What changed is how carefully it's done.

For each player, Scout takes their regular partners (the rest of the roster plus anyone they played at least three games with), reads the games those partners played without them, and lists who they queue with there. An account that keeps showing up with the same friends, has never been in a game with or against the player, and has never been in a game while the player was also in one, becomes a candidate. Then it gets scored:

Clue Points
Same champions as the main up to 30
Number of games with the shared friends up to 15
Low account level up to 15
Number of shared friends up to 10
Same role up to 10
Same hours of play up to 10
Plays on days the main doesn't up to 5

Champions weigh the most because it's the hardest habit to change. People make a new account to escape their rank, rarely their champion pool.

The best candidates then go through a stricter check. Scout pulls the candidate's full match list, but downloading every game would burn the rate limit. Match IDs grow with time on a server, so it estimates when each game started from its ID alone, using the games it already has as a reference, and only downloads the ones that could have happened within three hours of one of the main's games. Then it compares start and end times to the minute. One overlap and the candidate is cleared. No overlap and the score goes up.

Accounts that reach 80 get the full treatment: they are analysed exactly like a roster player, with their own page right after their main, a combined champion pool across both accounts, and their champions count in the suggested bans. In the first team I ran it on, it flagged two. One of them scored 93: ten games, all with the same friend, all in the main's role, every champion already in the main's pool, account level 57 against 454 for the main. And not a single game played on a day the main played.

The smurf detection section: for each roster player, a table of candidate accounts with their score, games with the player's partners, shared role, shared champions, hours similarity, share of games on days the player doesn't play, account level and the overlap check. The top laner's candidate scores 93 with 0 overlaps out of 12 games compared, and accounts cleared by the timing check are listed below the jungler and support
The detection table. The last column is the timing check: 0 / 12 means twelve games compared to the minute and not one overlap. Under the jungler, you can see the accounts it cleared because they were playing at the same time.

It's still a clue and not proof, and the report says so. But when it lands on an account like that one, you can make an educated guess.

Where the public API stops

Everything above runs on what Riot publishes, and that is a real ceiling rather than an inconvenience.

Positions arrive once a minute. For a heatmap that is fine. For pathing it is not: a jungler's clear order, the moment they decide to cross the map, the three seconds where they hover between a camp and a gank, all of it happens between two samples. The event stream helps a bit: kills, ward placements and purchases carry exact timestamps, and Scout now reads the kills, which is where the early death split comes from. It still doesn't give me movement.

There is also nothing about inputs, camera, or what a player could see when they made a decision. And professional matches are not in the match API at all, so "scout a pro player" really means scouting their solo queue account, which is a different player playing a different game.

So I went looking for a way around it. The routes that exist are the unofficial endpoints the clients themselves talk to, the data the game client exposes locally while you are spectating, and scraping the third-party sites that have already done the aggregation. I got far enough with those to know they would work, and then stopped, because I could not find a version of any of them I was comfortable with. The terms either forbid it or are vague about it, and I'm not willing to take that risk yet.

What I would build with the real thing

The ideas did not go away, and they are the reason this project is still open.

A pathing analyst that reasons about decisions. Not a heatmap of where the jungler went, but an account of what they chose. With the event stream and dense positions you can locate the decision points, the moment a clear could have become a gank, the moment a path committed to one half of the map, and ask what the alternatives were worth. The interesting output is not "they pathed bottom", it is "they pathed bottom like usual and didn't spot this other action that could have led to a better outcome".

Builds, properly. The optimiser is the seed of this. What I want is the same simulation turned on a whole patch of games: which items are bought out of habit rather than value, which matchups invert a standard build, how much the right third item is actually worth in a fight that lasts eight seconds instead of twenty.

Player statistics that look like football's. This is the one I really want. Football has spent twenty years learning to separate a player's contribution from their team's result, and it now has offensive and defensive numbers, decision-making metrics, and expected goals as the thing underneath all of it. League has nothing equivalent in public. We have KDA, which is close to useless, and damage share, which rewards hitting tanks. I'm convinced we could have something much bigger, and I'm sure some teams have built similar projects, but it would be cool to have my own.

The analogue to expected goals is not "expected kills". xG works because a shot is a discrete event in a describable context, and you can learn the probability that a given context becomes a goal. The League version of that context is a game state, and the thing to predict is not a kill but a positive scenario: given everything true at this moment, what is the probability the next fight is won, the next objective is taken, the game is won. Then you credit the players who created the state rather than the ones who collected the takedown. The support who set up a fight three seconds before it happened gets the number, and so does the player who stepped where they should not have.

The honest problems with that are: League states are continuous and enormous where a shot is small and discrete, teammates confound everything in a way that football has only partly solved, and the sample of professional games per patch is tiny compared to a season of football. Which is exactly why it needs the granular data. You cannot learn that model from one position sample a minute.