Explain
Routing values (AKA “why is this empty?”)
Riot has multiple hosts. Some endpoints want a platform host (like na1). Some want a
regional host (like americas). If you call the wrong one, you often get 404s or empty lists.
TL;DR
- Platform hosts look like
na1,euw1,kr. - Regional hosts look like
americas,europe,asia. - If you get
[]: print the host you’re calling first.
Platform routing
Good for “live on this server” stuff (summoner, ranked, etc.). Looks like: na1, euw1,
kr.
Regional routing
Good for match history / match details. Looks like: americas, europe,
asia.
The “print the host” rule
If you get [] for match IDs, print the exact URL (host included). Most bugs are “wrong host”, not “broken
code”.
One-line self-check
print('HOST CHECK:', base_url)