API: Countries - List of players - US

Sort:
ImperfectAge

I recognize this is probably a large list, but is it possible to fix the problem with accessing the list of US players from the API?

$ curl https://api.chess.com/pub/country/US/players
{"status":"error","message":"Internal Server Error"}

(updated)

Nevfy

All country codes should be capitalized. Try this one: https://api.chess.com/pub/country/US/players

UPDATE: Same for me. However https://api.chess.com/pub/country/RU/players works fine. As well as several other countries that I just checked. Let's wait the answer of developers...

ImperfectAge
Nevfy wrote:

All country codes should be capitalized. Try this one: https://api.chess.com/pub/country/US/players

Thanks.  I get a different error!  This one is what happens to my real code, where I do capitalize happy.png

curl https://api.chess.com/pub/country/US/players
{"status":"error","message":"Internal Server Error"}

 

(I updated the first post)

stephen_33

This has been a problem for some time I think & is purely to do with the size of the file being requested. I don't know of any other country codes (player data-sets) that suffer from the same problem.

Storms-Fast

It looks like the devs who work at chess.com don't engage in this forum.This question has been asked several times without any knowledgable response.

There are many ways they could easily solve this, e.g take a 'page number' in the request and restrict responses to 200K results at a time (250K members works fine with India).

I suspect this is a very low priority for chess.com!

By the way, if anyone from chess.com is reading this.. I'd be happy to fix it for free. DM me if you're interested

Martin_Stahl
Storms-Fast wrote:

...

By the way, if anyone from chess.com is reading this.. I'd be happy to fix it for free. DM me if you're interested

 

The site doesn't lack the skill set to do it. The API probably isn't close to being a priority right now.

stephen_33
Martin_Stahl wrote:

The site doesn't lack the skill set to do it. The API probably isn't close to being a priority right now.

I think many will understand that staff are particularly busy with the influx of new members at the moment but the issue with the players set for the US has been an ongoig problem since the API was set up. I seem to remember it being raised as early as spring 2018 when I joined this club.

As a paying member of nine years standing, I've noticed that problems sometimes take an inordinate amount of time to get sorted out.

Levon20121128

happy.png

ImperfectAge

It has worked for me in the past, I thought around 2018, maybe it was 2017

stephen_33
ImperfectAge wrote:

It has worked for me in the past, I thought around 2018, maybe it was 2017

I can't even guess at what limit the servers are unable to service the request but I imagine there may have been a point some years ago when they could just about cope with it.

I'm working from slightly hazy memory but I'm sure problems with the US-players-set were being flagged up at least two years ago. It certainly is not a recent problem.