-
I want to check automatically if a (real, not Lichess account) player - like Magnus Carlsen - is playing in a tournament now that is being broadcast on lichess. I see that https://lichess.org/api/broadcast lists the official broadcasts and that I can get the round information from there. But how do I check for player names and get the link to the game of the player? I see that I could find the player in the pgn with some simple regex, but the pgn does not contain the link to the lichess game page. https://lichess.org/broadcast/{broadcastTournamentSlug}/{broadcastRoundSlug}/{broadcastRoundId} is just the html page of the round, no JSON. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
As far as I know it is necessary to know which tournament the certain player is playing, going onto the broadcast and searching his board manually. I don't know another way to do it. |
Beta Was this translation helpful? Give feedback.
-
OK, I thought I was missing something :-) . Actually I figured out that I can read the json within the page on https://lichess.org/broadcast/{broadcastTournamentSlug}/{broadcastRoundSlug}/{broadcastRoundId} with some recursive regex and then look from the player name in the chapter titles (player1 - player 2). Seems a bit clumsy, but what to do :-) . |
Beta Was this translation helpful? Give feedback.
-
Isn't that endpoint documented here? https://lichess.org/api#operation/broadcastRoundGet |
Beta Was this translation helpful? Give feedback.
Isn't that endpoint documented here? https://lichess.org/api#operation/broadcastRoundGet