Overview
The Riot Games API gives developers access to League of Legends player data, match history, champion stats, and ranked information. You need a developer API key from the Riot Developer Portal, and free development keys have a strict rate limit of 20 requests per second. It is best suited for building stat trackers, match history viewers, or LoL companion apps.
Beginner Tip
Development API keys expire every 24 hours and are rate-limited. For a public app, apply for a production key from the Riot Developer Portal to get higher and stable limits.
Available Data
Example Response
{
"match_id": 4521,
"home_team": "Team A",
"away_team": "Team B",
"score": {
"home": 2,
"away": 1
},
"status": "Full Time",
"date": "2025-01-15",
"league": "Premier League"
} Field Reference
id Encrypted summoner ID used for other API calls accountId Encrypted account ID unique to the summoner puuid Encrypted PUUID (Player Universally Unique ID) used across Riot games name Display name of the summoner summonerLevel Current level of the summoner account Implementation Example
const url = "https://developer.riotgames.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Brawl Stars
The Brawl Stars API provides official game data including player profiles, club info, battle logs, and brawler statistics.
Clash of Clans
The Clash of Clans API provides official data on players, clans, clan wars, leagues, and rankings from Supercell's hit mobile strategy game.
Clash Royale
The Clash Royale API offers official data on players, clans, cards, battles, and tournaments from Supercell's card-battle mobile game.
Destiny The Game
The Destiny The Game API (Bungie Platform API) gives developers access to data from the popular Destiny franchise, including player stats, character info, and game content.
Dota 2
The Dota 2 API (OpenDota) provides detailed match history, hero statistics, player rankings, and game data for the popular MOBA game Dota 2.