Bug: Number of players' games returned by API is wrong

Sort:
Avatar of Robin_Buck

I'm working on a GUI that lets players download their games, which showed that it downloaded more games than I had played, so I investigated and found chess.com's data to be inconsistent.

Right now, the total number of games I've played is 1,415 (see https://www.chess.com/member/robin_buck/games).

However, summing up all the "win", "draw" and "loss" stats from https://api.chess.com/pub/player/robin_buck/stats gives 1,401.

The same (incorrect) number is shown at https://www.chess.com/member/robin_buck/stats?days=0.

Avatar of Martin_Stahl

Unrated games do not count for stats. You only have 1,401 rated games

Avatar of Robin_Buck

That makes sense, thank you. However, it remains a source of confusion.

Could the stats page and the API be updated to be clear about this?

Avatar of Martin_Stahl

I believe there's going to be some updates around stats in the future (not sure when). I don't know if there are any plans to clarify that stats don't include unrated games.