{
 "openapi": "3.1.0",
 "info": {
  "title": "TicketWhistle open data",
  "version": "1.0.0",
  "description": "Ticket sale windows for LaLiga, the Premier League, Serie A, Ligue\u00a01 and the Bundesliga, read from official club websites. CC BY 4.0. Not affiliated with any league, UEFA or any club."
 },
 "servers": [
  {
   "url": "https://ticketwhistle.com"
  }
 ],
 "paths": {
  "/api/v1/windows.json": {
   "get": {
    "summary": "All ticket sale windows (upcoming, recent, all)",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/api/v1/clubs.json": {
   "get": {
    "summary": "Clubs covered",
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/api/v1/clubs/{club_id}.json": {
   "get": {
    "summary": "One club's windows",
    "parameters": [
     {
      "name": "club_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "academico-viseu",
        "ado-den-haag",
        "ajax",
        "alanyaspor",
        "alaves",
        "albacete",
        "aldosivi",
        "almeria",
        "alverca",
        "amedspor",
        "america",
        "anderlecht",
        "andorra",
        "angers",
        "argentinos",
        "arouca",
        "arsenal",
        "aston-villa",
        "atalanta",
        "athletic",
        "athletico",
        "atlanta-utd",
        "atlante",
        "atlas",
        "atletico",
        "atletico-mg",
        "atletico-tucuman",
        "augsburg",
        "austin",
        "auxerre",
        "az",
        "bahia",
        "banfield",
        "barcelona",
        "barracas",
        "basaksehir",
        "bayern",
        "belgrano",
        "benfica",
        "besiktas",
        "betis",
        "birmingham",
        "blackburn",
        "boca",
        "bodo-glimt",
        "bologna",
        "bolton",
        "botafogo",
        "bournemouth",
        "braga",
        "bragantino",
        "bremen",
        "brentford",
        "brest",
        "brighton",
        "bristol-city",
        "brondby",
        "burgos",
        "burnley",
        "cadiz",
        "cagliari",
        "cambuur",
        "cardiff",
        "casa-pia",
        "castellon",
        "celta",
        "celta-b",
        "celtic",
        "central-cordoba",
        "ceuta",
        "cf-montreal",
        "chapecoense",
        "charlotte",
        "charlton",
        "chelsea",
        "chicago-fire",
        "chivas",
        "cincinnati",
        "colorado",
        "columbus",
        "como",
        "copenhagen",
        "cordoba",
        "corinthians",
        "coritiba",
        "corum",
        "coventry",
        "cruz-azul",
        "cruzeiro",
        "crystal-palace",
        "dc-united",
        "defensa",
        "deportivo",
        "derby",
        "dinamo-zagreb",
        "dortmund",
        "dynamo-kyiv",
        "eibar",
        "elche",
        "eldense",
        "elversberg",
        "erzurumspor",
        "espanyol",
        "estoril",
        "estrela-amadora",
        "estudiantes",
        "estudiantes-rc",
        "everton",
        "excelsior",
        "eyupspor",
        "famalicao",
        "fc-dallas",
        "fenerbahce",
        "feyenoord",
        "fiorentina",
        "flamengo",
        "fluminense",
        "forest",
        "fortuna-sittard",
        "frankfurt",
        "freiburg",
        "frosinone",
        "fulham",
        "galatasaray",
        "gaziantep",
        "genclerbirligi",
        "genoa",
        "getafe",
        "gil-vicente",
        "gimnasia-lp",
        "gimnasia-mza",
        "girona",
        "gladbach",
        "go-ahead-eagles",
        "goztepe",
        "granada",
        "gremio",
        "groningen",
        "hamburg",
        "heerenveen",
        "hoffenheim",
        "houston",
        "hull",
        "huracan",
        "ind-rivadavia",
        "independiente",
        "instituto",
        "inter",
        "inter-miami",
        "internacional",
        "ipswich",
        "juarez",
        "juventus",
        "kasimpasa",
        "kocaelispor",
        "koeln",
        "konyaspor",
        "la-galaxy",
        "lafc",
        "lanus",
        "las-palmas",
        "lazio",
        "le-havre",
        "le-mans",
        "lecce",
        "leeds",
        "leganes",
        "leipzig",
        "lens",
        "leon",
        "levante",
        "leverkusen",
        "lille",
        "lincoln",
        "liverpool",
        "lorient",
        "lyon",
        "mainz",
        "malaga",
        "mallorca",
        "malmo",
        "man-city",
        "man-utd",
        "maritimo",
        "marseille",
        "middlesbrough",
        "milan",
        "millwall",
        "minnesota",
        "mirassol",
        "monaco",
        "monterrey",
        "monza",
        "moreirense",
        "nacional",
        "napoli",
        "nashville",
        "nec",
        "necaxa",
        "new-england",
        "newcastle",
        "newells",
        "nice",
        "norwich",
        "ny-red-bulls",
        "nycfc",
        "olympiacos",
        "orlando",
        "osasuna",
        "oviedo",
        "pachuca",
        "paderborn",
        "palmeiras",
        "paris-fc",
        "parma",
        "partizan",
        "pec-zwolle",
        "philadelphia",
        "platense",
        "portland",
        "porto",
        "portsmouth",
        "preston",
        "psg",
        "psv",
        "puebla",
        "pumas",
        "qpr",
        "queretaro",
        "racing",
        "racing-club",
        "rangers",
        "rayo",
        "real-madrid",
        "real-salt-lake",
        "real-sociedad",
        "real-sociedad-b",
        "red-star",
        "remo",
        "rennes",
        "riestra",
        "rio-ave",
        "river",
        "rizespor",
        "roma",
        "rosario-central",
        "rosenborg",
        "sabadell",
        "samsunspor",
        "san-diego",
        "san-jose",
        "san-lorenzo",
        "san-luis",
        "santa-clara",
        "santos",
        "santos-laguna",
        "sao-paulo",
        "sarmiento",
        "sassuolo",
        "schalke",
        "seattle",
        "sevilla",
        "shakhtar",
        "sheffield-utd",
        "southampton",
        "sparta-rotterdam",
        "sporting",
        "sporting-gijon",
        "sporting-kc",
        "spurs",
        "st-louis",
        "stoke",
        "strasbourg",
        "stuttgart",
        "sunderland",
        "swansea",
        "talleres",
        "telstar",
        "tenerife",
        "tigre",
        "tigres",
        "tijuana",
        "toluca",
        "torino",
        "toronto-fc",
        "toulouse",
        "trabzonspor",
        "troyes",
        "twente",
        "udinese",
        "union",
        "union-berlin",
        "utrecht",
        "valencia",
        "valladolid",
        "vancouver",
        "vasco",
        "velez",
        "venezia",
        "villarreal",
        "vitoria",
        "vitoria-guimaraes",
        "watford",
        "west-brom",
        "west-ham",
        "willem-ii",
        "wolves",
        "wrexham"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  }
 }
}