Closed cruxm4n closed 3 years ago
Hey @cruxm4n, If u can't access to the link by using the match history, u can use website like LeagueOfGraphs, who display the match id in the url. Search your username in game, and clic on a game on the profile For example, for my last draft game :
And for the custom game is it impossible to have it?
While it's very hard to get the match id of a custom game, the issue isn't here. To be clear : Riot API doesn't allow to access to data on a custom game. The only solution I found is to connect my program to League of Legends client. At the end of the game, u have a endpoint to fetch some stats on the game. Unfortunately, these data aren't complete. U can't know how many drakes has been killed in the game, u can't know how many barons has been killed in the game, u don't have the gold diff per minute. I tried in the past to make a version of this program for custom game, and I success but... It's not very stable unless u know exactly how it works. U have to enter the drake kill by urself etc... I send a message to Riot Devs, but I still don't have a answer rn
There is the v2.0 of my program, who include the endpoint to get the postgame image of a custom game As u can see, it's not really intuitive If u want to fork my repo to try to make it better, I used 2 libraries to get the data : lcu-connector and rift-explorer, who is the API doc of lcu-connector U can find this updated code in /dev branch But, even if u can't get the postgame image, u can still generate the pre game image by using the username of someone in the custom game (while players are in game).
After watching a game, how can you easily get the match id by saying that you don't have access to the link: visit the web?