File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11openapi : " 3.1.0"
22info :
3- version : 2.0.138
3+ version : 2.0.139
44 title : Lichess.org API reference
55 contact :
66 name : " Lichess.org API"
Original file line number Diff line number Diff line change 22 operationId : broadcastsOfficial
33 summary : Get official broadcasts
44 description : |
5- Returns ongoing official broadcasts sorted by tier.
5+ Returns active (a round is scheduled or ongoing) official broadcasts sorted by tier.
66 After that, returns finished broadcasts sorted by most recent sync time.
77 Broadcasts are streamed as [ndjson](#description/streaming-with-nd-json).
88 tags :
2323 schema :
2424 type : boolean
2525 example : true
26+ - in : query
27+ name : live
28+ description : " [Filter] only broadcasts where a round is ongoing, i.e. started
29+ and not finished"
30+ schema :
31+ type : boolean
32+ example : true
2633 responses :
2734 " 200 " :
2835 description : The list of official broadcasts.
Original file line number Diff line number Diff line change @@ -2010,7 +2010,11 @@ export class Lichess {
20102010 /**
20112011 * Get official broadcasts
20122012 */
2013- async broadcastsOfficial ( params : { nb ?: number ; html ?: boolean } ) {
2013+ async broadcastsOfficial ( params : {
2014+ nb ?: number ;
2015+ html ?: boolean ;
2016+ live ?: boolean ;
2017+ } ) {
20142018 const path = "/api/broadcast" as const ;
20152019 return await this . requestor . get (
20162020 { path, query : params } ,
You can’t perform that action at this time.
0 commit comments