- Blind mode tutorial
lichess.org
Donate

Challenge API 429 error

I'm trying to use the lichess API to have my bot (clueless-bot) play against other bots regularly to understand its weaknesses.
After calling the challenge API a few times (spaced out at least 90s) I start getting the 429 error and get blocked from calling the API for several hours (I think it is 24 hours, I'm not sure).
Am I doing something wrong? And what are the limitations of the challenge API?

I'm trying to use the lichess API to have my bot (clueless-bot) play against other bots regularly to understand its weaknesses. After calling the challenge API a few times (spaced out at least 90s) I start getting the 429 error and get blocked from calling the API for several hours (I think it is 24 hours, I'm not sure). Am I doing something wrong? And what are the limitations of the challenge API?

429 error-
Too many request
What are you trying to make with API?

429 error- Too many request What are you trying to make with API?

It's just a script that challenges other bots to rated games.

It's just a script that challenges other bots to rated games.

I dont know how help you, but i think that @tpr or @thibault can help you!

I dont know how help you, but i think that @tpr or @thibault can help you!

The "too many requests for url" error occurs because you're sending too many requests for the game url, specifically this one: https://lichess.org/api/bot/game/{gameId}/move/{move} - this request is per move, not per game, as such can be requested many times within a short time interval.

If you're looking to avoid these issues or are just looking to compare your bot to other bots, why not just have a local computer engine tournament instead? If you're just testing various engines, having a local tournament is much more feasible since you can use various engines for a wide range of strengths, and each engine will be running on the same hardware, which is probably the most important thing.

The "too many requests for url" error occurs because you're sending too many requests for the game url, specifically this one: https://lichess.org/api/bot/game/{gameId}/move/{move} - this request is per move, not per game, as such can be requested many times within a short time interval. If you're looking to avoid these issues or are just looking to compare your bot to other bots, why not just have a local computer engine tournament instead? If you're just testing various engines, having a local tournament is much more feasible since you can use various engines for a wide range of strengths, and each engine will be running on the same hardware, which is probably the most important thing.

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