https://www.chess.com/news/view/published-data-api#pubapi-endpoint-match-board
The team match board endpoint is documented to contain a "team" element for each player in each game with its value being the url of the team the player played or is playing for in the match.
1. It's unclear if I should expect https://api.chess.com/. or https://www.chess.com/..
2. Whatever I should expect, I'm not getting the "team" element at all.
(Workaround: use the list of players from the team match endpoint, which I already have, instead of comparing on team @id or url, both of which I also have.)
Documentation:
https://www.chess.com/news/view/published-data-api#pubapi-endpoint-match-board
{
"board_scores":{
...
},
"games": [
{
"white": { // details of the white-piece player:
...
"team": "url" // url to club's profile
},...}
Example output:
https://api.chess.com/pub/match/893502/1
{"board_scores":{"lrj2011":2,"impractical":0},"games":[{"url":"https://www.chess.com/daily/game/194799652","pgn":"[Event \"TMCL 2018 A1 R5 - Board 1\"]\n[Site \"Chess.com\"]\n[Date \"2018.05.15\"]\n[Round \"-\"]\n[White \"lrj2011\"]\n[Black \"Impractical\"]\n[Result \"1-0\"]\n[ECO \"B75\"]\n[ECOUrl \"https://www.chess.com/openings/B75-Sicilian-Defense-Open-Dragon-Yugoslav-Attack-7...a6\"]\n[WhiteElo \"2348\"]\n[BlackElo \"2275\"]\n[TimeControl \"1/259200\"]\n[Termination \"lrj2011 won by resignation\"]\n[StartTime \"16:05:28\"]\n[EndDate \"2018.07.10\"]\n[EndTime \"12:18:10\"]\n[Link \"https://www.chess.com/daily/game/194799652\"]\n\n1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 g6 6. Be3 Bg7 7. f3 a6 8. Qd2 Nbd7 9. O-O-O b5 10. g4 Bb7 11. h4 Nb6 12. h5 Rg8 13. hxg6 hxg6 14. g5 Nfd7 15. a3 Ne5 16. f4 Nec4 17. Qe1 Qc7 18. Bf2 Rc8 19. Rh3 d5 20. e5 e6 21. Na2 Bf8 22. Bxc4 dxc4 23. Nc3 b4 24. axb4 Bd5 25. b5 Ra8 26. Qg1 Nd7 27. Nxd5 exd5 28. Qg2 Qb7 29. Nc6 axb5 30. Qxd5 Ra1+ 31. Kd2 1-0","time_control":"1/259200","end_time":1531225090,"rated":true,"fen":"4kbr1/1q1n1p2/2N3p1/1p1QP1P1/2p2P2/7R/1PPK1B2/r2R4 b - - 2 31","start_time":1526400328,"time_class":"daily","rules":"chess","white":{"rating":2439,"result":"win","@id":"https://api.chess.com/pub/player/lrj2011","username":"lrj2011"},"black":{"rating":2324,"result":"resigned","@id":"https://api.chess.com/pub/player/impractical","username":"Impractical"},"eco":"https://www.chess.com/openings/B75-Sicilian-Defense-Open-Dragon-Yugoslav-Attack-7...a6","match":"https://api.chess.com/pub/match/893502"},{"url":"https://www.chess.com/daily/game/194799650","pgn":"[Event \"TMCL 2018 A1 R5 - Board 1\"]\n[Site \"Chess.com\"]\n[Date \"2018.05.15\"]\n[Round \"-\"]\n[White \"Impractical\"]\n[Black \"lrj2011\"]\n[Result \"0-1\"]\n[ECO \"A45\"]\n[ECOUrl \"https://www.chess.com/openings/A45-Indian-Game\"]\n[WhiteElo \"2275\"]\n[BlackElo \"2348\"]\n[TimeControl \"1/259200\"]\n[Termination \"lrj2011 won by resignation\"]\n[StartTime \"16:05:28\"]\n[EndDate \"2018.07.26\"]\n[EndTime \"11:02:16\"]\n[Link \"https://www.chess.com/daily/game/194799650\"]\n\n1. d4 Nf6 2. Bf4 g6 3. Nf3 Bg7 4. e3 O-O 5. Nc3 d5 6. Be2 c5 7. dxc5 Qa5 8. Nd2 Qxc5 9. Nb3 Qb6 10. Nb5 Ne8 11. c3 e5 12. Bg3 Be6 13. a4 a6 14. a5 Qd8 15. Na3 Nc6 16. Nc5 Nd6 17. b4 h5 18. h3 Nf5 19. Bh2 Qg5 20. g4 hxg4 21. hxg4 Nd6 22. Qc2 Bxg4 23. Rg1 Qh5 24. Bxg4 Qxh2 25. O-O-O e4 26. Nd7 Ne5 27. Rh1 Nd3+ 28. Kb1 Qxf2 29. Nxf8 Kxf8 30. Be2 Qxe3 31. Bxd3 exd3 32. Rxd3 Qe7 33. Rxd5 Ne4 34. Rd3 Rc8 35. Rhh3 Nxc3+ 36. Rxc3 Bxc3 0-1","time_control":"1/259200","end_time":1532602936,"rated":true,"fen":"2r2k2/1p2qp2/p5p1/P7/1P6/N1b4R/2Q5/1K6 w - - 0 37","start_time":1526400328,"time_class":"daily","rules":"chess","white":{"rating":2283,"result":"resigned","@id":"https://api.chess.com/pub/player/impractical","username":"Impractical"},"black":{"rating":2445,"result":"win","@id":"https://api.chess.com/pub/player/lrj2011","username":"lrj2011"},"eco":"https://www.chess.com/openings/A45-Indian-Game","match":"https://api.chess.com/pub/match/893502"}]}