Skip to content

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.*

  • SummonerbyPuuid (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.*

  • SummonerbyPuuid (lazy ref), byId.
  • League — entries, apex tiers, rated ladder.
  • Match — matches, ids, streaming.
  • Spectator — live game, featured games.

Riot & static data

  • Accountyasuo.riot.account: PUUID ↔ Riot ID, active shard/region.
  • Data Dragonyasuo.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.