Riot Games Api
League of Legends (abbreviated LoL) is a multiplayer online battle arena video game developed and published by Riot Games for Microsoft Windows and macOS. The game follows a freemium model and is supported by microtransactions, and was inspired by the Warcraft III: The Frozen Throne mod, Defense of the Ancients.[1]
League of legends or lol is a popular game with an active api with the following highlights:
Dynamic API:
- get champions data - https://eun1.api.riotgames.com/lol/platform/v3/champions?freeToPlay=false&api_key= (my usage of the api to get champions that are free to play to my free to play widget)
- https://eun1.api.riotgames.com/lol/static-data/v3/champions?locale=en_US&tags=all&dataById=true&api_key= (get all chmapions with details: abilities, skins etc.)
- get summoner data
- create tournament
- game statistic
- game status
Static Data:
- usage: - Profile Icons:
http://ddragon.leagueoflegends.com/cdn/6.24.1/img/profileicon/588.png - Champions:
http://ddragon.leagueoflegends.com/cdn/img/champion/loading/Aatrox_0.jpg (replace 0 with +1 to change skins) - Items:
http://ddragon.leagueoflegends.com/cdn/6.24.1/img/item/1001.png - Masteries:
http://ddragon.leagueoflegends.com/cdn/6.24.1/img/mastery/6111.png - Runes:
http://ddragon.leagueoflegends.com/cdn/6.24.1/img/rune/8001.png - Summoner Spells: - http://ddragon.leagueoflegends.com/cdn/6.24.1/img/passive/Cryophoenix_Rebirth.png
- http://ddragon.leagueoflegends.com/cdn/6.24.1/img/spell/FlashFrost.png
- http://ddragon.leagueoflegends.com/cdn/6.24.1/img/spell/SummonerFlash.png
- info: - Profile Icons:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/profileicon.json - Champions:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/champion.json - Individual Champions:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/champion/Aatrox.json - Items:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/item.json - Masteries:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/mastery.json - Runes:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/rune.json - Summoner Spells:
http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/summoner.json
Notes
after the last time i played with the api and it was very long to get application approve back then, and the riot api limit is a nightmare for developer, this time it was
much faster and the response was positive!:)
what make the development a bit easier although i will recommend using some sort of caching mechanism, to avoid riot limit on a certain api.
https://github.com/niradler/lol-freeToPlay in my server i will query the api once in an hour, and then response from local data.
my free to play widget GitHub