client: Create a Lichess API client for analysis/export workflows

View source: R/client.R

clientR Documentation

Create a Lichess API client for analysis/export workflows

Description

horsey is designed for read-only access and data export. Provide a token for endpoints that require authentication. If token is NULL, client() will use Sys.getenv("LICHESS_TOKEN").

Usage

client(token = NULL, base_url = "https://lichess.org", quiet = FALSE)

Arguments

token

Bearer token (personal API token or OAuth access token). If NULL, uses Sys.getenv("LICHESS_TOKEN").

base_url

API base URL. Defaults to ⁠https://lichess.org⁠.

quiet

Suppress informational messages.

Value

An object of class horsey_client.


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