export_games: Export games for a player

View source: R/games.R

export_gamesR Documentation

Export games for a player

Description

Downloads games from ⁠/api/games/user/{username}⁠ and requests NDJSON. Returns a tibble of commonly-used analysis fields, plus a raw list-column containing each full game object as returned by the API.

Usage

export_games(
  cl,
  username,
  max = 100,
  since = NULL,
  until = NULL,
  perfType = NULL,
  rated = NULL,
  opening = TRUE
)

Arguments

cl

A horsey_client.

username

Lichess username.

max

Maximum number of games to request (default 100).

since

Optional epoch milliseconds (inclusive).

until

Optional epoch milliseconds (exclusive).

perfType

Optional perf filter (e.g., "blitz", "rapid").

rated

Optional logical filter.

opening

If TRUE, ask Lichess to include opening info when available.

Value

A tibble with selected metadata columns and a raw list-column.


horsey documentation built on Jan. 22, 2026, 5:07 p.m.