I tried accessing the API using a library, and enabled logging.
I see the library uses "antichess" (not "Antichess") and the library has a beginning "/api/" which you aren't using (maybe both exists, not sure)
Example.java
import java.time.ZonedDateTime;
import chariot.Client;
import chariot.model.Enums.PerfType;
class Example {
public static void main(String[] args) {
var client = Client.basic(conf -> conf.logging(l -> l.request().all()));
var list = client.games().byUserId("cFlour", params -> params
.clocks()
.since(ZonedDateTime.now().minusDays(5))
.until(ZonedDateTime.now())
.perfType(PerfType.antichess)
.rated())
.stream().toList();
System.out.println("Found " + list.size() + " games!");
}
}
https://jdk.java.net/19/
https://repo1.maven.org/maven2/io/github/tors42/chariot/0.0.65/chariot-0.0.65.jar
$ ~/prog/java/openjdk/jdk-19.0.2/bin/java -cp ./chariot-0.0.65.jar ./Example.java
Mar 15, 2023 3:09:54 PM chariot.internal.InternalClient request
INFO: ### Request: https://lichess.org/api/games/user/cFlour?clocks=true&rated=true&perfType=antichess&until=1678889394000&since=1678457394000
Headers:
accept: application/x-ndjson
user-agent: Java/19.0.2 chariot/0.0.65
Body:
Mar 15, 2023 3:09:54 PM chariot.internal.InternalClient request
INFO: (GET https://lichess.org/api/games/user/cFlour?clocks=true&rated=true&perfType=antichess&until=1678889394000&since=1678457394000) 200
Found 368 games!
$