League of Legends Game Information
The Riot Games Developer Portal offers APIs for accessing League of Legends game information, player data, and match history.
import requests
api_key = 'YOUR_API_KEY'
summoner_name = 'Doublelift'
region = 'na1'
url = f'https://{region}.api.riotgames.com/lol/summoner/v4/summoners/by-name/{summoner_name}'
headers = {
'X-Riot-Token': api_key
}
response = requests.get(url, headers=headers)
print(response.json())Last 50 checks (10 min intervals)