{
  "opencollection": "1.0.0",
  "info": {
    "name": "Lichess.org API reference Account TV API",
    "version": "2.0.144"
  },
  "items": [
    {
      "info": {
        "name": "TV",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get current TV games",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://lichess.org/api/tv/channels"
          },
          "docs": "Get basic info about the best games being played for each speed and variant,\nbut also computer games and bot games.\nSee [lichess.org/tv](https://lichess.org/tv).\n"
        },
        {
          "info": {
            "name": "Stream current TV game",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://lichess.org/api/tv/feed"
          },
          "docs": "Stream positions and moves of the current [TV game](https://lichess.org/tv) in [ndjson](#description/streaming-with-nd-json).\nTry it with `curl https://lichess.org/api/tv/feed`.\n"
        },
        {
          "info": {
            "name": "Stream current TV game of a TV channel",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://lichess.org/api/tv/:channel/feed",
            "params": [
              {
                "name": "channel",
                "value": "",
                "type": "path",
                "description": "The name of the channel in camel case."
              }
            ]
          },
          "docs": "Stream positions and moves of a current [TV channel's game](https://lichess.org/tv/rapid) in [ndjson](#description/streaming-with-nd-json).\nTry it with `curl https://lichess.org/api/tv/rapid/feed`.\n"
        },
        {
          "info": {
            "name": "Get best ongoing games of a TV channel",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://lichess.org/api/tv/:channel",
            "headers": [
              {
                "name": "Accept",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "channel",
                "value": "",
                "type": "path",
                "description": "The name of the channel in camel case."
              },
              {
                "name": "nb",
                "value": "",
                "type": "query",
                "description": "Number of games to fetch."
              },
              {
                "name": "moves",
                "value": "",
                "type": "query",
                "description": "Include the PGN moves."
              },
              {
                "name": "pgnInJson",
                "value": "",
                "type": "query",
                "description": "Include the full PGN within the JSON response, in a `pgn` field."
              },
              {
                "name": "tags",
                "value": "",
                "type": "query",
                "description": "Include the PGN tags."
              },
              {
                "name": "clocks",
                "value": "",
                "type": "query",
                "description": "Include clock status when available.\nEither as PGN comments: `2. exd5 { [%clk 1:01:27] } e5 { [%clk 1:01:28] }`\nOr in a `clocks` JSON field, as centisecond integers, depending on the response type.\n"
              },
              {
                "name": "opening",
                "value": "",
                "type": "query",
                "description": "Include the opening name.\nExample: `[Opening \"King's Gambit Accepted, King's Knight Gambit\"]`\n"
              }
            ]
          },
          "docs": "Get a list of ongoing games for a given TV channel. Similar to [lichess.org/games](https://lichess.org/games).\nAvailable in PGN or [ndjson](#description/streaming-with-nd-json) format, depending on the request `Accept` header.\n"
        }
      ]
    }
  ],
  "bundled": true
}