API reference¶
Every Riot product is a namespace on the client, and every namespace method
returns a query you run with .execute(). The result is the entity itself,
carrying its own .error and .http — see Entities & relations
and Errors for the shared model, then jump to a namespace below
for its per-endpoint calls and responses.
import { Yasuo, Region, RegionGroup } from 'yasuo.js'
const yasuo = new Yasuo({ key: process.env.RIOT_API_KEY })
League of Legends — yasuo.lol.*¶
- Summoner —
byPuuid(lazy ref),byId,byAccountId. - League — ranked entries, apex tiers, ladder streaming.
- Champion Mastery — masteries, top-N, score.
- Champion Rotation — the free-to-play rotation.
- Match — matches, timelines, id/match streaming.
- Spectator — live game, featured games.
- Status — platform status.
- Clash — players, teams, tournaments.
- Challenges — config, percentiles, leaderboards, player.
Teamfight Tactics — yasuo.tft.*¶
Riot & static data¶
- Account —
yasuo.riot.account: PUUID ↔ Riot ID, active shard/region. - Data Dragon —
yasuo.dataDragon: static CDN data (no key, no rate limits, awaited DTOs).
For the flat, one-line-per-endpoint list across all products, see Endpoint coverage.