0

I want to code a script to retrieve data from league of legends game while spectating. I want to open the league of legends client, join a game as a spectator, then run the script, and the script collects all the game data, champ damage, gold etc and save that to a json file.then display that data nicely on a webpage and the gold and players damage as graphs.

Does riot games apis provide such a thing or if there's anything on GitHub I can use for this kinda job?

SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
Sed Benzid
  • 21
  • 5

3 Answers3

1

I didn't tried this, but I think LCU API can help you.
You can may open League of Legend client and join as a spectator with this.

But unfortunately, there is no official LCU API documentation, so you can see this documentation.

I hope I can help you.

Superjay
  • 447
  • 1
  • 7
  • 25
0

There's an API for downloading the match timeline which is probably what you're after. There's no need to spectate a game to get it, you just need to register for an API key, and then you can download it using the match ID.

Mikael Dúi Bolinder
  • 2,080
  • 2
  • 19
  • 44
-1

The way I was able to get around it is by using ocr to read the screen, I can grab anything that is displayed, but for damage currently there is no way. If you want a gold graph its best to make it yourself in python.