API record stats are not accurate?

Sort:
Avatar of PawnxPawnOfficial

Hi, I been working on a chess.com overlay for streams and have everything functioning but the API records are wrong.... currently if you pull up my stats with the API under rapid it says my win draws and losses are about 29 / 2 / 6 (wins//draws/losses) but on chess it's 33 / 4 / 16

Any idea why this is so far off? I thought it maybe counting unrated games also but it's no the case.

"chess_rapid":{"last":{"rating":1019,"date":1688060371,"rd":59},"best":{"rating":1019,"date":1688060371,"game":"https://www.chess.com/game/live/81756843033"},"record":{"win":29,"loss":6,"draw":2}},"

Avatar of MasterMatthew52

I think it only refreshes once a day.

Looks like you played some games today so those would be missing until the next refresh.

Avatar of YankeeBastid

Maybe Martin can answer this, what time does the DATA refresh and get sent out?

Avatar of MasterMatthew52

"The endpoints refresh at most once every 24 hours, if not noted otherwise."

https://www.chess.com/news/view/published-data-api

Avatar of YankeeBastid

but what time does that happen?

Avatar of PawnxPawnOfficial

Either way this helps a lot Thank you so much. Was hoping this update live like the elo does. But maybe I can come up with a work around. I'll have to try some other things. The W/D/L were just something extra I felt would be nice to add. happy.png

Avatar of krasibiel

https://www.chess.com/callback/member/stats/pawnxpawnofficial

Avatar of PawnxPawnOfficial

Thank you I will give this a try

Avatar of ThroughtonsHeirAlexHebert

perfect hypothesis, the update being only pushed once a day,
then it's a question of knowing the time/zone