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.
  • Tournament — providers, tournaments, codes, lobby events (+ stub).

Teamfight Tactics — yasuo.tft.*

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

VALORANT — yasuo.val.*

Routes by Shard (NA, EU, AP, KR, …).

  • Content — agents, maps, skins, acts.
  • Match — match, matchlist, recent, byPuuid.
  • Console Match — PlayStation/Xbox matchlist + recent.
  • Ranked — act leaderboards.
  • Status — platform status.

Legends of Runeterra — yasuo.lor.*

Routes by RegionGroup (AMERICAS, ASIA, EUROPE, SEA).

  • Match — match ids, match, byPuuid.
  • Ranked — Master-tier leaderboard.
  • Status — platform status.

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.