Last 30 days Rapid, Blitz, Bullet Stats.

Sort:
Avatar of champion-19

Hello! I need Stats of a Player for the last 30 days in Rapid, Blitz, and Bullet. How can I do that via Published-Data API?

Avatar of SneakyDeeCee

https://api.chess.com/pub/player/{player_username}/games/{year}/{month}
Will give you archived games for a particular month of that user in a JSON format. There should be enough information to parse the time control of the games, and the time the game ended so you can filter based on what 30 days.

Avatar of champion-19

Thank you) 

Avatar of champion-19

But if I need ratings, not games, what should I do?

Avatar of SneakyDeeCee

For each game, there is a "white" and "black" key. Within each should contain the rating.

Avatar of champion-19

Yeah, I see, but there's a lot of extra data that I don't need at all(PGNs, moves, etc). Are you sure this is the only way to get the last 30 days' ratings? The thing is I need to find the lowest and the highest rating in each time control during the last 30 days.

Avatar of SneakyDeeCee

This is the only endpoint to my knowledge that would offer the information you need. If someone knows of a better endpoint for you problem, then hopefully they respond. Otherwise, you'll have to parse the data to get what you need.

Avatar of Hyper-Dragon

@champion-19

Exactly what you are looking for if you run it on the 30th of the month! happy