Api Documentation

"All systems charged"

- Ezreal

Spectating Games

The Current Game API, as the name would suggest, provides information about games that are currently in progress. When making a call to the Current Game API, the response contains an object called observers has a property called encryptionKey, which is used to launch the spectator client in order to view the game that is currently in progress.


{
        "gameId": 1726229459,
        "mapId": 11,
        "gameMode": "CLASSIC",
        "gameType": "MATCHED_GAME",
        "participants": [...],
            "observers": {
            "encryptionKey": "P+C3YqI3Mg9oHc6t9eTAKWE4T8prxwzR"
            },
            "platformId": "NA1",
        "gameTypeConfigId": 1,
        "bannedChampions": [...],
        "gameStartTime": 1423594330450,
        "gameLength": 135
            }

Command Line

The spectator client may fail to run if not launched from within the League of Legends directory.

cd "C:\Riot Games\League of Legends\RADS\solutions\lol_game_client_sln\releases\0.0.1.148\deploy\"

Start the spectator client by launching the League of Legends client with the following parameters

"League of Legends.exe" 8394 LoLLauncher.exe "" "spectator spectator.na.lol.riotgames.com:80 P+C3YqI3Mg9oHc6t9eTAKWE4T8prxwzR 1726229459 NA1"

There are several things to note about starting the spectator client from the command line:

  • First the path to the League of Legends game client. The most recent release should be used.

  • "C:\Riot Games\League of Legends\RADS\solutions\lol_game_client_sln\releases\0.0.1.148\deploy\"
  • The first two parameters following the League of Legends client itself are related to Maestro and should be considered constants for the purpose of starting the spectator client. The third parameter should be an empty string.

  • "League of Legends.exe" 8394 LoLLauncher.exe ""
  • The last parameter is what determines which game will be spectated. "spectator" will always remain constant, but following "spectator" is the domain and port of the spectator grid, the encryptionKey, the matchId, and the platformId.

  • "spectator spectator.na.lol.riotgames.com:80 P+C3YqI3Mg9oHc6t9eTAKWE4T8prxwzR 1726229459 NA1"

Spectator Grids & Platform Ids

Region PlatformId Domain Port
NA NA1 spectator.na.lol.riotgames.com 80
EUW EUW1 spectator.euw1.lol.riotgames.com 80
EUNE EUN1 spectator.eu.lol.riotgames.com 8088
JP JP1 spectator.jp1.lol.riotgames.com 80
KR KR spectator.kr.lol.riotgames.com 80
OCE OC1 spectator.oc1.lol.riotgames.com 80
BR*
LAN*
LAS*
BR1
LA1
LA2
spectator.br.lol.riotgames.com
spectator.la1.lol.riotgames.com
spectator.la2.lol.riotgames.com
80
RU*
TR*
RU
TR1
spectator.ru.lol.riotgames.com
spectator.tr.lol.riotgames.com
80
PBE PBE1 spectator.pbe1.lol.riotgames.com 8088
* This spectator grid supports multiple regions that have been grouped together. If you request the featured games for this grid it may return featured games from any of the regions this spectator grid supports.