3- Player Tournament Participation Endpoint (broken) --https://api.chess.com/pub/player/{username}/tournaments) -- in theory this should work because the spec says it provides an array of registered tournaments with the tournament URLs. Unfortunately this isn't working for example: https://api.chess.com/pub/player/tryingtolearn1234/tournaments always returns empty data even though I've played in many tournaments. I tried other players as well, it never seems to have data.
{"finished":[],"in_progress":[],"registered":[]}This endpoint isn't broken, but it only shows daily tournaments (not live tournaments), unless I'm mistaken. I have the impression that the priority for the published API endpoints has been daily games so far (and info about players or teams), not live games.
I had the idea to write a simple moo.bot command that would use moo.bot's JSON url fetch integration and the chess.com Published data API to provide links to the next club tournament for a friends stream.
Basic Concept
All the ways I tried and failed
so far
Unfortunately it looks like this is impossible; but I'm posting here in hopes I've missed something or maybe the chess.com developers will take pity on me and offer a fix/workaround/enhancement.
Here are my investigations so far:
1- The Club Endpoint (data not available) -- shows matches, but does not show tournaments :-( . No luck there
2- The Tournaments Endpoint (can't get a list of tournaments) -- only lets you get the tournament if you know the URL; no way to query for all upcoming live tournaments and get the URL.
3- Player Tournament Participation Endpoint (broken) --https://api.chess.com/pub/player/{username}/tournaments) -- in theory this should work because the spec says it provides an array of registered tournaments with the tournament URLs. Unfortunately this isn't working for example: https://api.chess.com/pub/player/tryingtolearn1234/tournaments always returns empty data even though I've played in many tournaments. I tried other players as well, it never seems to have data.