Thanks for your reply. I just tried it and it seems the maximum number of players I can get is 100 players x 100 pages = 10,000 players out of the 1,270,000+ registered.
When I try getting more than 100 players per page, I still get 100 results.
That’s too bad, I won’t be able to compute meaningful stats about them
If anyone has a solution I’m happy to hear it. I would also be happy to document this in the API documentation but not sure how to get access.
Firs of all, I apologize if what I say isn’t clear, I’m a beginner in Python & calling APIs.
Do you mean the only way to get current ‘ratings’ for all registered players is to call the API 1.2M times (for each individual player)?
My goal is to put high level players information into a table I can extract stats from. I’m attaching an example of what I have done with 10,000 players I could get with the /players API method.
If you are interested only in somewhat active players, you can start with any player. This API returns the rating history of the player. You can then download their opponents for the timeframe you are interested in, and so on.
I’m not aware of any API giving you the data on mass.
BTW: Please don’t overwhelm the server with requests.
Very few players are high level so it won’t take that much time if you jump only between strong player. Though I can boast downloading ~500k players which is basically everyone who has meaningful games, I think.
But! But! If you don’t want such a tedious task, I remembered a good workaround for /players url.
You can give additional parameters to that. For example, you can split players by registration date which is what I use, e.g. to get players between 2021-12-15 and 2021-12-31 you can write (some parts can be omitted), if I understand it correctly
Should’ve responded to the topic earlier. Note that api/v1 requests seem slow and heavy on the server and termination-api seems lighter. api/v1 at least at some point had request limit and returned 429 appropriately. Note that sorting by id looks broken.
Also note that we have sgf dump from late 2021 which might be new enough for your purposes.
Oral tradition in this forum.
If you can’t find a thread about it, just ask. There’s a small group of API fans that loves to share their knowledge.
Not very reliable information: many users don’t choose a country at all, some like to change it from time to time, some like to pick starfleet or Targaryen or gender pride.