From my DO droplet running curl https://api.chess.com/pub/leaderboards returns a 1020 error. Which is a cloudflare error google suggests.
Cloudflare Error 1020 refers to the Access Denied error. It is thrown by Cloudflare when you violate a firewall rule set up by the Cloudflare-protected website. This violation can occur due to various reasons including sending too many requests to the website.
After recent attack on chess.com servers looks like the whole provider Digital Ocean is blocked.
I checked location: USA (NY, SF), Singapore, Amsterdam
Response is almost instant (which is a sign of simple logic behind)
Below SS when accessing the site regular way, the same error when using API