Examples¶
Working code examples demonstrating common usage patterns for the Riot Games API.
Available Examples¶
-
Summoner lookups, match history, champion mastery, live game spectator
-
TFT summoner data, match history, ranked leaderboards
-
Content data, platform status
Running the Examples¶
All examples require:
- A valid Riot API key set as
RIOT_API_KEYenvironment variable - The
riotskillissuepackage installed
# Set your API key
export RIOT_API_KEY="RGAPI-your-key-here"
# Run an example
python examples/basic_usage.py
Included Example Scripts¶
The /examples directory in the repository contains runnable Python scripts:
| Script | Description |
|---|---|
basic_usage.py |
Account lookup and summoner data |
match_history.py |
Fetching and processing match history |
champion_mastery.py |
Champion mastery rankings |