The end point for club members is split in three activity categories.
Weekly, Monthly and all time.
https://www.chess.com/news/view/published-data-api#pubapi-endpoint-club-members
The code you are using is displaying the third but not the first two or is displaying them in order but overwriting each time so you only see the final list.
Hi, I run a club that features a section where the club member's account names are displayed on a Wall of Fame.
https://www.chess.com/club/the-chess-elite
Example: @Member1 @Member2 @Member 3 .... etc.
So far I have just been using copy/paste to add new members, but it's starting to get a little too much, which is why I'd like to automate the process.
What I would like to achieve:
1.) All club member names in listed, plain text format.
After this I will just use a text parser to put "@" in front of each name to achieve this:
2.) All titled player's account names in listed, plain text format. Here possibly with the correct title.
What I've got so far with the help of
for direct Firefox Console Input:var request = new XMLHttpRequest();
request.open('GET','https://api.chess.com/pub/club/the-chess-elite/members',false);
request.send();
var response = JSON.parse(request.responseText);
var list = '';
for(type in response)for(member of response[type])list += member.username + '\r\n';
console.log(list);
My one problem is that https://api.chess.com/pub/club/the-chess-elite/members only returns 171 members instead of the total 490. What am I missing here?