- Blind mode tutorial
lichess.org
Donate

Get game by username via API

Hi team )
I'm a programmer and I want to get games by lichess_user_name through the API.
My steps:

  1. I create token like lip_****************
  2. I use Laravel framework
  3. code example

$response = Http::withHeaders([
"Accept" => "application/x-ndjson",
'Authorization' => 'Bearer lip_*********************'
])
->get('https://lichess.org/api/games/user/Zaminitel_Grandmaste');
$games_response = $response->json();

So I am getting null.
Please help me to make that request correctly.

Hi team ) I'm a programmer and I want to get games by lichess_user_name through the API. My steps: 1. I create token like lip_**************** 2. I use Laravel framework 3. code example $response = Http::withHeaders([ "Accept" => "application/x-ndjson", 'Authorization' => 'Bearer lip_*********************' ]) ->get('https://lichess.org/api/games/user/Zaminitel_Grandmaste'); $games_response = $response->json(); So I am getting null. Please help me to make that request correctly.

This topic has been archived and can no longer be replied to.