dolejska-daniel / riot-api

Riot League of Legends & DataDragon API wrappers for PHP7 and PHP8.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about Winrate per Champion

New-on-Git opened this issue · comments

Hello,

I'm wondering if there's any solutions of getting the winrate per champion easily.

I'm actually getting it by using $api->getMatchlistByAccount then $api->getMatch to have the infos about who's winning each game and then comparing if the player is in the same team as the winning team.
But at the end it's making me doing a lot of API call ( one for each game). It also makes my page really slow to load.
Any idee on how to make it less heavy or if there's another better option for this ?

Also, because of my Developement API Key i'm able to do only the last 100 game. Is this the limit for this ?

These limitations are intended, and as far as I know, there is no better way to acquire such statistics.

ok ! Thanks a lot