Is there any public API for the leagues? Thanks
https://www.chess.com/callback/leagues/user-league/search/eyal282
Is this sufficient?
Is there any public API for the leagues? Thanks
https://www.chess.com/callback/leagues/user-league/search/eyal282
Is this sufficient?
YUP! That's even more than what I needed. I wish this was in PUBLIC APIs somewhere so that I don't run into any issues if hit that Url repeatedly. In the past, I've gotten 403 messages after hitting similar callback APIs to often as chess.com required the completion of CAPTCHAS to verify that the requests were not coming from a robot. However they were indeed coming from my chatbot... Thanks again for looking this up @Eyal282.
YUP! That's even more than what I needed. I wish this was in PUBLIC APIs somewhere so that I don't run into any issues if hit that Url repeatedly. In the past, I've gotten 403 messages after hitting similar callback APIs to often as chess.com required the completion of CAPTCHAS to verify that the requests were not coming from a robot. However they were indeed coming from my chatbot... Thanks again for looking this up @Eyal282.
Deciding whether or not to block bots from checking the callbacks is up to Chess.com, should they want to block us, they will have a guaranteed success, but what's the point in this...
Edit: Did you log how commonly your bot was checking the API / checking two APIs at once?
@Eyal282 In the past I tried using https://www.chess.com/callback/member/stats/dimpoul API for the Best Wins of each players in all game types. Things were going smoothly for the bot the first few days when the bot was making just one call at a time. Later, when I elaborated the command and made it available to bigger audience the bot started making 5-10 requests at a time and as a result the bot got blocked by its IP.
@Eyal282 In the past I tried using https://www.chess.com/callback/member/stats/dimpoul API for the Best Wins of each players in all game types. Things were going smoothly for the bot the first few days when the bot was making just one call at a time. Later, when I elaborated the command and made it available to bigger audience the bot started making 5-10 requests at a time and as a result the bot got blocked by its IP.
Make a queue that dictates which request is next. One request per request.
Is there any public API for the leagues? Thanks