{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "PassRadar API",
    "version": "2026-11-28",
    "summary": "Wizz Air All You Can Fly availability: the daily list, flight times, history and odds.",
    "description": "PassRadar's public, read-only API: the same endpoints https://passradar.app itself runs on. No key, no account. Human docs: https://passradar.app/developers.\n\n## Where the data comes from\n\n- **Availability is the official daily list.** Wizz Air publishes the AYCF list as a PDF (https://multipass.wizzair.com/aycf-availability.pdf) around 07:00 Europe/Budapest. It contains directional city pairs only: no flight numbers, times or seat counts. Each list covers departures from publication until 23:59 Europe/Budapest time three days later; `validFrom` and `validTo` carry the exact window. `GET /api/status` also says how long after publication PassRadar imported the list (`importLag`); when `importLag.late` is true, the list and its alerts reached people late. When `listOverdue` is true, the list due at 07:00 (`expectedListDate`) hasn't arrived yet and every answer still comes from `lastSnapshot`.\n- **Listed is not a guaranteed seat.** AYCF seats come from a separate, unpublished inventory. A listed route can still show nothing when you try to book, and Wizz confirms seats only on multipass.wizzair.com. Say \"listed\", not \"available seats\".\n- **Booking opens with the daily list and closes 3 hours before departure.** A listed departure is bookable from the list's publication until 3 hours before departure. The terms quote 72 hours; the list window is about 89 hours: each list reaches to its `validTo` (23:59 Europe/Budapest three days after publication). A departure past `validTo` isn't closed: it opens with the first later list covering its date (published about 07:00 Europe/Budapest three days before; an estimate). Check `departureUtc` against the current time and `lastSnapshot.validTo` from `GET /api/status` before calling a flight bookable. Each one-way flight costs a flat €9.99 on top of the pass.\n- **Flight times are best-effort.** Departure times come from Wizz's public timetable, cached per route per day. Many listed routes have no times yet: `flights: []` is a normal state, not an error. Times can change after we cache them.\n- **Arrival times are estimates.** When `arrivalIsEstimated` is true, arrival and duration are estimates (typically 10 minutes early to 40 minutes late). Leave a margin for any connection.\n- **Self-transfers are separate bookings.** Connections (`maxLegs` 2 or 3) chain separate AYCF bookings, €9.99 each, through one airport. Nothing protects them: if a leg runs late, Wizz owes nothing on the next. Each layover states the minimum it had to clear (`requiredMinutes`), with extra time where passport control applies.\n- **Odds come from history.** Reliability rates, weekday patterns, weekend scores, return outlooks and meet-up way-home odds are computed from PassRadar's archive of daily lists (back to March 2025). They describe how often a pair was listed in the past, not a promise about tomorrow. Where Wizz's current timetable shows no flight on a weekday (`forwardStatus: \"not-this-weekday\"`), that beats any historical rate. How well past odds held up is back-tested daily at https://passradar.app/stats/accuracy (JSON: `GET /api/stats/accuracy`).\n- **Cash fares are not AYCF.** `GET /api/fares` returns regular Wizz prices as the public timetable showed them when PassRadar last fetched the route: a fallback where AYCF fails, never an AYCF seat and never live. Show each fare's age (`fetchedAt`); none older than 96 hours is returned. Amounts stay in the currency Wizz sells in.\n- **Independent, no warranty.** PassRadar is not affiliated with Wizz Air. Data is provided as is, without warranty, and may be late, incomplete or wrong. Always confirm on Wizz before you travel.\n\n## Fair use and caching\n\n- **Free, no key, read-only.** No signup or API key. It's meant for people: your own tools, research, and AI assistants answering your questions. The site's fair-use terms apply, so no mirroring, reselling or republishing the data as your own service.\n- **Prefer the cached GETs.** Most GET endpoints are cached at the edge for 5 minutes, so repeat calls are cheap. `POST /api/search` is computed per request: ask for what you need (an origin and a small `limit`), keep the answer, and don't run it in a loop.\n- **Check for a new list sparingly.** Availability changes once a day (around 07:00 Europe/Budapest) and flight times trickle in after it. If a script of yours waits for the new list, call `GET /api/status` a few times an hour at most and refetch only when `lastSnapshot.snapshotDate` changes. For notifications, the RSS feed and the site's alerts beat polling.\n- **Be gentle.** Keep it to about one request per second, one at a time, and stop when you have your answer. No crawling, mirroring or bulk downloads. Heavy clients may be throttled or blocked.\n- **CORS on the public endpoints.** Every response of `/api/airports`, `/api/fares`, `/api/guide`, `/api/holidays`, `/api/meetup`, `/api/network`, `/api/paths`, `/api/schedule`, `/api/stats/accuracy`, `/api/stats/diff`, `/api/stats/reliability`, `/api/stats/top`, `/api/stats/weekday`, `/api/status`, `/api/weather`, `/api/weekend`, `POST /api/search`, errors included, carries `Access-Control-Allow-Origin: *` (no cookies, no credentials), so a web page can call them directly; `POST /api/search` answers the browser's preflight. Signed-in endpoints (accounts, alerts, push) stay closed. The MCP endpoint (`/api/mcp`) and the documentation files (`/openapi.json`, `/llms.txt`) are CORS-open.\n- **Attribution appreciated.** A link to https://passradar.app next to anything you build helps. Weather and climate data come from Open-Meteo (CC BY 4.0) and holidays from Nager.Date; credit them too if you show them. City photos are Wikimedia Commons files under their own licences and intros are Wikipedia text (CC BY-SA 4.0): show each photo's author, licence and file page, and link the article and its licence.\n\n## AI assistants (MCP)\n\nPassRadar also runs a free, read-only Model Context Protocol server at https://passradar.app/api/mcp (Streamable HTTP, JSON-RPC 2.0, no auth; MCP 2026-07-28 and the 2025 handshake versions). Tools: get_list_status, search_routes, route_odds, meetup_options, weekend_options. Setup for Claude, ChatGPT and other clients: https://passradar.app/developers#mcp.\n\n## Errors\n\nEvery error is JSON `{ \"error\": \"<code>\", \"message\": \"<text>\" }` with a 4xx status for bad input and 503 when the data store is briefly unreachable (retry with backoff).",
    "contact": {
      "name": "PassRadar",
      "url": "https://passradar.app/developers",
      "email": "contact@stringcode.io"
    },
    "termsOfService": "https://passradar.app/terms"
  },
  "externalDocs": {
    "description": "Developer guide",
    "url": "https://passradar.app/developers"
  },
  "servers": [
    {
      "url": "https://passradar.app",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Availability",
      "description": "Today's AYCF list: what's on it, what changed, and departures inside the booking window."
    },
    {
      "name": "Planning",
      "description": "Weekend odds, meet-ups, timetable lookups, cash-fare fallbacks, destination weather and public holidays for trips that reach beyond today's list."
    },
    {
      "name": "History",
      "description": "Listing statistics from PassRadar's archive of daily lists."
    },
    {
      "name": "Reference",
      "description": "Static reference data: airports, the network, city photos and typical weather."
    },
    {
      "name": "Feeds",
      "description": "Non-JSON outputs: RSS and share images."
    }
  ],
  "paths": {
    "/api/status": {
      "get": {
        "operationId": "getStatus",
        "tags": [
          "Availability"
        ],
        "summary": "Latest list at a glance",
        "description": "Metadata of the latest daily list, its route count, day-over-day changes, how many departures have known times, and when the next list is expected. The cheapest way to notice a new list: poll this and refetch everything else only when `lastSnapshot.snapshotDate` changes.",
        "responses": {
          "200": {
            "description": "Status of the latest list.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusSummary"
                },
                "example": {
                  "lastSnapshot": {
                    "id": 459,
                    "source": "live",
                    "publishedAt": "2026-11-24T06:00:02Z",
                    "snapshotDate": "2026-11-24",
                    "validFrom": "2026-11-24T06:00:02Z",
                    "validTo": "2026-11-27T22:59:59Z",
                    "fetchedAt": "2026-11-24T06:04:48Z",
                    "pairCount": 1027
                  },
                  "totalRoutesToday": 1027,
                  "newToday": 167,
                  "droppedToday": 187,
                  "changesSincePrevious": {
                    "fromDate": "2026-11-23",
                    "toDate": "2026-11-24",
                    "added": 167,
                    "removed": 187
                  },
                  "flightsEnriched": 892,
                  "nextDropLocal": "2026-11-25T07:00:00",
                  "importLag": {
                    "minutes": 4,
                    "late": false,
                    "thresholdMinutes": 90
                  },
                  "expectedListDate": "2026-11-24",
                  "listOverdue": false,
                  "overdueMinutes": null
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/search": {
      "post": {
        "operationId": "searchRoutes",
        "tags": [
          "Availability"
        ],
        "summary": "Search the current list",
        "description": "The engine behind the PassRadar home page. One-way mode returns listed city pairs with known departures; return mode pairs outbounds with flights back or a return outlook; `maxLegs` 2 or 3 adds 1- or 2-stop self-transfers. Not edge-cached: filter by origin, keep `limit` small.",
        "requestBody": {
          "required": true,
          "description": "Every field is optional, but `{}` returns the whole current list (hundreds of kilobytes), so filter by origin and set `limit`. Routes without known times are included by default with `flights: []`.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              },
              "examples": {
                "oneWay": {
                  "summary": "Everything from Budapest, first 5",
                  "value": {
                    "origins": [
                      "BUD"
                    ],
                    "limit": 5
                  }
                },
                "returnTrip": {
                  "summary": "Return trips from Budapest, 1–3 nights",
                  "value": {
                    "origins": [
                      "budapest"
                    ],
                    "tripMode": "return",
                    "minStayHours": 18,
                    "maxStayHours": 72,
                    "limit": 10
                  }
                },
                "oneStop": {
                  "summary": "London to Rome, direct or one stop",
                  "value": {
                    "origins": [
                      "london"
                    ],
                    "destinations": [
                      "rome"
                    ],
                    "maxLegs": 2
                  }
                },
                "twoStops": {
                  "summary": "Gdańsk to Alicante with up to two stops, fewest first",
                  "value": {
                    "origins": [
                      "GDN"
                    ],
                    "destinations": [
                      "alicante"
                    ],
                    "maxLegs": 3,
                    "sort": "stops"
                  }
                },
                "filtered": {
                  "summary": "Morning departures from Budapest, at most 3 hours",
                  "value": {
                    "origins": [
                      "BUD"
                    ],
                    "departHourFrom": 6,
                    "departHourTo": 12,
                    "maxDurationMin": 180,
                    "includeUnenriched": false,
                    "limit": 10
                  }
                },
                "layovers": {
                  "summary": "Budapest to Tel Aviv via one stop, 3 to 6 hour layovers",
                  "value": {
                    "origins": [
                      "BUD"
                    ],
                    "destinations": [
                      "tel aviv"
                    ],
                    "maxLegs": 2,
                    "minLayoverMin": 180,
                    "maxLayoverMin": 360
                  }
                },
                "arriveBy": {
                  "summary": "Everywhere reachable from Warsaw with up to one stop, landing before 20:00 local, under 10 hours",
                  "value": {
                    "origins": [
                      "Warszawa"
                    ],
                    "maxLegs": 2,
                    "arriveHourTo": 20,
                    "maxDurationMin": 600,
                    "limit": 20
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching routes, trips or connections.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                },
                "examples": {
                  "oneWay": {
                    "summary": "One-way: a route with times and one without",
                    "value": {
                      "pageVersion": "q3vB0nVq3sYp2fM1",
                      "routes": [
                        {
                          "originCity": "budapest",
                          "destCity": "alicante",
                          "originAirports": [
                            {
                              "iata": "BUD",
                              "name": "Budapest Liszt Ferenc International Airport",
                              "city": "budapest",
                              "countryCode": "HU",
                              "lat": 47.4369,
                              "lon": 19.2556,
                              "tz": "Europe/Budapest"
                            }
                          ],
                          "destAirports": [
                            {
                              "iata": "ALC",
                              "name": "Alicante International Airport",
                              "city": "alicante",
                              "countryCode": "ES",
                              "lat": 38.2822,
                              "lon": -0.5581,
                              "tz": "Europe/Madrid"
                            }
                          ],
                          "validFrom": "2026-11-24T06:00:02Z",
                          "validTo": "2026-11-27T22:59:59Z",
                          "reliability": {
                            "originCity": "budapest",
                            "destCity": "alicante",
                            "daysSeen": 56,
                            "daysTotal": 90,
                            "rate": 0.6222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.7667,
                            "survivalNextDay": 0.8,
                            "avgRunDays": 4.67
                          },
                          "flights": [
                            {
                              "id": "BUD-ALC-1795753800",
                              "originIata": "BUD",
                              "destIata": "ALC",
                              "departureUtc": "2026-11-27T04:30:00Z",
                              "departureLocal": "2026-11-27T05:30:00",
                              "arrivalUtc": "2026-11-27T07:40:00Z",
                              "arrivalLocal": "2026-11-27T08:40:00",
                              "durationSec": 11400,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            }
                          ],
                          "dayTrip": null,
                          "closedFlightCount": 1
                        },
                        {
                          "originCity": "budapest",
                          "destCity": "gdansk",
                          "originAirports": [
                            {
                              "iata": "BUD",
                              "name": "Budapest Liszt Ferenc International Airport",
                              "city": "budapest",
                              "countryCode": "HU",
                              "lat": 47.4369,
                              "lon": 19.2556,
                              "tz": "Europe/Budapest"
                            }
                          ],
                          "destAirports": [
                            {
                              "iata": "GDN",
                              "name": "Gdańsk Lech Wałęsa Airport",
                              "city": "gdansk",
                              "countryCode": "PL",
                              "lat": 54.3775,
                              "lon": 18.4661,
                              "tz": "Europe/Warsaw"
                            }
                          ],
                          "validFrom": "2026-11-24T06:00:02Z",
                          "validTo": "2026-11-27T22:59:59Z",
                          "reliability": {
                            "originCity": "budapest",
                            "destCity": "gdansk",
                            "daysSeen": 88,
                            "daysTotal": 90,
                            "rate": 0.9778,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.9667,
                            "survivalNextDay": 0.98,
                            "avgRunDays": 29.3
                          },
                          "flights": [],
                          "dayTrip": null
                        }
                      ],
                      "totalRoutes": 54,
                      "snapshotDate": "2026-11-24",
                      "generatedAt": "2026-11-24T09:12:03Z",
                      "demo": false
                    }
                  },
                  "returnTrip": {
                    "summary": "Return: a real pair and an outlook",
                    "value": {
                      "pageVersion": "Zk1tq0b6wXo9aE2c",
                      "routes": [],
                      "totalRoutes": 0,
                      "snapshotDate": "2026-11-24",
                      "generatedAt": "2026-11-24T09:12:03Z",
                      "demo": false,
                      "trips": [
                        {
                          "originCity": "budapest",
                          "destCity": "alicante",
                          "originAirports": [
                            {
                              "iata": "BUD",
                              "name": "Budapest Liszt Ferenc International Airport",
                              "city": "budapest",
                              "countryCode": "HU",
                              "lat": 47.4369,
                              "lon": 19.2556,
                              "tz": "Europe/Budapest"
                            }
                          ],
                          "destAirports": [
                            {
                              "iata": "ALC",
                              "name": "Alicante International Airport",
                              "city": "alicante",
                              "countryCode": "ES",
                              "lat": 38.2822,
                              "lon": -0.5581,
                              "tz": "Europe/Madrid"
                            }
                          ],
                          "outbound": {
                            "id": "BUD-ALC-1795753800",
                            "originIata": "BUD",
                            "destIata": "ALC",
                            "departureUtc": "2026-11-27T04:30:00Z",
                            "departureLocal": "2026-11-27T05:30:00",
                            "arrivalUtc": "2026-11-27T07:40:00Z",
                            "arrivalLocal": "2026-11-27T08:40:00",
                            "durationSec": 11400,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "inbound": {
                            "id": "ALC-BUD-1795806600",
                            "originIata": "ALC",
                            "destIata": "BUD",
                            "departureUtc": "2026-11-27T19:10:00Z",
                            "departureLocal": "2026-11-27T20:10:00",
                            "arrivalUtc": "2026-11-27T22:05:00Z",
                            "arrivalLocal": "2026-11-27T23:05:00",
                            "durationSec": 10500,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "returnOutlook": null,
                          "stayHours": 11.5,
                          "totalFeeEuroCents": 1998,
                          "reliability": {
                            "originCity": "budapest",
                            "destCity": "alicante",
                            "daysSeen": 56,
                            "daysTotal": 90,
                            "rate": 0.6222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.7667,
                            "survivalNextDay": 0.8,
                            "avgRunDays": 4.67
                          }
                        },
                        {
                          "originCity": "budapest",
                          "destCity": "alicante",
                          "originAirports": [
                            {
                              "iata": "BUD",
                              "name": "Budapest Liszt Ferenc International Airport",
                              "city": "budapest",
                              "countryCode": "HU",
                              "lat": 47.4369,
                              "lon": 19.2556,
                              "tz": "Europe/Budapest"
                            }
                          ],
                          "destAirports": [
                            {
                              "iata": "ALC",
                              "name": "Alicante International Airport",
                              "city": "alicante",
                              "countryCode": "ES",
                              "lat": 38.2822,
                              "lon": -0.5581,
                              "tz": "Europe/Madrid"
                            }
                          ],
                          "outbound": {
                            "id": "BUD-ALC-1795753800",
                            "originIata": "BUD",
                            "destIata": "ALC",
                            "departureUtc": "2026-11-27T04:30:00Z",
                            "departureLocal": "2026-11-27T05:30:00",
                            "arrivalUtc": "2026-11-27T07:40:00Z",
                            "arrivalLocal": "2026-11-27T08:40:00",
                            "durationSec": 11400,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "inbound": null,
                          "returnOutlook": {
                            "date": "2026-11-29",
                            "weekday": "Sunday",
                            "rate": 0.7647,
                            "sampleDays": 51,
                            "seenDays": 39,
                            "source": "weekday",
                            "forwardStatus": "flies",
                            "forwardWeekdays": "Mon · Wed · Fri · Sun"
                          },
                          "stayHours": null,
                          "totalFeeEuroCents": 999,
                          "reliability": {
                            "originCity": "budapest",
                            "destCity": "alicante",
                            "daysSeen": 56,
                            "daysTotal": 90,
                            "rate": 0.6222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.7667,
                            "survivalNextDay": 0.8,
                            "avgRunDays": 4.67
                          }
                        }
                      ],
                      "totalTrips": 31
                    }
                  },
                  "oneStop": {
                    "summary": "maxLegs 2: a self-transfer with passport control",
                    "value": {
                      "pageVersion": "8m2RkC0aZ1pQe7Lw",
                      "routes": [],
                      "totalRoutes": 0,
                      "snapshotDate": "2026-11-24",
                      "generatedAt": "2026-11-24T09:12:03Z",
                      "demo": false,
                      "connections": [
                        {
                          "originCity": "london",
                          "viaCity": "budapest",
                          "destCity": "rome",
                          "leg1": {
                            "id": "LTN-BUD-1795672800",
                            "originIata": "LTN",
                            "destIata": "BUD",
                            "departureUtc": "2026-11-26T06:00:00Z",
                            "departureLocal": "2026-11-26T06:00:00",
                            "arrivalUtc": "2026-11-26T08:25:00Z",
                            "arrivalLocal": "2026-11-26T09:25:00",
                            "durationSec": 8700,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "leg2": {
                            "id": "BUD-FCO-1795693500",
                            "originIata": "BUD",
                            "destIata": "FCO",
                            "departureUtc": "2026-11-26T11:45:00Z",
                            "departureLocal": "2026-11-26T12:45:00",
                            "arrivalUtc": "2026-11-26T13:35:00Z",
                            "arrivalLocal": "2026-11-26T14:35:00",
                            "durationSec": 6600,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "layoverMinutes": 200,
                          "totalDurationSec": 27300,
                          "totalFeeEuroCents": 1998,
                          "originCountryCode": "GB",
                          "viaCountryCode": "HU",
                          "destCountryCode": "IT",
                          "leg1Reliability": {
                            "originCity": "london",
                            "destCity": "budapest",
                            "daysSeen": 88,
                            "daysTotal": 90,
                            "rate": 0.9778,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.9667,
                            "survivalNextDay": 0.98,
                            "avgRunDays": 22
                          },
                          "leg2Reliability": {
                            "originCity": "budapest",
                            "destCity": "rome",
                            "daysSeen": 74,
                            "daysTotal": 90,
                            "rate": 0.8222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.8444,
                            "survivalNextDay": 0.91,
                            "avgRunDays": 7.4
                          },
                          "legs": [
                            {
                              "id": "LTN-BUD-1795672800",
                              "originIata": "LTN",
                              "destIata": "BUD",
                              "departureUtc": "2026-11-26T06:00:00Z",
                              "departureLocal": "2026-11-26T06:00:00",
                              "arrivalUtc": "2026-11-26T08:25:00Z",
                              "arrivalLocal": "2026-11-26T09:25:00",
                              "durationSec": 8700,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            },
                            {
                              "id": "BUD-FCO-1795693500",
                              "originIata": "BUD",
                              "destIata": "FCO",
                              "departureUtc": "2026-11-26T11:45:00Z",
                              "departureLocal": "2026-11-26T12:45:00",
                              "arrivalUtc": "2026-11-26T13:35:00Z",
                              "arrivalLocal": "2026-11-26T14:35:00",
                              "durationSec": 6600,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            }
                          ],
                          "cities": [
                            "london",
                            "budapest",
                            "rome"
                          ],
                          "stops": 1,
                          "layovers": [
                            {
                              "city": "budapest",
                              "iata": "BUD",
                              "countryCode": "HU",
                              "minutes": 200,
                              "requiredMinutes": 190,
                              "passportControl": true,
                              "arrivalIsEstimated": true,
                              "overnight": false
                            }
                          ],
                          "legReliabilities": [
                            {
                              "originCity": "london",
                              "destCity": "budapest",
                              "daysSeen": 88,
                              "daysTotal": 90,
                              "rate": 0.9778,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.9667,
                              "survivalNextDay": 0.98,
                              "avgRunDays": 22
                            },
                            {
                              "originCity": "budapest",
                              "destCity": "rome",
                              "daysSeen": 74,
                              "daysTotal": 90,
                              "rate": 0.8222,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.8444,
                              "survivalNextDay": 0.91,
                              "avgRunDays": 7.4
                            }
                          ],
                          "reliabilityEstimate": 0.80394716,
                          "directListed": false
                        }
                      ],
                      "totalConnections": 1,
                      "connectionRules": {
                        "maxLegs": 2,
                        "minLayoverMin": 120,
                        "maxLayoverMin": 480,
                        "allowOvernight": false,
                        "passportControlExtraMin": 60,
                        "estimatedArrivalBufferMin": 10
                      }
                    }
                  },
                  "twoStops": {
                    "summary": "maxLegs 3, sort stops: a 1-stop and a 2-stop",
                    "value": {
                      "pageVersion": "Qx4hTn7cW0bLs9Ve",
                      "routes": [],
                      "totalRoutes": 0,
                      "snapshotDate": "2026-11-24",
                      "generatedAt": "2026-11-24T09:12:03Z",
                      "demo": false,
                      "connections": [
                        {
                          "originCity": "gdansk",
                          "viaCity": "budapest",
                          "destCity": "alicante",
                          "leg1": {
                            "id": "GDN-BUD-1795669200",
                            "originIata": "GDN",
                            "destIata": "BUD",
                            "departureUtc": "2026-11-26T05:00:00Z",
                            "departureLocal": "2026-11-26T06:00:00",
                            "arrivalUtc": "2026-11-26T06:40:00Z",
                            "arrivalLocal": "2026-11-26T07:40:00",
                            "durationSec": 6000,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "leg2": {
                            "id": "BUD-ALC-1795698000",
                            "originIata": "BUD",
                            "destIata": "ALC",
                            "departureUtc": "2026-11-26T13:00:00Z",
                            "departureLocal": "2026-11-26T14:00:00",
                            "arrivalUtc": "2026-11-26T16:10:00Z",
                            "arrivalLocal": "2026-11-26T17:10:00",
                            "durationSec": 11400,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "layoverMinutes": 380,
                          "totalDurationSec": 40200,
                          "totalFeeEuroCents": 1998,
                          "originCountryCode": "PL",
                          "viaCountryCode": "HU",
                          "destCountryCode": "ES",
                          "leg1Reliability": {
                            "originCity": "gdansk",
                            "destCity": "budapest",
                            "daysSeen": 41,
                            "daysTotal": 90,
                            "rate": 0.4556,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.5,
                            "survivalNextDay": 0.72,
                            "avgRunDays": 3.15
                          },
                          "leg2Reliability": {
                            "originCity": "budapest",
                            "destCity": "alicante",
                            "daysSeen": 56,
                            "daysTotal": 90,
                            "rate": 0.6222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.7667,
                            "survivalNextDay": 0.8,
                            "avgRunDays": 4.67
                          },
                          "legs": [
                            {
                              "id": "GDN-BUD-1795669200",
                              "originIata": "GDN",
                              "destIata": "BUD",
                              "departureUtc": "2026-11-26T05:00:00Z",
                              "departureLocal": "2026-11-26T06:00:00",
                              "arrivalUtc": "2026-11-26T06:40:00Z",
                              "arrivalLocal": "2026-11-26T07:40:00",
                              "durationSec": 6000,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            },
                            {
                              "id": "BUD-ALC-1795698000",
                              "originIata": "BUD",
                              "destIata": "ALC",
                              "departureUtc": "2026-11-26T13:00:00Z",
                              "departureLocal": "2026-11-26T14:00:00",
                              "arrivalUtc": "2026-11-26T16:10:00Z",
                              "arrivalLocal": "2026-11-26T17:10:00",
                              "durationSec": 11400,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            }
                          ],
                          "cities": [
                            "gdansk",
                            "budapest",
                            "alicante"
                          ],
                          "stops": 1,
                          "layovers": [
                            {
                              "city": "budapest",
                              "iata": "BUD",
                              "countryCode": "HU",
                              "minutes": 380,
                              "requiredMinutes": 130,
                              "passportControl": false,
                              "arrivalIsEstimated": true,
                              "overnight": false
                            }
                          ],
                          "legReliabilities": [
                            {
                              "originCity": "gdansk",
                              "destCity": "budapest",
                              "daysSeen": 41,
                              "daysTotal": 90,
                              "rate": 0.4556,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.5,
                              "survivalNextDay": 0.72,
                              "avgRunDays": 3.15
                            },
                            {
                              "originCity": "budapest",
                              "destCity": "alicante",
                              "daysSeen": 56,
                              "daysTotal": 90,
                              "rate": 0.6222,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.7667,
                              "survivalNextDay": 0.8,
                              "avgRunDays": 4.67
                            }
                          ],
                          "reliabilityEstimate": 0.28347432,
                          "directListed": false
                        },
                        {
                          "originCity": "gdansk",
                          "viaCity": "budapest",
                          "destCity": "alicante",
                          "leg1": {
                            "id": "GDN-BUD-1795669200",
                            "originIata": "GDN",
                            "destIata": "BUD",
                            "departureUtc": "2026-11-26T05:00:00Z",
                            "departureLocal": "2026-11-26T06:00:00",
                            "arrivalUtc": "2026-11-26T06:40:00Z",
                            "arrivalLocal": "2026-11-26T07:40:00",
                            "durationSec": 6000,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "leg2": {
                            "id": "BUD-FCO-1795683900",
                            "originIata": "BUD",
                            "destIata": "FCO",
                            "departureUtc": "2026-11-26T09:05:00Z",
                            "departureLocal": "2026-11-26T10:05:00",
                            "arrivalUtc": "2026-11-26T10:55:00Z",
                            "arrivalLocal": "2026-11-26T11:55:00",
                            "durationSec": 6600,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "layoverMinutes": 145,
                          "totalDurationSec": 38700,
                          "totalFeeEuroCents": 2997,
                          "originCountryCode": "PL",
                          "viaCountryCode": "HU",
                          "destCountryCode": "ES",
                          "leg1Reliability": {
                            "originCity": "gdansk",
                            "destCity": "budapest",
                            "daysSeen": 41,
                            "daysTotal": 90,
                            "rate": 0.4556,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.5,
                            "survivalNextDay": 0.72,
                            "avgRunDays": 3.15
                          },
                          "leg2Reliability": {
                            "originCity": "budapest",
                            "destCity": "rome",
                            "daysSeen": 74,
                            "daysTotal": 90,
                            "rate": 0.8222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.8444,
                            "survivalNextDay": 0.91,
                            "avgRunDays": 7.4
                          },
                          "legs": [
                            {
                              "id": "GDN-BUD-1795669200",
                              "originIata": "GDN",
                              "destIata": "BUD",
                              "departureUtc": "2026-11-26T05:00:00Z",
                              "departureLocal": "2026-11-26T06:00:00",
                              "arrivalUtc": "2026-11-26T06:40:00Z",
                              "arrivalLocal": "2026-11-26T07:40:00",
                              "durationSec": 6000,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            },
                            {
                              "id": "BUD-FCO-1795683900",
                              "originIata": "BUD",
                              "destIata": "FCO",
                              "departureUtc": "2026-11-26T09:05:00Z",
                              "departureLocal": "2026-11-26T10:05:00",
                              "arrivalUtc": "2026-11-26T10:55:00Z",
                              "arrivalLocal": "2026-11-26T11:55:00",
                              "durationSec": 6600,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            },
                            {
                              "id": "FCO-ALC-1795700100",
                              "originIata": "FCO",
                              "destIata": "ALC",
                              "departureUtc": "2026-11-26T13:35:00Z",
                              "departureLocal": "2026-11-26T14:35:00",
                              "arrivalUtc": "2026-11-26T15:45:00Z",
                              "arrivalLocal": "2026-11-26T16:45:00",
                              "durationSec": 7800,
                              "timesSource": "timetable",
                              "arrivalIsEstimated": true,
                              "feeEuroCents": 999,
                              "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                              "firstSeenAt": "2026-11-24T06:33:20Z",
                              "lastSeenAt": "2026-11-24T06:33:20Z",
                              "stillValid": true
                            }
                          ],
                          "cities": [
                            "gdansk",
                            "budapest",
                            "rome",
                            "alicante"
                          ],
                          "stops": 2,
                          "layovers": [
                            {
                              "city": "budapest",
                              "iata": "BUD",
                              "countryCode": "HU",
                              "minutes": 145,
                              "requiredMinutes": 130,
                              "passportControl": false,
                              "arrivalIsEstimated": true,
                              "overnight": false
                            },
                            {
                              "city": "rome",
                              "iata": "FCO",
                              "countryCode": "IT",
                              "minutes": 160,
                              "requiredMinutes": 130,
                              "passportControl": false,
                              "arrivalIsEstimated": true,
                              "overnight": false
                            }
                          ],
                          "legReliabilities": [
                            {
                              "originCity": "gdansk",
                              "destCity": "budapest",
                              "daysSeen": 41,
                              "daysTotal": 90,
                              "rate": 0.4556,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.5,
                              "survivalNextDay": 0.72,
                              "avgRunDays": 3.15
                            },
                            {
                              "originCity": "budapest",
                              "destCity": "rome",
                              "daysSeen": 74,
                              "daysTotal": 90,
                              "rate": 0.8222,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.8444,
                              "survivalNextDay": 0.91,
                              "avgRunDays": 7.4
                            },
                            null
                          ],
                          "reliabilityEstimate": null,
                          "directListed": false
                        }
                      ],
                      "totalConnections": 2,
                      "connectionRules": {
                        "maxLegs": 3,
                        "minLayoverMin": 120,
                        "maxLayoverMin": 480,
                        "allowOvernight": false,
                        "passportControlExtraMin": 60,
                        "estimatedArrivalBufferMin": 10
                      }
                    }
                  },
                  "unlistedOrigin": {
                    "summary": "An origin with no departures on the list, and where to fly from instead",
                    "value": {
                      "pageVersion": "47DEQpj8HBSa-_TI",
                      "routes": [],
                      "totalRoutes": 0,
                      "snapshotDate": "2026-11-24",
                      "generatedAt": "2026-11-24T09:12:03Z",
                      "demo": false,
                      "unlistedCities": [
                        {
                          "city": "vienna",
                          "role": "origin",
                          "lastListedDate": null,
                          "nearby": [
                            {
                              "city": "bratislava",
                              "iata": "BTS",
                              "distanceKm": 50,
                              "routeCount": 18
                            },
                            {
                              "city": "budapest",
                              "iata": "BUD",
                              "distanceKm": 215,
                              "routeCount": 54
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body is not JSON, fails validation (a type or range), or has contradictory fields: return mode without an origin, minimum above maximum, equal hour bounds, maxLegs 3 without an origin or destination.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "invalid_json": {
                    "summary": "invalid_json",
                    "value": {
                      "error": "invalid_json",
                      "message": "Request body must be valid JSON"
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid_request",
                    "value": {
                      "error": "invalid_request",
                      "message": "Return search requires at least one origin"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The body is over 32 KB (a search lists at most 50 cities per side).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "payload_too_large": {
                    "summary": "payload_too_large",
                    "value": {
                      "error": "payload_too_large",
                      "message": "Request body must be at most 32768 bytes"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/stats/diff": {
      "get": {
        "operationId": "getDailyDiff",
        "tags": [
          "Availability"
        ],
        "summary": "New and dropped routes",
        "description": "What one daily list added and removed compared with the previous recorded list. Omit `date` for the latest list.",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "List date (YYYY-MM-DD). Defaults to the latest list.",
            "schema": {
              "type": "string",
              "description": "List date.",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Added and removed pairs.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DailyDiff"
                },
                "example": {
                  "date": "2026-11-24",
                  "prevDate": "2026-11-23",
                  "comparisonDays": 1,
                  "added": [
                    {
                      "originCity": "aalesund",
                      "destCity": "gdansk"
                    },
                    {
                      "originCity": "aberdeen",
                      "destCity": "gdansk"
                    }
                  ],
                  "removed": [
                    {
                      "originCity": "alicante",
                      "destCity": "bratislava"
                    }
                  ],
                  "totalRoutes": 1027
                }
              }
            }
          },
          "400": {
            "description": "Malformed date.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "invalid_date": {
                    "summary": "invalid_date",
                    "value": {
                      "error": "invalid_date",
                      "message": "date must be YYYY-MM-DD"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No list recorded for that date (or none at all).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "No snapshot for 2025-01-01"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/weekend": {
      "get": {
        "operationId": "getWeekendOptions",
        "tags": [
          "Planning"
        ],
        "summary": "Where can I go and get back?",
        "description": "Destinations from one origin, ranked by the odds of an outbound on the out date AND a way back on the return date, from weekday listing history checked against the current timetable. `bookableNow` marks options with a departure inside the booking window right now.",
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": true,
            "description": "Origin city name or IATA code.",
            "schema": {
              "type": "string",
              "description": "City or IATA code."
            },
            "example": "BUD"
          },
          {
            "name": "out",
            "in": "query",
            "required": true,
            "description": "Outbound date (YYYY-MM-DD): a real calendar date, from yesterday up to 365 days ahead.",
            "schema": {
              "type": "string",
              "description": "Outbound date.",
              "format": "date"
            },
            "example": "2026-12-04"
          },
          {
            "name": "ret",
            "in": "query",
            "required": true,
            "description": "Return date (YYYY-MM-DD): on or after out, at most 365 days ahead.",
            "schema": {
              "type": "string",
              "description": "Return date.",
              "format": "date"
            },
            "example": "2026-12-06"
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Omit for the full answer below. `returns` answers only each destination's way back on ret, decided as in the full answer and without flights: `{originCity, outDate, retDate, retWeekday, snapshotDate, retListPublishes, returns: [{destCity, ret: {status, chance, seenDays, sampleDays, source, lastListedDate}, retForwardStatus, retForwardWeekdays}], generatedAt}` (WeekendReturnsResponse in @ayf/shared). It is edge-cached for up to 30 minutes, never past the next daily list or a listed return's cutoff.",
            "schema": {
              "type": "string",
              "description": "Response shape.",
              "enum": [
                "full",
                "returns"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked destinations.",
            "headers": {
              "Cache-Control": {
                "description": "Edge-cached for at most 300 seconds, less when a listed departure in the answer is about to pass its 3-hour booking cutoff, so a cached answer never outlives it.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=0, s-maxage=300, must-revalidate"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeekendResponse"
                },
                "example": {
                  "originCity": "budapest",
                  "originAirports": [
                    {
                      "iata": "BUD",
                      "name": "Budapest Liszt Ferenc International Airport",
                      "city": "budapest",
                      "countryCode": "HU",
                      "lat": 47.4369,
                      "lon": 19.2556,
                      "tz": "Europe/Budapest"
                    }
                  ],
                  "outDate": "2026-11-27",
                  "retDate": "2026-11-29",
                  "snapshotDate": "2026-11-24",
                  "history": {
                    "recordedDays": 90,
                    "outbound": {
                      "source": "weekday",
                      "sampleDays": 38
                    },
                    "inbound": {
                      "source": "weekday",
                      "sampleDays": 51
                    }
                  },
                  "options": [
                    {
                      "destCity": "gdansk",
                      "destAirports": [
                        {
                          "iata": "GDN",
                          "name": "Gdańsk Lech Wałęsa Airport",
                          "city": "gdansk",
                          "countryCode": "PL",
                          "lat": 54.3775,
                          "lon": 18.4661,
                          "tz": "Europe/Warsaw"
                        }
                      ],
                      "outRate": 1,
                      "retRate": 0.9412,
                      "outWeekday": "Friday",
                      "retWeekday": "Sunday",
                      "score": 0.9412,
                      "bookableNow": false,
                      "outListed": true,
                      "retListed": null,
                      "outFlights": [],
                      "retFlights": [],
                      "overallOutRate": 1,
                      "overallRetRate": 0.9778,
                      "outForwardStatus": "unknown",
                      "retForwardStatus": "unknown",
                      "outForwardWeekdays": null,
                      "retForwardWeekdays": null
                    },
                    {
                      "destCity": "alicante",
                      "destAirports": [
                        {
                          "iata": "ALC",
                          "name": "Alicante International Airport",
                          "city": "alicante",
                          "countryCode": "ES",
                          "lat": 38.2822,
                          "lon": -0.5581,
                          "tz": "Europe/Madrid"
                        }
                      ],
                      "outRate": 0.8421,
                      "retRate": 0.7647,
                      "outWeekday": "Friday",
                      "retWeekday": "Sunday",
                      "score": 0.644,
                      "bookableNow": true,
                      "outListed": true,
                      "retListed": null,
                      "outFlights": [
                        {
                          "id": "BUD-ALC-1795753800",
                          "originIata": "BUD",
                          "destIata": "ALC",
                          "departureUtc": "2026-11-27T04:30:00Z",
                          "departureLocal": "2026-11-27T05:30:00",
                          "arrivalUtc": "2026-11-27T07:40:00Z",
                          "arrivalLocal": "2026-11-27T08:40:00",
                          "durationSec": 11400,
                          "timesSource": "timetable",
                          "arrivalIsEstimated": true,
                          "feeEuroCents": 999,
                          "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                          "firstSeenAt": "2026-11-24T06:33:20Z",
                          "lastSeenAt": "2026-11-24T06:33:20Z",
                          "stillValid": true
                        }
                      ],
                      "retFlights": [],
                      "overallOutRate": 0.6222,
                      "overallRetRate": 0.7667,
                      "outForwardStatus": "flies",
                      "retForwardStatus": "flies",
                      "outForwardWeekdays": "Mon · Wed · Fri",
                      "retForwardWeekdays": "Mon · Wed · Fri · Sun"
                    }
                  ],
                  "generatedAt": "2026-11-24T09:12:03Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing params, an impossible date such as 2026-02-30, ret before out, or dates outside yesterday to 365 days ahead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "origin, out and ret query params are required"
                    }
                  },
                  "invalid_date": {
                    "summary": "invalid_date",
                    "value": {
                      "error": "invalid_date",
                      "message": "out and ret must be real dates in YYYY-MM-DD form"
                    }
                  },
                  "invalid_range": {
                    "summary": "invalid_range",
                    "value": {
                      "error": "invalid_range",
                      "message": "ret must be on or after out"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown origin.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "Unknown origin XYZ"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/meetup": {
      "get": {
        "operationId": "planMeetup",
        "tags": [
          "Planning"
        ],
        "summary": "Where can we all fly and meet?",
        "description": "Cities 2–3 travellers can each reach with a direct flight on the current list, by meeting day, with every traveller's way home and a transparent score. Way-home odds are estimates from history; Wizz confirms seats only at booking.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "2–3 distinct origin cities, one per traveller, comma-separated (the param may also repeat): Wizz city names, URL slugs such as \"tel-aviv\", or IATA codes.",
            "schema": {
              "type": "string",
              "description": "Comma-separated cities."
            },
            "example": "budapest,london"
          },
          {
            "name": "day",
            "in": "query",
            "required": false,
            "description": "Only options landing on this destination-local date (YYYY-MM-DD), which must lie inside the current list's window: its date up to the day after validTo. Options still pending are kept.",
            "schema": {
              "type": "string",
              "description": "Meeting day.",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Meet-up options. Empty `options` is a normal answer (no city works directly for everyone, or none on that day): see `oneStop` and `hosts`.",
            "headers": {
              "Cache-Control": {
                "description": "Edge-cached for 60 to 300 seconds: never past the moment the next flight in the answer crosses its 3-hour cutoff, or a flight past the list's window is expected to open with the next list.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=0, s-maxage=300, must-revalidate"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetupResponse"
                },
                "example": {
                  "travellers": [
                    {
                      "originCity": "budapest",
                      "originAirports": [
                        {
                          "iata": "BUD",
                          "name": "Budapest Liszt Ferenc International Airport",
                          "city": "budapest",
                          "countryCode": "HU",
                          "lat": 47.4369,
                          "lon": 19.2556,
                          "tz": "Europe/Budapest"
                        }
                      ],
                      "routesToday": 48
                    },
                    {
                      "originCity": "london",
                      "originAirports": [
                        {
                          "iata": "LTN",
                          "name": "London Luton Airport",
                          "city": "london",
                          "countryCode": "GB",
                          "lat": 51.8747,
                          "lon": -0.3683,
                          "tz": "Europe/London"
                        }
                      ],
                      "routesToday": 61
                    }
                  ],
                  "day": null,
                  "days": [
                    {
                      "date": "2026-11-27",
                      "count": 3,
                      "partial": 1
                    }
                  ],
                  "options": [
                    {
                      "destCity": "alicante",
                      "destAirports": [
                        {
                          "iata": "ALC",
                          "name": "Alicante International Airport",
                          "city": "alicante",
                          "countryCode": "ES",
                          "lat": 38.2822,
                          "lon": -0.5581,
                          "tz": "Europe/Madrid"
                        }
                      ],
                      "day": "2026-11-27",
                      "timing": "confirmed",
                      "otherDays": [],
                      "travellers": [
                        {
                          "originCity": "budapest",
                          "status": "bookable",
                          "flight": {
                            "id": "BUD-ALC-1795753800",
                            "originIata": "BUD",
                            "destIata": "ALC",
                            "departureUtc": "2026-11-27T04:30:00Z",
                            "departureLocal": "2026-11-27T05:30:00",
                            "arrivalUtc": "2026-11-27T07:40:00Z",
                            "arrivalLocal": "2026-11-27T08:40:00",
                            "durationSec": 11400,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "bookingOpensUtc": null,
                          "bookingOpensLocal": null,
                          "otherFlights": [],
                          "outboundReliability": {
                            "originCity": "budapest",
                            "destCity": "alicante",
                            "daysSeen": 56,
                            "daysTotal": 90,
                            "rate": 0.6222,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.7667,
                            "survivalNextDay": 0.8,
                            "avgRunDays": 4.67
                          },
                          "wayHome": {
                            "listedToday": true,
                            "flights": [
                              {
                                "id": "ALC-BUD-1795806600",
                                "originIata": "ALC",
                                "destIata": "BUD",
                                "departureUtc": "2026-11-27T19:10:00Z",
                                "departureLocal": "2026-11-27T20:10:00",
                                "arrivalUtc": "2026-11-27T22:05:00Z",
                                "arrivalLocal": "2026-11-27T23:05:00",
                                "durationSec": 10500,
                                "timesSource": "timetable",
                                "arrivalIsEstimated": true,
                                "feeEuroCents": 999,
                                "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                                "firstSeenAt": "2026-11-24T06:33:20Z",
                                "lastSeenAt": "2026-11-24T06:33:20Z",
                                "stillValid": true
                              }
                            ],
                            "timesPending": false,
                            "reliability": {
                              "originCity": "alicante",
                              "destCity": "budapest",
                              "daysSeen": 69,
                              "daysTotal": 90,
                              "rate": 0.7667,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.6222,
                              "survivalNextDay": 0.88,
                              "avgRunDays": 5.75
                            },
                            "basis": "confirmed",
                            "odds": 1
                          },
                          "transfer": {
                            "iata": "ALC",
                            "mode": "bus",
                            "costEur": 5,
                            "durationMin": 30
                          }
                        },
                        {
                          "originCity": "london",
                          "status": "bookable",
                          "flight": {
                            "id": "LTN-ALC-1795772400",
                            "originIata": "LTN",
                            "destIata": "ALC",
                            "departureUtc": "2026-11-27T09:40:00Z",
                            "departureLocal": "2026-11-27T09:40:00",
                            "arrivalUtc": "2026-11-27T12:10:00Z",
                            "arrivalLocal": "2026-11-27T13:10:00",
                            "durationSec": 9000,
                            "timesSource": "timetable",
                            "arrivalIsEstimated": true,
                            "feeEuroCents": 999,
                            "bookingUrl": "https://multipass.wizzair.com/en/w6/subscriptions/spa/private-page/wallets",
                            "firstSeenAt": "2026-11-24T06:33:20Z",
                            "lastSeenAt": "2026-11-24T06:33:20Z",
                            "stillValid": true
                          },
                          "bookingOpensUtc": null,
                          "bookingOpensLocal": null,
                          "otherFlights": [],
                          "outboundReliability": {
                            "originCity": "london",
                            "destCity": "alicante",
                            "daysSeen": 79,
                            "daysTotal": 90,
                            "rate": 0.8778,
                            "lastSeenDate": "2026-11-24",
                            "returnRate": 0.8556,
                            "survivalNextDay": 0.9,
                            "avgRunDays": 9.88
                          },
                          "wayHome": {
                            "listedToday": true,
                            "flights": [],
                            "timesPending": true,
                            "reliability": {
                              "originCity": "alicante",
                              "destCity": "london",
                              "daysSeen": 77,
                              "daysTotal": 90,
                              "rate": 0.8556,
                              "lastSeenDate": "2026-11-24",
                              "returnRate": 0.8778,
                              "survivalNextDay": 0.86,
                              "avgRunDays": 8.56
                            },
                            "basis": "listed_today",
                            "odds": 0.86
                          },
                          "transfer": {
                            "iata": "ALC",
                            "mode": "bus",
                            "costEur": 5,
                            "durationMin": 30
                          }
                        }
                      ],
                      "arrivalSpreadMin": 270,
                      "score": {
                        "total": 89,
                        "bookable": 40,
                        "arrivalGap": 17,
                        "wayHome": 23,
                        "transfer": 9
                      }
                    }
                  ],
                  "totalOptions": 4,
                  "oneStop": [],
                  "hosts": [],
                  "snapshotDate": "2026-11-24",
                  "validTo": "2026-11-27T22:59:59Z",
                  "demo": false,
                  "generatedAt": "2026-11-24T09:12:03Z"
                }
              }
            }
          },
          "400": {
            "description": "Malformed params.",
            "headers": {
              "Cache-Control": {
                "description": "A bad request depends only on the URL: cached at the edge for 5 minutes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=0, s-maxage=300"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "too_few_travellers": {
                    "summary": "too_few_travellers",
                    "value": {
                      "error": "too_few_travellers",
                      "message": "from needs 2–3 comma-separated cities"
                    }
                  },
                  "too_many_travellers": {
                    "summary": "too_many_travellers",
                    "value": {
                      "error": "too_many_travellers",
                      "message": "from takes at most 3 cities"
                    }
                  },
                  "duplicate_city": {
                    "summary": "duplicate_city",
                    "value": {
                      "error": "duplicate_city",
                      "message": "Each traveller needs a different city"
                    }
                  },
                  "invalid_day": {
                    "summary": "invalid_day",
                    "value": {
                      "error": "invalid_day",
                      "message": "day must be a calendar date, YYYY-MM-DD"
                    }
                  },
                  "day_outside_window": {
                    "summary": "day_outside_window",
                    "value": {
                      "error": "day_outside_window",
                      "message": "day must be within the current list's window, 2026-11-24 to 2026-11-28"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "A `from` value matches no known city, slug or IATA code.",
            "headers": {
              "Cache-Control": {
                "description": "A bad request depends only on the URL: cached at the edge for 5 minutes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=0, s-maxage=300"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unknown_city": {
                    "summary": "unknown_city",
                    "value": {
                      "error": "unknown_city",
                      "message": "Unknown city: atlantis"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/schedule": {
      "get": {
        "operationId": "getSchedule",
        "tags": [
          "Planning"
        ],
        "summary": "Scheduled departure times",
        "description": "Local departure times Wizz's public timetable shows for a city pair on one date. This is the flight schedule, not AYCF availability: the route still has to appear on the daily list, and booking opens only once a list carries that date (about 3 days ahead).",
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Origin city."
            },
            "example": "warsaw"
          },
          {
            "name": "dest",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Destination city."
            },
            "example": "malaga"
          },
          {
            "name": "date",
            "in": "query",
            "required": true,
            "description": "Departure date (YYYY-MM-DD).",
            "schema": {
              "type": "string",
              "description": "Departure date.",
              "format": "date"
            },
            "example": "2026-12-01"
          }
        ],
        "responses": {
          "200": {
            "description": "Departure times for that date. `times: []` is a normal answer: nothing flies that day, or the date is past `coverageEnd`.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleResponse"
                },
                "example": {
                  "originCity": "warsaw",
                  "destCity": "malaga",
                  "date": "2026-11-28",
                  "times": [
                    "06:00",
                    "13:05"
                  ],
                  "source": "timetable",
                  "coverageEnd": "2027-01-05"
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed params.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "origin, dest and date query params are required"
                    }
                  },
                  "invalid_date": {
                    "summary": "invalid_date",
                    "value": {
                      "error": "invalid_date",
                      "message": "date must be YYYY-MM-DD"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown city or pair.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "Unknown pair budapest → atlantis"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/paths": {
      "get": {
        "operationId": "getPaths",
        "tags": [
          "Planning"
        ],
        "summary": "How to get from one city to another",
        "description": "Trips bookable on the current list (`today`: direct, or up to 2 stops with 2–24h layovers, overnight allowed) and the ways the lists usually offer from 90 days of history (`usual`: hubs to aim for, with an estimate). For cities with no direct route.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Origin city."
            },
            "example": "tallinn"
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Destination city."
            },
            "example": "catania"
          }
        ],
        "responses": {
          "200": {
            "description": "Today's options and the usual paths. Empty lists are a normal answer: nothing bookable today, or no path in the last 90 days.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathsResponse"
                },
                "example": {
                  "originCity": "tallinn",
                  "destCity": "catania",
                  "snapshotDate": "2026-11-26",
                  "today": {
                    "direct": [],
                    "connections": [],
                    "total": 2
                  },
                  "usual": [
                    {
                      "cities": [
                        "tallinn",
                        "gdansk",
                        "catania"
                      ],
                      "legs": [
                        {
                          "originCity": "tallinn",
                          "destCity": "gdansk",
                          "rate": 0.93,
                          "lastSeenDate": "2026-11-26",
                          "onLatestList": true
                        },
                        {
                          "originCity": "gdansk",
                          "destCity": "catania",
                          "rate": 0.87,
                          "lastSeenDate": "2026-11-26",
                          "onLatestList": true
                        }
                      ],
                      "estimate": 0.81,
                      "onLatestList": true
                    },
                    {
                      "cities": [
                        "tallinn",
                        "warsaw",
                        "catania"
                      ],
                      "legs": [
                        {
                          "originCity": "tallinn",
                          "destCity": "warsaw",
                          "rate": 0.86,
                          "lastSeenDate": "2026-11-26",
                          "onLatestList": true
                        },
                        {
                          "originCity": "warsaw",
                          "destCity": "catania",
                          "rate": 0.93,
                          "lastSeenDate": "2026-11-26",
                          "onLatestList": true
                        }
                      ],
                      "estimate": 0.8,
                      "onLatestList": true
                    }
                  ],
                  "searchHref": "/?from=tallinn&to=catania&stops=2&maxlay=24&night=1&sort=stops",
                  "demo": false,
                  "generatedAt": "2026-11-26T09:12:03Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing params.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "from and to query params are required"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown city, or the same city twice.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "No AYCF city pair for tallinn → atlantis"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/fares": {
      "get": {
        "operationId": "getCashFares",
        "tags": [
          "Planning"
        ],
        "summary": "Wizz cash fares where AYCF fails",
        "description": "The cheapest regular Wizz fare per leg (city pair + date), as Wizz's public timetable showed it when PassRadar last fetched the route: a fallback when AYCF offers no way there or back. Not AYCF seats and not live: show each fare's fetchedAt. Never calls Wizz per request.",
        "parameters": [
          {
            "name": "leg",
            "in": "query",
            "required": true,
            "description": "One leg as `origin|dest|YYYY-MM-DD`: Wizz city names, case- and diacritics-insensitive (an IATA code or unknown name just gets `fare: null`). Repeat the param for more legs, 1–40 per request; duplicates are merged.",
            "schema": {
              "type": "string",
              "description": "Leg.",
              "pattern": "^[^|]+\\|[^|]+\\|\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "alicante|budapest|2026-12-06"
          }
        ],
        "responses": {
          "200": {
            "description": "One entry per leg. `fare: null` is a normal answer: no price fetched in the last 96 hours, or a date past the stored timetable.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaresResponse"
                },
                "example": {
                  "legs": [
                    {
                      "originCity": "alicante",
                      "destCity": "budapest",
                      "date": "2026-11-29",
                      "fare": {
                        "originIata": "ALC",
                        "destIata": "BUD",
                        "date": "2026-11-29",
                        "amountMinor": 4599,
                        "currency": "EUR",
                        "fetchedAt": "2026-11-23T14:05:12Z",
                        "searchUrl": "https://wizzair.com/en-gb/booking/select-flight/ALC/BUD/2026-11-29/null/1/0/0/null"
                      },
                      "searchPair": {
                        "originIata": "ALC",
                        "destIata": "BUD"
                      }
                    },
                    {
                      "originCity": "london",
                      "destCity": "budapest",
                      "date": "2026-11-29",
                      "fare": null,
                      "searchPair": {
                        "originIata": "LTN",
                        "destIata": "BUD"
                      }
                    }
                  ],
                  "maxAgeHours": 96,
                  "generatedAt": "2026-11-24T09:12:03Z"
                }
              }
            }
          },
          "400": {
            "description": "No leg, more than the maximum, or a malformed one (wrong separator, same city twice, a date not in YYYY-MM-DD form).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "invalid_legs": {
                    "summary": "invalid_legs",
                    "value": {
                      "error": "invalid_legs",
                      "message": "1–40 leg=<origin>|<dest>|<YYYY-MM-DD> params are required"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/weather": {
      "get": {
        "operationId": "getWeather",
        "tags": [
          "Planning"
        ],
        "summary": "Destination weather",
        "description": "Daily forecast for a city (averaged over its airports), from Open-Meteo. Best-effort by design: when the forecast service fails you get `days: []` instead of an error. For several cities in one request, pass `cities` instead of `city` (up to 40): the answer is a WeatherBatchResponse.",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports. Required unless `cities` is given.",
            "schema": {
              "type": "string",
              "description": "City."
            },
            "example": "alicante"
          },
          {
            "name": "cities",
            "in": "query",
            "required": false,
            "description": "Instead of city: up to 40 comma-separated city names. Unknown cities are left out of the answer.",
            "schema": {
              "type": "string",
              "description": "Comma-separated city names."
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "First day (YYYY-MM-DD).",
            "schema": {
              "type": "string",
              "description": "First day.",
              "format": "date"
            },
            "example": "2026-12-04"
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "Last day (YYYY-MM-DD), at most 16 days after from.",
            "schema": {
              "type": "string",
              "description": "Last day.",
              "format": "date"
            },
            "example": "2026-12-06"
          }
        ],
        "responses": {
          "200": {
            "description": "The forecast (possibly empty); with `cities`, one per known city.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 30 minutes (1 minute when a city's forecast failed and came back empty), served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=1800, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WeatherResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WeatherBatchResponse"
                    }
                  ]
                },
                "example": {
                  "city": "alicante",
                  "days": [
                    {
                      "date": "2026-11-27",
                      "tempMaxC": 19.4,
                      "tempMinC": 9.8,
                      "weatherCode": 1,
                      "label": "partly cloudy"
                    },
                    {
                      "date": "2026-11-28",
                      "tempMaxC": 18.1,
                      "tempMinC": 10.2,
                      "weatherCode": 61,
                      "label": "rain"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed params, or dates outside the forecast horizon (yesterday to 16 days out, UTC).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "city, from and to query params are required"
                    }
                  },
                  "invalid_date": {
                    "summary": "invalid_date",
                    "value": {
                      "error": "invalid_date",
                      "message": "from and to must be YYYY-MM-DD"
                    }
                  },
                  "invalid_range": {
                    "summary": "invalid_range",
                    "value": {
                      "error": "invalid_range",
                      "message": "dates must fall between 2026-11-25 and 2026-12-12 (the forecast horizon)"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown city.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "Unknown city atlantis"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/holidays": {
      "get": {
        "operationId": "getPublicHolidays",
        "tags": [
          "Planning"
        ],
        "summary": "Public holidays in a country",
        "description": "A country's nationwide public holidays in one year (this year or next, UTC), from Nager.Date; regional ones aren't included. Keep the days you need. A country without complete data is a 404: unknown, not holiday-free.",
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": true,
            "description": "ISO 3166-1 alpha-2 country code, e.g. PT (any case). A city's code is in GET /api/guide or GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Country code.",
              "pattern": "^[A-Za-z]{2}$"
            },
            "example": "PT"
          },
          {
            "name": "year",
            "in": "query",
            "required": true,
            "description": "This year or next (UTC), four digits. For 12 hours after New Year in UTC the year just ended is accepted too (it's still that year west of UTC).",
            "schema": {
              "type": "integer",
              "description": "Year."
            },
            "example": "2026"
          }
        ],
        "responses": {
          "200": {
            "description": "The year's holidays (possibly none).",
            "headers": {
              "Cache-Control": {
                "description": "Kept a day by browsers and at the edge, served stale for up to a week while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=86400, s-maxage=86400, stale-while-revalidate=604800"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HolidaysResponse"
                },
                "example": {
                  "country": "PT",
                  "year": 2026,
                  "holidays": [
                    {
                      "date": "2026-12-01",
                      "name": "Restoration of Independence",
                      "localName": "Restauração da Independência"
                    },
                    {
                      "date": "2026-12-08",
                      "name": "Immaculate Conception",
                      "localName": "Imaculada Conceição"
                    },
                    {
                      "date": "2026-12-25",
                      "name": "Christmas Day",
                      "localName": "Natal"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed params, or a year other than this one or the next (or, for 12 hours after New Year, the one just ended).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "country and year query params are required"
                    }
                  },
                  "invalid_country": {
                    "summary": "invalid_country",
                    "value": {
                      "error": "invalid_country",
                      "message": "country must be an ISO 3166-1 alpha-2 code, e.g. HU"
                    }
                  },
                  "invalid_year": {
                    "summary": "invalid_year",
                    "value": {
                      "error": "invalid_year",
                      "message": "year must be 2026 or 2027"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No complete holiday data for the country: Nager.Date doesn't cover it (in Nov 2026: AE, AZ, IL, JO, KG, LB, MV, OM, SA, UZ, XK) or its data misses Eid (AL, BA, EG, KZ, MA, MK). Unknown, not holiday-free.",
            "headers": {
              "Cache-Control": {
                "description": "The same answer tomorrow: kept a day like a 200.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=86400, s-maxage=86400, stale-while-revalidate=604800"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_covered": {
                    "summary": "not_covered",
                    "value": {
                      "error": "not_covered",
                      "message": "No public holiday data for AE"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Nager.Date couldn't be reached. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/stats/reliability": {
      "get": {
        "operationId": "getRouteReliability",
        "tags": [
          "History"
        ],
        "summary": "How often a route is listed",
        "description": "Share of recorded daily lists that included a city pair over a lookback window, plus the reverse pair's rate and listing-streak stats. History, not a forecast.",
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Origin city."
            },
            "example": "london"
          },
          {
            "name": "dest",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted here: map them to cities with GET /api/airports.",
            "schema": {
              "type": "string",
              "description": "Destination city."
            },
            "example": "budapest"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Lookback window in days, snapped to the smallest supported window that covers it: 7, 30 or 90 (longer requests use 90). `daysTotal` counts the lists in that window.",
            "schema": {
              "type": "integer",
              "description": "Days.",
              "minimum": 1,
              "maximum": 365,
              "default": 90
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The pair's history.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouteReliability"
                },
                "example": {
                  "originCity": "london",
                  "destCity": "budapest",
                  "daysSeen": 88,
                  "daysTotal": 90,
                  "rate": 0.9778,
                  "lastSeenDate": "2026-11-24",
                  "returnRate": 0.7
                }
              }
            }
          },
          "400": {
            "description": "Missing params or bad days.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "origin and dest query params are required"
                    }
                  },
                  "invalid_days": {
                    "summary": "invalid_days",
                    "value": {
                      "error": "invalid_days",
                      "message": "days must be an integer between 1 and 365"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The pair was never listed in the window.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "No data for london → atlantis"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/stats/top": {
      "get": {
        "operationId": "listTopRoutes",
        "tags": [
          "History"
        ],
        "summary": "Most reliable routes",
        "description": "Routes with the highest listing rate over the window.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "Lookback window in days, snapped to the smallest supported window that covers it: 7, 30 or 90 (longer requests use 90). The response echoes the window used.",
            "schema": {
              "type": "integer",
              "description": "Days.",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            },
            "example": "30"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many routes.",
            "schema": {
              "type": "integer",
              "description": "Count.",
              "minimum": 1,
              "maximum": 200,
              "default": 20
            },
            "example": "10"
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked routes.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TopRoutesResponse"
                },
                "example": {
                  "days": 30,
                  "routes": [
                    {
                      "originCity": "agadir",
                      "destCity": "katowice",
                      "daysSeen": 30,
                      "daysTotal": 30,
                      "rate": 1,
                      "lastSeenDate": "2026-11-24",
                      "returnRate": 0.9667
                    },
                    {
                      "originCity": "agadir",
                      "destCity": "warsaw",
                      "daysSeen": 30,
                      "daysTotal": 30,
                      "rate": 1,
                      "lastSeenDate": "2026-11-24",
                      "returnRate": 0.9667
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad days or limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "invalid_days": {
                    "summary": "invalid_days",
                    "value": {
                      "error": "invalid_days",
                      "message": "days must be an integer between 1 and 365"
                    }
                  },
                  "invalid_limit": {
                    "summary": "invalid_limit",
                    "value": {
                      "error": "invalid_limit",
                      "message": "limit must be an integer between 1 and 200"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/stats/weekday": {
      "get": {
        "operationId": "getWeekdayPattern",
        "tags": [
          "History"
        ],
        "summary": "Listing odds by weekday",
        "description": "How often a pair was listed on each weekday over the last 90 days, gated by Wizz's current timetable: a hint for legs past the current list's window. A weekday with forwardStatus \"not-this-weekday\" has no flights. A pair never listed, or an unknown name, is a 404.",
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted: \"BUD\" is read as a city called bud, which was never listed, so the answer is a 404. Map codes to cities with GET /api/airports first.",
            "schema": {
              "type": "string",
              "description": "Origin city."
            },
            "example": "london"
          },
          {
            "name": "dest",
            "in": "query",
            "required": true,
            "description": "Wizz city name as in `Airport.city`, case- and diacritics-insensitive. IATA codes are not accepted: \"BUD\" is read as a city called bud, which was never listed, so the answer is a 404. Map codes to cities with GET /api/airports first.",
            "schema": {
              "type": "string",
              "description": "Destination city."
            },
            "example": "budapest"
          }
        ],
        "responses": {
          "200": {
            "description": "Seven weekdays, Monday first, each with its timetable gate. Where forwardStatus is \"not-this-weekday\" (up to forwardCoverageEnd), Wizz doesn't fly the pair that weekday: say so instead of quoting the historical rate.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WeekdayPatternResponse"
                },
                "example": {
                  "originCity": "london",
                  "destCity": "budapest",
                  "weekdays": [
                    {
                      "weekday": 0,
                      "label": "Mon",
                      "rate": 1,
                      "total": 51,
                      "seen": 51,
                      "forwardStatus": "flies"
                    },
                    {
                      "weekday": 1,
                      "label": "Tue",
                      "rate": 0.9216,
                      "total": 51,
                      "seen": 47,
                      "forwardStatus": "flies"
                    },
                    {
                      "weekday": 2,
                      "label": "Wed",
                      "rate": 1,
                      "total": 52,
                      "seen": 52,
                      "forwardStatus": "flies"
                    },
                    {
                      "weekday": 3,
                      "label": "Thu",
                      "rate": 1,
                      "total": 39,
                      "seen": 39,
                      "forwardStatus": "flies"
                    },
                    {
                      "weekday": 4,
                      "label": "Fri",
                      "rate": 0.9211,
                      "total": 38,
                      "seen": 35,
                      "forwardStatus": "flies"
                    },
                    {
                      "weekday": 5,
                      "label": "Sat",
                      "rate": 1,
                      "total": 38,
                      "seen": 38,
                      "forwardStatus": "not-this-weekday"
                    },
                    {
                      "weekday": 6,
                      "label": "Sun",
                      "rate": 1,
                      "total": 51,
                      "seen": 51,
                      "forwardStatus": "flies"
                    }
                  ],
                  "forwardWeekdays": "Mon · Tue · Wed · Thu · Fri · Sun",
                  "forwardCoverageEnd": "2026-12-31"
                }
              }
            }
          },
          "400": {
            "description": "Missing params.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "missing_params": {
                    "summary": "missing_params",
                    "value": {
                      "error": "missing_params",
                      "message": "origin and dest query params are required"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No list in the window included the pair, or a name didn't match a Wizz city: compare the names with /api/airports.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "No history for london → atlantis"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/stats/accuracy": {
      "get": {
        "operationId": "getOddsAccuracy",
        "tags": [
          "History"
        ],
        "summary": "How well the odds held up",
        "description": "Daily back-test of the site's listing odds (daily %, \"% tomorrow\" chip, weekday hints) against the lists Wizz published next: hit rate per band, Brier scores and the window scored. The data behind /stats/accuracy. It scores listings, not seats.",
        "responses": {
          "200": {
            "description": "The latest back-test. Quote a band as \"when we showed 80–90%, the route was listed next day 87% of the time\", with its case count.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OddsAccuracyResponse"
                },
                "example": {
                  "series": [
                    {
                      "metric": "next-list",
                      "buckets": [
                        {
                          "bucket": 0,
                          "cases": 3062,
                          "hits": 1266,
                          "predicted": 0.0551,
                          "observed": 0.4135
                        },
                        {
                          "bucket": 1,
                          "cases": 7031,
                          "hits": 2284,
                          "predicted": 0.1488,
                          "observed": 0.3248
                        },
                        {
                          "bucket": 2,
                          "cases": 10285,
                          "hits": 3489,
                          "predicted": 0.2477,
                          "observed": 0.3392
                        },
                        {
                          "bucket": 3,
                          "cases": 12175,
                          "hits": 4881,
                          "predicted": 0.3446,
                          "observed": 0.4009
                        },
                        {
                          "bucket": 4,
                          "cases": 15462,
                          "hits": 8035,
                          "predicted": 0.4456,
                          "observed": 0.5197
                        },
                        {
                          "bucket": 5,
                          "cases": 17514,
                          "hits": 10721,
                          "predicted": 0.546,
                          "observed": 0.6121
                        },
                        {
                          "bucket": 6,
                          "cases": 18814,
                          "hits": 12398,
                          "predicted": 0.644,
                          "observed": 0.659
                        },
                        {
                          "bucket": 7,
                          "cases": 15507,
                          "hits": 11017,
                          "predicted": 0.7397,
                          "observed": 0.7105
                        },
                        {
                          "bucket": 8,
                          "cases": 10052,
                          "hits": 7975,
                          "predicted": 0.8393,
                          "observed": 0.7934
                        },
                        {
                          "bucket": 9,
                          "cases": 5032,
                          "hits": 4456,
                          "predicted": 0.9336,
                          "observed": 0.8855
                        }
                      ],
                      "cases": 114934,
                      "hits": 66522,
                      "brier": 0.2266,
                      "baselineBrier": 0.2438,
                      "calibrationError": 0.067,
                      "evalFrom": "2026-09-26",
                      "evalTo": "2026-11-24",
                      "evalDays": 60,
                      "unseenHits": 135
                    },
                    {
                      "metric": "tomorrow",
                      "buckets": [
                        {
                          "bucket": 0,
                          "cases": 0,
                          "hits": 0,
                          "predicted": null,
                          "observed": null
                        },
                        {
                          "bucket": 1,
                          "cases": 5,
                          "hits": 2,
                          "predicted": 0.1808,
                          "observed": 0.4
                        },
                        {
                          "bucket": 2,
                          "cases": 45,
                          "hits": 34,
                          "predicted": 0.2607,
                          "observed": 0.7556
                        },
                        {
                          "bucket": 3,
                          "cases": 182,
                          "hits": 114,
                          "predicted": 0.3491,
                          "observed": 0.6264
                        },
                        {
                          "bucket": 4,
                          "cases": 484,
                          "hits": 317,
                          "predicted": 0.4481,
                          "observed": 0.655
                        },
                        {
                          "bucket": 5,
                          "cases": 1852,
                          "hits": 1347,
                          "predicted": 0.5532,
                          "observed": 0.7273
                        },
                        {
                          "bucket": 6,
                          "cases": 5045,
                          "hits": 3902,
                          "predicted": 0.656,
                          "observed": 0.7734
                        },
                        {
                          "bucket": 7,
                          "cases": 13095,
                          "hits": 10769,
                          "predicted": 0.755,
                          "observed": 0.8224
                        },
                        {
                          "bucket": 8,
                          "cases": 23584,
                          "hits": 20512,
                          "predicted": 0.8512,
                          "observed": 0.8697
                        },
                        {
                          "bucket": 9,
                          "cases": 20804,
                          "hits": 19111,
                          "predicted": 0.9427,
                          "observed": 0.9186
                        }
                      ],
                      "cases": 65096,
                      "hits": 56108,
                      "brier": 0.1197,
                      "baselineBrier": 0.119,
                      "calibrationError": 0.0447,
                      "evalFrom": "2026-09-26",
                      "evalTo": "2026-11-24",
                      "evalDays": 60,
                      "unseenHits": 1373
                    }
                  ],
                  "historyDays": 90,
                  "computedAt": "2026-11-25T06:12:00Z"
                }
              }
            }
          },
          "404": {
            "description": "The daily stats job hasn't written a back-test yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "not_found": {
                    "summary": "not_found",
                    "value": {
                      "error": "not_found",
                      "message": "No back-test yet: the daily stats job writes one after the morning list once enough lists are recorded."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/airports": {
      "get": {
        "operationId": "listAirports",
        "tags": [
          "Reference"
        ],
        "summary": "Airports and their cities",
        "description": "Every airport PassRadar maps to a Wizz city, with coordinates and timezone. Join on `city` (normalized), never on display names.",
        "responses": {
          "200": {
            "description": "All airports, by IATA code.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 5 minutes, served stale for up to an hour while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=300, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "description": "Airports.",
                  "items": {
                    "$ref": "#/components/schemas/Airport"
                  }
                },
                "example": [
                  {
                    "iata": "ALC",
                    "name": "Alicante International Airport",
                    "city": "alicante",
                    "countryCode": "ES",
                    "lat": 38.2822,
                    "lon": -0.5581,
                    "tz": "Europe/Madrid"
                  },
                  {
                    "iata": "BUD",
                    "name": "Budapest Liszt Ferenc International Airport",
                    "city": "budapest",
                    "countryCode": "HU",
                    "lat": 47.4369,
                    "lon": 19.2556,
                    "tz": "Europe/Budapest"
                  }
                ]
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/network": {
      "get": {
        "operationId": "getNetwork",
        "tags": [
          "Reference"
        ],
        "summary": "Every city ever on an AYCF list",
        "description": "The AYCF network: each city the archive has seen on a daily list, with country, coordinates (null when unmapped), first/last listed dates and whether /routes/{city} exists. Computed once per list. History, not seats.",
        "responses": {
          "200": {
            "description": "The network, by city.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for an hour, served stale for up to a day while it refreshes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=3600, stale-while-revalidate=86400"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkResponse"
                },
                "example": {
                  "cities": [
                    {
                      "city": "alicante",
                      "countryCode": "ES",
                      "lat": 38.2822,
                      "lon": -0.5581,
                      "iatas": [
                        "ALC"
                      ],
                      "firstListed": "2025-03-15",
                      "lastListed": "2026-11-24",
                      "onLatestList": true,
                      "hasRoutesPage": true,
                      "reach": 0.96
                    },
                    {
                      "city": "budapest",
                      "countryCode": "HU",
                      "lat": 47.4369,
                      "lon": 19.2556,
                      "iatas": [
                        "BUD"
                      ],
                      "firstListed": "2025-03-15",
                      "lastListed": "2026-11-24",
                      "onLatestList": true,
                      "hasRoutesPage": true,
                      "reach": 1
                    },
                    {
                      "city": "madinah",
                      "countryCode": "",
                      "lat": null,
                      "lon": null,
                      "iatas": [],
                      "firstListed": "2026-10-05",
                      "lastListed": "2026-11-20",
                      "onLatestList": false,
                      "hasRoutesPage": false,
                      "reach": 0.09
                    }
                  ],
                  "countryCount": 2,
                  "snapshotDate": "2026-11-24",
                  "historyFrom": "2025-03-15",
                  "generatedAt": "2026-11-24T08:00:00Z",
                  "demo": false
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/guide": {
      "get": {
        "operationId": "getCityGuide",
        "tags": [
          "Reference"
        ],
        "summary": "City photos, intros and typical weather",
        "description": "Every city's photo (Wikimedia Commons, with its credit), Wikipedia intro and typical weather by month, keyed by normalized city. One static answer for all cities: fetch it once and look cities up locally.",
        "responses": {
          "200": {
            "description": "The guide, by city.",
            "headers": {
              "Cache-Control": {
                "description": "Kept a day by browsers and at the edge, served stale for up to a week while it refreshes. A degraded answer: a minute, never stale.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=86400, s-maxage=86400, stale-while-revalidate=604800"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CityGuideResponse"
                },
                "example": {
                  "climateYears": [
                    2022,
                    2023,
                    2024,
                    2025
                  ],
                  "cities": [
                    {
                      "city": "alicante",
                      "countryCode": "ES",
                      "photo": {
                        "title": "Alicante",
                        "wikiUrl": "https://en.wikipedia.org/wiki/Alicante",
                        "intro": "Alicante, in Spanish, or Alacant, in Valencian, is a city and municipality in the Valencian Community, Spain. It is the capital of the province of Alicante and a historical Mediterranean port.",
                        "image": {
                          "src": "https://thumb.wikimedia.org/wikipedia/commons/thumb/c/cc/Playa-del-Postiguet-Beach-Alicante.jpg/1280px-Playa-del-Postiguet-Beach-Alicante.jpg",
                          "width": 1280,
                          "height": 735,
                          "filePage": "https://commons.wikimedia.org/wiki/File:Playa-del-Postiguet-Beach-Alicante.jpg",
                          "author": "acediscovery",
                          "license": "CC BY 4.0",
                          "licenseUrl": "https://creativecommons.org/licenses/by/4.0"
                        }
                      },
                      "climate": {
                        "highC": [
                          17,
                          18,
                          20,
                          22,
                          24,
                          29,
                          32,
                          33,
                          29,
                          26,
                          22,
                          18
                        ],
                        "lowC": [
                          8,
                          8,
                          11,
                          12,
                          14,
                          20,
                          23,
                          23,
                          20,
                          17,
                          13,
                          9
                        ],
                        "rainyDays": [
                          2,
                          1,
                          8,
                          5,
                          4,
                          1,
                          1,
                          1,
                          6,
                          4,
                          2,
                          4
                        ],
                        "rainMm": [
                          12,
                          10,
                          78,
                          37,
                          24,
                          11,
                          5,
                          6,
                          44,
                          44,
                          10,
                          27
                        ]
                      }
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/feed": {
      "get": {
        "operationId": "getChangesFeed",
        "tags": [
          "Feeds"
        ],
        "summary": "RSS: daily route changes",
        "description": "RSS 2.0 feed of daily route changes: one item for each of the last 7 lists, skipping lists with no changes, naming up to 30 new and 30 dropped pairs with links to their route pages.",
        "responses": {
          "200": {
            "description": "RSS 2.0 document.",
            "headers": {
              "Cache-Control": {
                "description": "Cached at the edge for 30 minutes.",
                "schema": {
                  "type": "string"
                },
                "example": "public, s-maxage=1800, stale-while-revalidate=3600"
              }
            },
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                },
                "example": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\">\n  <channel>\n    <title>PassRadar — daily route changes</title>\n    <link>https://passradar.app</link>\n    <item>\n      <title>AYCF 2026-11-24: +167 new, −187 dropped since 2026-11-23</title>\n      <link>https://passradar.app/stats?date=2026-11-24</link>\n      …\n    </item>\n  </channel>\n</rss>"
              }
            }
          },
          "503": {
            "description": "The data store is temporarily unreachable. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                },
                "examples": {
                  "unavailable": {
                    "summary": "unavailable",
                    "value": {
                      "error": "unavailable",
                      "message": "Data is temporarily unavailable. Please try again shortly."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/og/trip": {
      "get": {
        "operationId": "getTripCardImage",
        "tags": [
          "Feeds"
        ],
        "summary": "Share card for a trip plan",
        "description": "A 1200×630 PNG summarizing a multi-leg trip, the image behind shared /explore/t/… trip links. Unknown or malformed legs are dropped; anything unusable falls back to the generic card, always with status 200.",
        "parameters": [
          {
            "name": "trip",
            "in": "query",
            "required": false,
            "description": "Comma-separated legs `origin-dest@YYYY-MM-DD`, IATA codes or city slugs (case-insensitive, spaces as _). Each leg must start where the previous one ended.",
            "schema": {
              "type": "string",
              "description": "Trip legs."
            },
            "example": "bud-alc@2026-12-04,alc-bud@2026-12-06"
          }
        ],
        "responses": {
          "200": {
            "description": "PNG image, 1200×630.",
            "headers": {
              "Cache-Control": {
                "description": "The image renderer's default: revalidated on every request.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=0, must-revalidate"
              }
            },
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/png"
                }
              }
            }
          }
        }
      }
    },
    "/api/og/passport": {
      "get": {
        "operationId": "getPassportCardImage",
        "tags": [
          "Feeds"
        ],
        "summary": "Share card for a Passport",
        "description": "A 1200×630 PNG of Passport totals over a map of every Wizz city, lit where captured. Built only from the query: nothing is stored. Missing or inconsistent numbers draw the generic card, always with status 200.",
        "parameters": [
          {
            "name": "c",
            "in": "query",
            "required": false,
            "description": "Cities captured on the network.",
            "schema": {
              "type": "integer",
              "description": "Captured cities.",
              "minimum": 0
            },
            "example": "37"
          },
          {
            "name": "t",
            "in": "query",
            "required": false,
            "description": "Network size (must be ≥ c and > 0).",
            "schema": {
              "type": "integer",
              "description": "Network cities.",
              "minimum": 1
            },
            "example": "171"
          },
          {
            "name": "k",
            "in": "query",
            "required": false,
            "description": "Countries captured.",
            "schema": {
              "type": "integer",
              "description": "Countries.",
              "minimum": 0
            },
            "example": "18"
          },
          {
            "name": "y",
            "in": "query",
            "required": false,
            "description": "Cities this pass year (≤ c), optional.",
            "schema": {
              "type": "integer",
              "description": "Pass-year cities.",
              "minimum": 0
            },
            "example": "14"
          },
          {
            "name": "h",
            "in": "query",
            "required": false,
            "description": "Home airport code, drawn as a ring, optional.",
            "schema": {
              "type": "string",
              "description": "IATA code.",
              "pattern": "^[A-Z0-9]{3}$"
            },
            "example": "BUD"
          },
          {
            "name": "p",
            "in": "query",
            "required": false,
            "description": "Dot-separated airport codes of the captured cities (one per city, up to 220).",
            "schema": {
              "type": "string",
              "description": "Codes."
            },
            "example": "LTN.FCO.ATH"
          }
        ],
        "responses": {
          "200": {
            "description": "PNG image, 1200×630.",
            "headers": {
              "Cache-Control": {
                "description": "A pure function of the URL: cached for an hour in browsers and a day at the edge.",
                "schema": {
                  "type": "string"
                },
                "example": "public, max-age=3600, s-maxage=86400"
              }
            },
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "image/png"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Airport": {
        "type": "object",
        "description": "An airport that serves a Wizz city.",
        "properties": {
          "iata": {
            "type": "string",
            "description": "IATA airport code, e.g. \"BUD\".",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "name": {
            "type": "string",
            "description": "Airport name."
          },
          "city": {
            "type": "string",
            "description": "City this airport belongs to. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "countryCode": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code."
          },
          "lat": {
            "type": "number",
            "description": "Latitude, degrees."
          },
          "lon": {
            "type": "number",
            "description": "Longitude, degrees."
          },
          "tz": {
            "type": "string",
            "description": "IANA timezone, e.g. \"Europe/Warsaw\"."
          }
        },
        "required": [
          "iata",
          "name",
          "city",
          "countryCode",
          "lat",
          "lon",
          "tz"
        ]
      },
      "CityPair": {
        "type": "object",
        "description": "A directional city pair, exactly as Wizz lists it.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          }
        },
        "required": [
          "originCity",
          "destCity"
        ]
      },
      "SnapshotInfo": {
        "type": "object",
        "description": "One daily AYCF list as PassRadar recorded it.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Internal snapshot id."
          },
          "source": {
            "type": "string",
            "description": "live = fetched from multipass.wizzair.com on the day; archive = historical backfill.",
            "enum": [
              "live",
              "archive"
            ]
          },
          "publishedAt": {
            "type": "string",
            "description": "The \"Last run\" time printed inside the PDF.",
            "format": "date-time"
          },
          "snapshotDate": {
            "type": "string",
            "description": "Calendar date of the list (Europe/Budapest).",
            "format": "date"
          },
          "validFrom": {
            "type": "string",
            "description": "Start of the departure window the list covers.",
            "format": "date-time"
          },
          "validTo": {
            "type": "string",
            "description": "End of the window: 23:59:59 CET/CEST three days after publication.",
            "format": "date-time"
          },
          "fetchedAt": {
            "type": "string",
            "description": "When PassRadar fetched the PDF.",
            "format": "date-time"
          },
          "pairCount": {
            "type": "integer",
            "description": "Number of directional city pairs on the list."
          }
        },
        "required": [
          "id",
          "source",
          "publishedAt",
          "snapshotDate",
          "validFrom",
          "validTo",
          "fetchedAt",
          "pairCount"
        ]
      },
      "RouteReliability": {
        "type": "object",
        "description": "How often a city pair appeared on the daily list over a lookback window. Historical presence, not a seat forecast. Two cases make `rate` a poor guide to a later list: a pair younger than the window (it carries `firstSeenDate` and `listsSinceFirstSeen`) and a pair that has dropped off (`lastSeenDate` well before the current list).",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "daysSeen": {
            "type": "integer",
            "description": "Days the pair was listed in the window."
          },
          "daysTotal": {
            "type": "integer",
            "description": "Days with any recorded list in the window."
          },
          "rate": {
            "type": "number",
            "description": "daysSeen / daysTotal.",
            "minimum": 0,
            "maximum": 1
          },
          "lastSeenDate": {
            "type": "string",
            "description": "Most recent list date that included the pair. Ten or more days before the current list (`lastSnapshot.snapshotDate`) means the pair has dropped off, for a seasonal break or for good: PassRadar then shows \"last listed <date>\" instead of `rate`, and pairs gone that long rarely return within a week.",
            "format": "date"
          },
          "returnRate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Same rate for the reverse pair (the way back); null if never listed.",
            "minimum": 0,
            "maximum": 1
          },
          "survivalNextDay": {
            "type": [
              "number",
              "null"
            ],
            "description": "P(listed tomorrow | listed today), gap-aware; null or absent when there is too little data.",
            "minimum": 0,
            "maximum": 1
          },
          "avgRunDays": {
            "type": [
              "number",
              "null"
            ],
            "description": "Mean length, in days, of consecutive listing streaks."
          },
          "firstSeenDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "First list inside the lookback window that carried the pair. Present only for a pair on the lists only since a list at least 7 lists after the window's start, whose `rate` counts the lists before that. Not \"first listed\": it may be new, or back after a break, and most such pairs were listed before the window. Absent means judge it on the whole window. 90-day windows only.",
            "format": "date"
          },
          "listsSinceFirstSeen": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Lists recorded from `firstSeenDate` through the window's end (at most `daysTotal`); present with `firstSeenDate`. PassRadar's outlook for such a pair is (daysSeen + 1) / (listsSinceFirstSeen + 2) rather than `rate`."
          },
          "reverseOutlook": {
            "description": "One-way search results only: the way back's (the reverse pair's) own outlook, present when it differs from `returnRate` because the reverse pair is younger than the window or has dropped off the lists. Absent means `returnRate` stands as it is. An estimate of later lists, not a seat.",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "rate": {
                    "type": "number",
                    "description": "Forward-looking listing chance: (seen + 1) / (lists + 2) on a since-first basis, else the window share; × 0.6 while fading, × 0.25 once dormant.",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "basis": {
                    "type": "string",
                    "description": "window = the whole lookback window; since-first = the lists since the reverse pair first appeared inside it.",
                    "enum": [
                      "window",
                      "since-first"
                    ]
                  },
                  "recency": {
                    "type": "string",
                    "description": "current = listed within the last 3 days; fading = off the lists 4–9 days; dormant = 10 or more (PassRadar then shows \"last listed <date>\").",
                    "enum": [
                      "current",
                      "fading",
                      "dormant"
                    ]
                  },
                  "seen": {
                    "type": "integer",
                    "description": "Lists that carried the reverse pair within the basis."
                  },
                  "lists": {
                    "type": "integer",
                    "description": "Lists in the basis."
                  },
                  "sinceDate": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "First list of a since-first basis; null for the window basis.",
                    "format": "date"
                  },
                  "lastSeenDate": {
                    "type": "string",
                    "description": "The reverse pair's most recent list.",
                    "format": "date"
                  },
                  "daysUnlisted": {
                    "type": "integer",
                    "description": "Calendar days from `lastSeenDate` to the current list."
                  }
                },
                "required": [
                  "rate",
                  "basis",
                  "recency",
                  "seen",
                  "lists",
                  "sinceDate",
                  "lastSeenDate",
                  "daysUnlisted"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "originCity",
          "destCity",
          "daysSeen",
          "daysTotal",
          "rate",
          "lastSeenDate",
          "returnRate"
        ]
      },
      "FlightOption": {
        "type": "object",
        "description": "A scheduled departure on a listed route. Times are best-effort, from Wizz's public timetable. Being listed is not a seat guarantee: Wizz confirms AYCF seats only at booking.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable key: `{originIata}-{destIata}-{departure epoch seconds}`."
          },
          "originIata": {
            "type": "string",
            "description": "Departure airport.",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "destIata": {
            "type": "string",
            "description": "Arrival airport.",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "departureUtc": {
            "type": "string",
            "description": "Scheduled departure, UTC.",
            "format": "date-time"
          },
          "departureLocal": {
            "type": "string",
            "description": "Scheduled departure, local wall-clock time without offset.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "arrivalUtc": {
            "type": "string",
            "description": "Arrival, UTC. An estimate when arrivalIsEstimated is true.",
            "format": "date-time"
          },
          "arrivalLocal": {
            "type": "string",
            "description": "Arrival, local wall-clock time without offset. An estimate when arrivalIsEstimated is true.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "durationSec": {
            "type": "integer",
            "description": "Flight duration in seconds. An estimate when arrivalIsEstimated is true."
          },
          "timesSource": {
            "type": "string",
            "description": "timetable = departure time from Wizz's public timetable; estimated = derived.",
            "enum": [
              "timetable",
              "estimated"
            ]
          },
          "arrivalIsEstimated": {
            "type": "boolean",
            "description": "True when arrival and duration are estimates rather than schedule data (typically 10 min early to 40 min late)."
          },
          "feeEuroCents": {
            "type": "integer",
            "description": "AYCF flat fee in euro cents (999)."
          },
          "bookingUrl": {
            "type": "string",
            "description": "Where AYCF bookings are made (multipass.wizzair.com).",
            "format": "uri"
          },
          "firstSeenAt": {
            "type": "string",
            "description": "When PassRadar first saw this departure.",
            "format": "date-time"
          },
          "lastSeenAt": {
            "type": "string",
            "description": "When PassRadar last confirmed it in the timetable.",
            "format": "date-time"
          },
          "stillValid": {
            "type": "boolean",
            "description": "False once the departure has dropped out of the current list window."
          }
        },
        "required": [
          "id",
          "originIata",
          "destIata",
          "departureUtc",
          "departureLocal",
          "arrivalUtc",
          "arrivalLocal",
          "durationSec",
          "timesSource",
          "arrivalIsEstimated",
          "feeEuroCents",
          "bookingUrl",
          "firstSeenAt",
          "lastSeenAt",
          "stillValid"
        ]
      },
      "DayTripOption": {
        "type": "object",
        "description": "Earliest same-day out-and-back: the return leaves at least 4 hours after the outbound lands, on the same local date.",
        "properties": {
          "outDepartureLocal": {
            "type": "string",
            "description": "Outbound departure, local wall-clock time.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "backDepartureLocal": {
            "type": "string",
            "description": "Return departure, local wall-clock time, same local date.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          }
        },
        "required": [
          "outDepartureLocal",
          "backDepartureLocal"
        ]
      },
      "RouteResult": {
        "type": "object",
        "description": "A listed city pair with whatever flight times are known. `flights` can be empty: Wizz publishes routes first and schedules follow, so a route without flights is normal, not an error. `closedFlightCount` tells \"booking closed\" apart from \"times pending\".",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "originAirports": {
            "type": "array",
            "description": "Airports serving the origin city.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "destAirports": {
            "type": "array",
            "description": "Airports serving the destination city.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "validFrom": {
            "type": "string",
            "description": "Start of the list's departure window.",
            "format": "date-time"
          },
          "validTo": {
            "type": "string",
            "description": "End of the list's departure window.",
            "format": "date-time"
          },
          "reliability": {
            "description": "90-day listing history; null when unknown.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouteReliability"
              },
              {
                "type": "null"
              }
            ]
          },
          "flights": {
            "type": "array",
            "description": "Known departures that can still be booked (at least 3 hours out), soonest first. May be empty.",
            "items": {
              "$ref": "#/components/schemas/FlightOption"
            }
          },
          "dayTrip": {
            "description": "One-way searches only: earliest same-day out-and-back, if the timetable allows one.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/DayTripOption"
              },
              {
                "type": "null"
              }
            ]
          },
          "closedFlightCount": {
            "type": "integer",
            "description": "Known departures of this pair on the current list that are already past the 3-hour booking cutoff (or already departed), so left out of `flights`. With `flights` empty, a value above 0 means booking has closed, not that times are pending. One-way search only; present only when above 0.",
            "minimum": 1
          }
        },
        "required": [
          "originCity",
          "destCity",
          "originAirports",
          "destAirports",
          "validFrom",
          "validTo",
          "reliability",
          "flights"
        ]
      },
      "ConnectionLayover": {
        "type": "object",
        "description": "One transfer inside a self-transfer itinerary: the inbound leg lands and the outbound leg leaves from the same airport.",
        "properties": {
          "city": {
            "type": "string",
            "description": "Transfer city. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "iata": {
            "type": "string",
            "description": "Transfer airport.",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "countryCode": {
            "type": "string",
            "description": "Country of the transfer airport (\"\" if unknown)."
          },
          "minutes": {
            "type": "integer",
            "description": "Inbound arrival to outbound departure, minutes, from published or estimated times (an estimate when arrivalIsEstimated is true)."
          },
          "requiredMinutes": {
            "type": "integer",
            "description": "The minimum this transfer had to clear: the requested minimum layover (default 120), + 60 where passport control applies, + 10 after an estimated arrival.",
            "minimum": 120
          },
          "passportControl": {
            "type": "boolean",
            "description": "Passport control is likely here: the airport is outside Schengen, or the itinerary crosses the Schengen border at it. Derived from airport countries."
          },
          "arrivalIsEstimated": {
            "type": "boolean",
            "description": "The inbound arrival is an estimate, so `minutes` is too."
          },
          "overnight": {
            "type": "boolean",
            "description": "An overnight layover: it crosses local midnight at the transfer airport, or the inbound lands between 00:00 and 05:00 local. Only returned when the search set allowOvernight."
          }
        },
        "required": [
          "city",
          "iata",
          "countryCode",
          "minutes",
          "requiredMinutes",
          "passportControl",
          "arrivalIsEstimated",
          "overnight"
        ]
      },
      "ConnectionOption": {
        "type": "object",
        "description": "A self-transfer itinerary: 2 legs (1 stop) or 3 legs (2 stops), each a separate AYCF booking (€9.99 each), every transfer at one airport. Not a protected connection: if a leg is late, Wizz owes nothing on the next one. `leg1`, `leg2`, `viaCity` and `layoverMinutes` describe the first transfer only; read `legs`, `cities` and `layovers` for 2-stop itineraries. Every leg was listed and bookable when the search ran: at least 3 hours out and inside the current list's window (`validTo`).",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "viaCity": {
            "type": "string",
            "description": "First transfer city (leg 1 lands and leg 2 leaves from the same airport). Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "leg1": {
            "$ref": "#/components/schemas/FlightOption",
            "description": "First leg."
          },
          "leg2": {
            "$ref": "#/components/schemas/FlightOption",
            "description": "Second leg (the last one only for 1 stop: see `legs`)."
          },
          "layoverMinutes": {
            "type": "integer",
            "description": "Minutes of the first transfer, leg 1 arrival to leg 2 departure, from published or estimated times. Every transfer: `layovers`."
          },
          "totalDurationSec": {
            "type": "integer",
            "description": "First departure to final arrival, seconds (an estimate when the last arrival is)."
          },
          "totalFeeEuroCents": {
            "type": "integer",
            "description": "Every leg's fee: 1998 for 1 stop, 2997 for 2."
          },
          "originCountryCode": {
            "type": "string",
            "description": "Country of the first departure airport (\"\" if unknown)."
          },
          "viaCountryCode": {
            "type": "string",
            "description": "Country of the first transfer airport (\"\" if unknown). Per transfer: layovers[].countryCode and passportControl."
          },
          "destCountryCode": {
            "type": "string",
            "description": "Country of the final arrival airport (\"\" if unknown)."
          },
          "leg1Reliability": {
            "description": "90-day history of leg 1's city pair; null if unknown.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouteReliability"
              },
              {
                "type": "null"
              }
            ]
          },
          "leg2Reliability": {
            "description": "90-day history of leg 2's city pair; null if unknown.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouteReliability"
              },
              {
                "type": "null"
              }
            ]
          },
          "legs": {
            "type": "array",
            "description": "Every leg in flying order: 2 (1 stop) or 3 (2 stops).",
            "items": {
              "$ref": "#/components/schemas/FlightOption"
            }
          },
          "cities": {
            "type": "array",
            "description": "Cities in flying order: origin, each transfer city, destination.",
            "items": {
              "type": "string",
              "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
            }
          },
          "stops": {
            "type": "integer",
            "description": "Number of transfers: legs.length − 1.",
            "minimum": 1,
            "maximum": 2
          },
          "layovers": {
            "type": "array",
            "description": "One entry per transfer, in order.",
            "items": {
              "$ref": "#/components/schemas/ConnectionLayover"
            }
          },
          "legReliabilities": {
            "type": "array",
            "description": "Aligned with `legs`.",
            "items": {
              "description": "90-day history of that leg's city pair; null if unknown.",
              "oneOf": [
                {
                  "$ref": "#/components/schemas/RouteReliability"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "reliabilityEstimate": {
            "type": [
              "number",
              "null"
            ],
            "description": "ESTIMATE: the legs' 90-day listing rates multiplied, roughly how often every leg is on the same list. Not a seat probability; null when any leg's history is unknown.",
            "minimum": 0,
            "maximum": 1
          },
          "directListed": {
            "type": "boolean",
            "description": "The origin → destination pair is also on today's list as a direct route, so this itinerary is an alternative, not a new destination. Always set by current servers."
          }
        },
        "required": [
          "originCity",
          "viaCity",
          "destCity",
          "leg1",
          "leg2",
          "layoverMinutes",
          "totalDurationSec",
          "totalFeeEuroCents",
          "originCountryCode",
          "viaCountryCode",
          "destCountryCode",
          "leg1Reliability",
          "leg2Reliability",
          "legs",
          "cities",
          "stops",
          "layovers",
          "legReliabilities",
          "reliabilityEstimate"
        ]
      },
      "ConnectionRules": {
        "type": "object",
        "description": "The transfer rules a search composed its connections with, to explain each layover's minimum.",
        "properties": {
          "maxLegs": {
            "type": "integer",
            "description": "2 = up to 1 stop, 3 = up to 2 stops.",
            "enum": [
              2,
              3
            ]
          },
          "minLayoverMin": {
            "type": "integer",
            "description": "The requested minimum layover, minutes, before the buffers below.",
            "minimum": 120,
            "maximum": 1440
          },
          "maxLayoverMin": {
            "type": "integer",
            "description": "The maximum layover applied, minutes: the request's, or its default.",
            "minimum": 120,
            "maximum": 1440
          },
          "allowOvernight": {
            "type": "boolean",
            "description": "Whether overnight layovers were allowed."
          },
          "passportControlExtraMin": {
            "type": "integer",
            "description": "Minutes added to the minimum where passport control applies (60)."
          },
          "estimatedArrivalBufferMin": {
            "type": "integer",
            "description": "Minutes added to the minimum after an estimated arrival (10)."
          }
        },
        "required": [
          "maxLegs",
          "minLayoverMin",
          "maxLayoverMin",
          "allowOvernight",
          "passportControlExtraMin",
          "estimatedArrivalBufferMin"
        ]
      },
      "NearbyListedCity": {
        "type": "object",
        "description": "A nearby city that does have routes on the current list.",
        "properties": {
          "city": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "iata": {
            "type": "string",
            "description": "Its airport closest to the unlisted city.",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "distanceKm": {
            "type": "integer",
            "description": "Great-circle distance between the closest airports, km, rounded to 5.",
            "minimum": 5
          },
          "routeCount": {
            "type": "integer",
            "description": "Routes on the current list departing it (for an unlisted origin) or arriving there (for an unlisted destination).",
            "minimum": 1
          },
          "reach": {
            "type": "object",
            "description": "Only when the request also named the other side (origins for an unlisted destination, destinations for an unlisted origin): what the same search, with the same filters, answers with this city in place of the unlisted one. At least one count is above zero.",
            "properties": {
              "routes": {
                "type": "integer",
                "description": "Direct routes.",
                "minimum": 0
              },
              "connections": {
                "type": "integer",
                "description": "Self-transfer itineraries (0 unless the search allows stops).",
                "minimum": 0
              },
              "trips": {
                "type": "integer",
                "description": "Return trips (return mode only).",
                "minimum": 0
              }
            },
            "required": [
              "routes",
              "connections",
              "trips"
            ]
          }
        },
        "required": [
          "city",
          "iata",
          "distanceKm",
          "routeCount"
        ]
      },
      "UnlistedCityHint": {
        "type": "object",
        "description": "A city the request named that has no route at all on the current list in that role, whatever the filters. Say so plainly (\"no AYCF departures from Vienna on today's list\") and offer `nearby`; widening the filters can't help.",
        "properties": {
          "city": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "role": {
            "type": "string",
            "description": "origin: no departures from it on the list. destination: no arrivals into it.",
            "enum": [
              "origin",
              "destination"
            ]
          },
          "lastListedDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest list in the last 90 days with such a route; null when none had one.",
            "format": "date"
          },
          "nearby": {
            "type": "array",
            "description": "Up to 4 cities within 300 km with routes in the same role, closest first. Can be empty.",
            "items": {
              "$ref": "#/components/schemas/NearbyListedCity"
            }
          },
          "nearbyReachable": {
            "type": "boolean",
            "description": "True when the request also named the other side: `nearby` then keeps only cities the same search answers something for, each with `reach`, so it can be empty even with listed cities close by."
          }
        },
        "required": [
          "city",
          "role",
          "lastListedDate",
          "nearby"
        ]
      },
      "MissingPairHint": {
        "type": "object",
        "description": "A requested origin → destination pair that isn't on the current list, with its listing history.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "lastSeenDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest list that carried the pair. Older than the 90-day window (then `rate` is null) only for a narrow search naming at most two missing pairs, which is looked up in the full history; null when no list in the window (or, for a narrow search, in the history) did.",
            "format": "date"
          },
          "rate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Share of the last 90 days' lists that carried it (a listing rate, not seat odds); null when it was never listed.",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "originCity",
          "destCity",
          "lastSeenDate",
          "rate"
        ]
      },
      "ReturnOutlook": {
        "type": "object",
        "description": "Historical odds for a return leg that can't be booked yet (it lies past the current list's window, `validTo`), checked against Wizz's current timetable. An estimate from past lists, never a promise. When `forwardStatus` is \"not-this-weekday\", say there are no flights that day instead of quoting `rate`.",
        "properties": {
          "date": {
            "type": "string",
            "description": "The return date the estimate refers to.",
            "format": "date"
          },
          "weekday": {
            "type": "string",
            "description": "English weekday name of that date, e.g. \"Sunday\"."
          },
          "rate": {
            "type": "number",
            "description": "seenDays / sampleDays: share of the last 90 days' lists whose departure window covers that weekday that listed the reverse pair.",
            "minimum": 0,
            "maximum": 1
          },
          "sampleDays": {
            "type": "integer",
            "description": "Lists in the denominator."
          },
          "seenDays": {
            "type": "integer",
            "description": "Of those, lists that listed the reverse pair."
          },
          "source": {
            "type": "string",
            "description": "weekday = lists covering that weekday; overall = all of the last 90 days' lists (used when fewer than 6 lists cover the weekday).",
            "enum": [
              "weekday",
              "overall"
            ]
          },
          "forwardStatus": {
            "$ref": "#/components/schemas/WeekendForwardStatus",
            "description": "Does the current timetable show the reverse pair (destination → origin) flying on that weekday?"
          },
          "forwardWeekdays": {
            "type": [
              "string",
              "null"
            ],
            "description": "Weekdays Wizz currently flies destination → origin, e.g. \"Mon · Wed · Fri\"; null when unknown."
          }
        },
        "required": [
          "date",
          "weekday",
          "rate",
          "sampleDays",
          "seenDays",
          "source",
          "forwardStatus",
          "forwardWeekdays"
        ]
      },
      "TripResult": {
        "type": "object",
        "description": "A return-trip pairing: a real outbound plus EITHER a real inbound (both inside the window) OR a `returnOutlook` estimate. Exactly one of `inbound` / `returnOutlook` is non-null.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "originAirports": {
            "type": "array",
            "description": "Airports serving the origin city.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "destAirports": {
            "type": "array",
            "description": "Airports serving the destination city.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "outbound": {
            "$ref": "#/components/schemas/FlightOption",
            "description": "Outbound departure inside the current window."
          },
          "inbound": {
            "description": "Real inbound departure, or null when only an outlook exists.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FlightOption"
              },
              {
                "type": "null"
              }
            ]
          },
          "returnOutlook": {
            "description": "Return estimate, or null when a real inbound is paired.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReturnOutlook"
              },
              {
                "type": "null"
              }
            ]
          },
          "stayHours": {
            "type": [
              "number",
              "null"
            ],
            "description": "Hours between outbound arrival and inbound departure; null for outlook trips."
          },
          "totalFeeEuroCents": {
            "type": "integer",
            "description": "Fees of the bookable legs: 1998 for a real pair, 999 outbound-only."
          },
          "reliability": {
            "description": "History of the outbound pair (includes returnRate).",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouteReliability"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "originCity",
          "destCity",
          "originAirports",
          "destAirports",
          "outbound",
          "inbound",
          "returnOutlook",
          "stayHours",
          "totalFeeEuroCents",
          "reliability"
        ]
      },
      "SearchRequest": {
        "type": "object",
        "description": "Search body. Every field is optional, but `{}` returns the whole current list (hundreds of kilobytes): filter by origin and set `limit`.",
        "properties": {
          "origins": {
            "type": "array",
            "description": "Departing from any of these. IATA codes and/or city names, case- and diacritics-insensitive. Native, foreign and airport names resolve too (\"Warszawa\", \"Wien\", \"Malpensa\" → warsaw, vienna, milan). Unknown values match nothing and come back in unknownTokens.",
            "items": {
              "type": "string",
              "description": "IATA code or city name."
            }
          },
          "destinations": {
            "type": "array",
            "description": "Arriving at any of these, resolved like origins. Empty or omitted means anywhere.",
            "items": {
              "type": "string",
              "description": "IATA code or city name."
            }
          },
          "departFromUtc": {
            "type": "string",
            "description": "Only include flights departing at or after this instant. The server raises it to now + 3 hours either way: flights past the booking cutoff are never returned (see RouteResult.closedFlightCount). UTC with a Z suffix, e.g. \"2026-11-27T06:00:00Z\"; offsets such as +01:00 are not converted.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
          },
          "departToUtc": {
            "type": "string",
            "description": "Only include flights departing before this instant. UTC with a Z suffix, e.g. \"2026-11-27T06:00:00Z\"; offsets such as +01:00 are not converted.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
          },
          "includeUnenriched": {
            "type": "boolean",
            "description": "Return routes that have no known flight times (default true). Those routes come back with `flights: []`, which is normal.",
            "default": true
          },
          "sort": {
            "type": "string",
            "description": "soonest: earliest known departure first, routes without times last. reliability: highest 90-day listing rate first (connections: the product of the legs' rates, an estimate). duration: shortest travel time first. stops: fewest stops first (connections; direct routes sort as soonest).",
            "enum": [
              "soonest",
              "reliability",
              "duration",
              "stops"
            ],
            "default": "soonest"
          },
          "limit": {
            "type": "integer",
            "description": "Page size. Keep it to 10–20 for assistants and tool calls: every route carries its airports and departures.",
            "minimum": 1,
            "maximum": 500,
            "default": 200
          },
          "offset": {
            "type": "integer",
            "description": "Page offset.",
            "minimum": 0,
            "default": 0
          },
          "tripMode": {
            "type": "string",
            "description": "one_way fills routes. return fills trips instead (routes stays empty) and requires at least one origin.",
            "enum": [
              "one_way",
              "return"
            ],
            "default": "one_way"
          },
          "returnFromUtc": {
            "type": "string",
            "description": "Return mode: only inbound legs departing at or after this instant. UTC with a Z suffix, e.g. \"2026-11-27T06:00:00Z\"; offsets such as +01:00 are not converted.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
          },
          "returnToUtc": {
            "type": "string",
            "description": "Return mode: only inbound legs departing before this instant. UTC with a Z suffix, e.g. \"2026-11-27T06:00:00Z\"; offsets such as +01:00 are not converted.",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$"
          },
          "minStayHours": {
            "type": "number",
            "description": "Return mode: minimum hours between landing and the flight back.",
            "minimum": 0,
            "maximum": 1440,
            "default": 6
          },
          "maxStayHours": {
            "type": "number",
            "description": "Return mode: maximum hours between landing and the flight back.",
            "minimum": 0,
            "maximum": 1440,
            "default": 168
          },
          "maxLegs": {
            "type": "integer",
            "description": "One-way only. 2 also composes 1-stop self-transfers into `connections`; 3 adds 2-stop ones and needs at least one origin or destination. Every leg is listed today and bookable now. Up to 120 connections, not limited by `limit`, so pair it with a destination.",
            "enum": [
              1,
              2,
              3
            ],
            "default": 1
          },
          "minLayoverMin": {
            "type": "integer",
            "description": "Connections: minimum layover, minutes. Each transfer must also clear +60 where passport control applies and +10 after an estimated arrival (ConnectionLayover.requiredMinutes).",
            "minimum": 120,
            "maximum": 1440,
            "default": 120
          },
          "maxLayoverMin": {
            "type": "integer",
            "description": "Connections: maximum layover, minutes, compared with the layover itself; not below minLayoverMin. Default: the larger of 480 and minLayoverMin + 120. Leave headroom above the minimum: transfers must also clear their buffers.",
            "minimum": 120,
            "maximum": 1440
          },
          "allowOvernight": {
            "type": "boolean",
            "description": "Connections: also allow overnight layovers (crossing local midnight at the transfer airport, or landing there before 05:00), flagged `overnight`. Default false: daytime transfers only.",
            "default": false
          },
          "departHourFrom": {
            "type": "integer",
            "description": "Start of a local departure-hour window [departHourFrom, departHourTo) at the origin airport; from > to wraps past midnight (22 to 6), equal values are rejected. Filters direct flights and a connection's first leg (return mode: the outbound flight). Routes whose known flights all fall outside are dropped; routes without times stay unless includeUnenriched is false.",
            "minimum": 0,
            "maximum": 23,
            "default": 0
          },
          "departHourTo": {
            "type": "integer",
            "description": "End of the local departure-hour window (exclusive): see departHourFrom.",
            "minimum": 1,
            "maximum": 24,
            "default": 24
          },
          "maxDurationMin": {
            "type": "integer",
            "description": "Maximum travel time, minutes: a direct flight's duration, or a connection's first departure to final arrival (published or estimated times; return mode: the outbound flight). Routes whose known flights are all longer are dropped; routes without times stay unless includeUnenriched is false.",
            "minimum": 30,
            "maximum": 4320
          },
          "arriveHourFrom": {
            "type": "integer",
            "description": "Start of a local ARRIVAL-hour window [arriveHourFrom, arriveHourTo) at the destination airport (\"land between 14 and 20\"; arriveHourTo alone = \"land before\"), on the local date of the departure (a connection's first leg): an arrival after local midnight is a day later, so a 21:30 → 00:55 flight never lands \"before 20\". from > to wraps past midnight into the night after the departure day, equal values are rejected. Filters direct flights and a connection's final leg (return mode: the outbound flight). Arrivals are estimates, so an estimated arrival must land 10 minutes inside the window's end. Same route-dropping rule as departHourFrom.",
            "minimum": 0,
            "maximum": 23,
            "default": 0
          },
          "arriveHourTo": {
            "type": "integer",
            "description": "End of the local arrival-hour window (exclusive): see arriveHourFrom.",
            "minimum": 1,
            "maximum": 24,
            "default": 24
          }
        }
      },
      "SearchResponse": {
        "type": "object",
        "description": "Search results. Which arrays are filled depends on `tripMode` and `maxLegs`.",
        "properties": {
          "pageVersion": {
            "type": "string",
            "description": "Fingerprint of the full ordered result set before pagination. If it changes between pages, start again."
          },
          "routes": {
            "type": "array",
            "description": "One-way results (empty in return mode).",
            "items": {
              "$ref": "#/components/schemas/RouteResult"
            }
          },
          "totalRoutes": {
            "type": "integer",
            "description": "Matching routes before limit/offset."
          },
          "snapshotDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The daily list these results come from; null before the first list.",
            "format": "date"
          },
          "generatedAt": {
            "type": "string",
            "description": "When the server computed the response.",
            "format": "date-time"
          },
          "trips": {
            "type": "array",
            "description": "Return mode only.",
            "items": {
              "$ref": "#/components/schemas/TripResult"
            }
          },
          "totalTrips": {
            "type": "integer",
            "description": "Return mode only: matching trips before limit/offset."
          },
          "connections": {
            "type": "array",
            "description": "maxLegs 2 or 3 only: 1-stop (and with maxLegs 3, 2-stop) self-transfers, sorted by `sort`, capped at 120. Without destinations, itineraries to cities with no direct route from their origin today (directListed false) come first.",
            "items": {
              "$ref": "#/components/schemas/ConnectionOption"
            }
          },
          "totalConnections": {
            "type": "integer",
            "description": "maxLegs 2 or 3 only: connections found before the cap."
          },
          "connectionsTruncated": {
            "type": "boolean",
            "description": "True when the search hit its work budget: 1-stop results are complete, but some 2-stop itineraries may be missing. Narrow the search (a destination, shorter layovers) to get them all. Absent otherwise."
          },
          "connectionRules": {
            "$ref": "#/components/schemas/ConnectionRules",
            "description": "With `connections` (once a list is loaded): the transfer rules they were composed with."
          },
          "demo": {
            "type": "boolean",
            "description": "True when the answer is built-in demo data (an empty or local development database), not Wizz availability: label it as demo, never present it as real."
          },
          "degraded": {
            "type": "boolean",
            "description": "True when live data is temporarily unavailable (the database can't be reached and nothing is cached). The empty results mean \"couldn't load\", not \"nothing listed\": report an outage and retry later. Absent otherwise."
          },
          "unlistedCities": {
            "type": "array",
            "description": "Requested origins with no departures, and destinations with no arrivals, on the current list, whatever the filters, with the nearest cities that have them. Absent when every named city has routes.",
            "items": {
              "$ref": "#/components/schemas/UnlistedCityHint"
            }
          },
          "missingPairs": {
            "type": "array",
            "description": "Only when a search naming origins and destinations found nothing: the requested pairs that aren't on the current list (up to 6), with their 90-day history. Absent otherwise.",
            "items": {
              "$ref": "#/components/schemas/MissingPairHint"
            }
          },
          "unknownTokens": {
            "type": "array",
            "description": "Request tokens that match no Wizz airport, city or known alias (they match nothing). Native and airport names such as \"Warszawa\" or \"Malpensa\" resolve and are not listed here. Absent when every token resolved.",
            "items": {
              "type": "string",
              "description": "A token as sent."
            }
          },
          "untimedRoutes": {
            "type": "integer",
            "description": "One-way with departHourFrom/To, arriveHourFrom/To or maxDurationMin: how many of totalRoutes have no bookable flight time to check against the filter (no enriched times yet, or every known departure closed). They stay because they may still match; count them apart from the confirmed matches (\"2 match · 33 without times to check\"). Absent when zero or when no such filter is set.",
            "minimum": 1
          }
        },
        "required": [
          "routes",
          "totalRoutes",
          "snapshotDate",
          "generatedAt"
        ]
      },
      "StatusSummary": {
        "type": "object",
        "description": "The latest list at a glance.",
        "properties": {
          "lastSnapshot": {
            "description": "Latest recorded list; null before the first import.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/SnapshotInfo"
              },
              {
                "type": "null"
              }
            ]
          },
          "totalRoutesToday": {
            "type": "integer",
            "description": "City pairs on the latest list."
          },
          "newToday": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Pairs added since yesterday's list; null when yesterday is missing."
          },
          "droppedToday": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Pairs dropped since yesterday's list; null when yesterday is missing."
          },
          "changesSincePrevious": {
            "description": "Changes against the previous recorded list (which may be older than yesterday).",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "description": "Previous list date.",
                    "format": "date"
                  },
                  "toDate": {
                    "type": "string",
                    "description": "Latest list date.",
                    "format": "date"
                  },
                  "added": {
                    "type": "integer",
                    "description": "Pairs added."
                  },
                  "removed": {
                    "type": "integer",
                    "description": "Pairs removed."
                  }
                },
                "required": [
                  "fromDate",
                  "toDate",
                  "added",
                  "removed"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "flightsEnriched": {
            "type": "integer",
            "description": "Departures with known times in the current window."
          },
          "nextDropLocal": {
            "type": "string",
            "description": "Next expected list, Europe/Budapest local time, e.g. \"2026-07-03T07:00:00\". Stays at today's 07:00 until today's list is imported, so while `listOverdue` is true it lies in the past: the list is due, not tomorrow's.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "importLag": {
            "description": "How long after Wizz published lastSnapshot PassRadar imported it (fetchedAt − publishedAt). Usually a few minutes; when `late` is true, say that the list reached PassRadar late, since alerts and \"new today\" changes went out late too. Null before the first import.",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "minutes": {
                    "type": "integer",
                    "description": "Whole minutes from Wizz's publication to PassRadar's import.",
                    "minimum": 0
                  },
                  "late": {
                    "type": "boolean",
                    "description": "True when minutes is above thresholdMinutes (90)."
                  },
                  "thresholdMinutes": {
                    "type": "integer",
                    "description": "The lateness threshold applied, in minutes."
                  }
                },
                "required": [
                  "minutes",
                  "late",
                  "thresholdMinutes"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedListDate": {
            "type": "string",
            "description": "The newest list Wizz should have published by now (Europe/Budapest date): today's from about 07:00 Europe/Budapest, yesterday's before that.",
            "format": "date"
          },
          "listOverdue": {
            "type": "boolean",
            "description": "True when `expectedListDate` is newer than `lastSnapshot.snapshotDate`: that list is past its ~07:00 drop and hasn't reached PassRadar yet, so every answer still comes from `lastSnapshot`. Say so. A few minutes overdue is normal; hours mean Wizz or the import is late. False before the first import."
          },
          "overdueMinutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Whole minutes since the expected list's ~07:00 Europe/Budapest drop while `listOverdue` is true; null otherwise.",
            "minimum": 0
          }
        },
        "required": [
          "lastSnapshot",
          "totalRoutesToday",
          "newToday",
          "droppedToday",
          "changesSincePrevious",
          "flightsEnriched",
          "nextDropLocal",
          "importLag",
          "expectedListDate",
          "listOverdue",
          "overdueMinutes"
        ]
      },
      "DailyDiff": {
        "type": "object",
        "description": "What changed between one daily list and the one before it.",
        "properties": {
          "date": {
            "type": "string",
            "description": "List date.",
            "format": "date"
          },
          "prevDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The previous recorded list; null for the first list.",
            "format": "date"
          },
          "comparisonDays": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Calendar days between the two lists; null for the first list."
          },
          "added": {
            "type": "array",
            "description": "Pairs on this list but not the previous one.",
            "items": {
              "$ref": "#/components/schemas/CityPair"
            }
          },
          "removed": {
            "type": "array",
            "description": "Pairs on the previous list but not this one.",
            "items": {
              "$ref": "#/components/schemas/CityPair"
            }
          },
          "totalRoutes": {
            "type": "integer",
            "description": "Pairs on this list."
          }
        },
        "required": [
          "date",
          "prevDate",
          "comparisonDays",
          "added",
          "removed",
          "totalRoutes"
        ]
      },
      "TopRoutesResponse": {
        "type": "object",
        "description": "Most consistently listed routes.",
        "properties": {
          "days": {
            "type": "integer",
            "description": "The lookback window actually used, in days: the requested `days` snapped to 7, 30 or 90.",
            "enum": [
              7,
              30,
              90
            ]
          },
          "routes": {
            "type": "array",
            "description": "Highest listing rate first.",
            "items": {
              "$ref": "#/components/schemas/RouteReliability"
            }
          }
        },
        "required": [
          "days",
          "routes"
        ]
      },
      "WeekdayPatternResponse": {
        "type": "object",
        "description": "Listing rate by weekday over the last 90 days, by the weekdays each list's departure window covers, gated by Wizz's current timetable. A weekday whose forwardStatus is \"not-this-weekday\" has no flights: show that instead of its rate.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "weekdays": {
            "type": "array",
            "description": "Monday first.",
            "items": {
              "type": "object",
              "description": "One weekday.",
              "properties": {
                "weekday": {
                  "type": "integer",
                  "description": "0 = Monday … 6 = Sunday.",
                  "minimum": 0,
                  "maximum": 6
                },
                "label": {
                  "type": "string",
                  "description": "Short label, e.g. \"Mon\"."
                },
                "rate": {
                  "type": "number",
                  "description": "seen / total: share of the lists covering that weekday that listed the pair.",
                  "minimum": 0,
                  "maximum": 1
                },
                "total": {
                  "type": "integer",
                  "description": "Lists in the window whose departure window covers that weekday."
                },
                "seen": {
                  "type": "integer",
                  "description": "Of those, lists that listed the pair."
                },
                "forwardStatus": {
                  "$ref": "#/components/schemas/WeekendForwardStatus",
                  "description": "Does the current timetable show the pair flying on this weekday? Only meaningful up to forwardCoverageEnd."
                }
              },
              "required": [
                "weekday",
                "label",
                "rate",
                "total",
                "seen",
                "forwardStatus"
              ]
            }
          },
          "forwardWeekdays": {
            "type": [
              "string",
              "null"
            ],
            "description": "Weekdays Wizz currently flies the pair, e.g. \"Mon · Wed · Fri\"; null when unknown."
          },
          "forwardCoverageEnd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last date the fresh timetable covers (forwardStatus is only meaningful up to it); null when unknown.",
            "format": "date"
          }
        },
        "required": [
          "originCity",
          "destCity",
          "weekdays",
          "forwardWeekdays",
          "forwardCoverageEnd"
        ]
      },
      "ScheduleResponse": {
        "type": "object",
        "description": "Scheduled departures from Wizz's public timetable. This is the flight schedule, not AYCF availability: AYCF booking opens only once a daily list carries the route on that date (each list reaches about 3 days ahead).",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "date": {
            "type": "string",
            "description": "The date the times refer to.",
            "format": "date"
          },
          "times": {
            "type": "array",
            "description": "Local departure times (HH:MM), deduplicated across airports, sorted. Empty past coverageEnd or when nothing flies that day.",
            "items": {
              "type": "string",
              "description": "Local departure time.",
              "pattern": "^\\d{2}:\\d{2}$"
            }
          },
          "source": {
            "type": "string",
            "const": "timetable",
            "description": "Always \"timetable\"."
          },
          "coverageEnd": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last date the cached timetable covers; null when nothing is cached.",
            "format": "date"
          }
        },
        "required": [
          "originCity",
          "destCity",
          "date",
          "times",
          "source",
          "coverageEnd"
        ]
      },
      "WeatherDay": {
        "type": "object",
        "description": "One day of forecast (Open-Meteo).",
        "properties": {
          "date": {
            "type": "string",
            "description": "Forecast date.",
            "format": "date"
          },
          "tempMaxC": {
            "type": "number",
            "description": "Daily maximum air temperature, °C."
          },
          "tempMinC": {
            "type": "number",
            "description": "Daily minimum air temperature, °C."
          },
          "weatherCode": {
            "type": "integer",
            "description": "WMO weather code, e.g. 0 = clear sky."
          },
          "label": {
            "type": "string",
            "description": "Condition label derived from weatherCode. New labels may be added.",
            "enum": [
              "sunny",
              "partly cloudy",
              "cloudy",
              "fog",
              "drizzle",
              "rain",
              "showers",
              "snow",
              "storm"
            ]
          }
        },
        "required": [
          "date",
          "tempMaxC",
          "tempMinC",
          "weatherCode",
          "label"
        ]
      },
      "WeatherResponse": {
        "type": "object",
        "description": "Daily forecast for a city. Best-effort: an upstream failure returns `days: []` rather than an error.",
        "properties": {
          "city": {
            "type": "string",
            "description": "The city the query resolved to. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "days": {
            "type": "array",
            "description": "One entry per day; may be empty.",
            "items": {
              "$ref": "#/components/schemas/WeatherDay"
            }
          }
        },
        "required": [
          "city",
          "days"
        ]
      },
      "WeatherBatchResponse": {
        "type": "object",
        "description": "Daily forecasts for several cities at once (`cities=`), in request order; unknown cities are left out.",
        "properties": {
          "from": {
            "type": "string",
            "description": "First day, as asked.",
            "format": "date"
          },
          "to": {
            "type": "string",
            "description": "Last day, as asked.",
            "format": "date"
          },
          "cities": {
            "type": "array",
            "description": "One forecast per known city.",
            "items": {
              "$ref": "#/components/schemas/WeatherResponse"
            }
          }
        },
        "required": [
          "from",
          "to",
          "cities"
        ]
      },
      "PublicHoliday": {
        "type": "object",
        "description": "A nationwide public holiday (Nager.Date).",
        "properties": {
          "date": {
            "type": "string",
            "description": "The holiday's date.",
            "format": "date"
          },
          "name": {
            "type": "string",
            "description": "English name."
          },
          "localName": {
            "type": "string",
            "description": "Name in the country's language."
          }
        },
        "required": [
          "date",
          "name",
          "localName"
        ]
      },
      "HolidaysResponse": {
        "type": "object",
        "description": "A country's nationwide public holidays in one year, by date (Nager.Date). Regional holidays are left out.",
        "properties": {
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code, upper case.",
            "pattern": "^[A-Z]{2}$"
          },
          "year": {
            "type": "integer",
            "description": "The year."
          },
          "holidays": {
            "type": "array",
            "description": "Every nationwide holiday that year, by date; may be empty.",
            "items": {
              "$ref": "#/components/schemas/PublicHoliday"
            }
          }
        },
        "required": [
          "country",
          "year",
          "holidays"
        ]
      },
      "WeekendForwardStatus": {
        "type": "string",
        "description": "Whether Wizz's current timetable shows the route flying on a weekday: flies = fresh timetable data shows a departure that weekday; not-this-weekday = it covers the weekday and shows none; unknown = no fresh timetable data, which is not evidence that it doesn't fly.",
        "enum": [
          "flies",
          "not-this-weekday",
          "unknown"
        ]
      },
      "WeekendOption": {
        "type": "object",
        "description": "A destination you could fly to on the outbound date and back from on the return date, ranked by historical weekday odds.",
        "properties": {
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destAirports": {
            "type": "array",
            "description": "Airports serving the destination.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "outRate": {
            "type": "number",
            "description": "Share of the last 90 days' lists whose departure window covers the outbound weekday that listed origin → destination (the overall rate when fewer than 6 lists cover it).",
            "minimum": 0,
            "maximum": 1
          },
          "retRate": {
            "type": "number",
            "description": "Same for destination → origin on the return weekday.",
            "minimum": 0,
            "maximum": 1
          },
          "outWeekday": {
            "type": "string",
            "description": "Outbound weekday, e.g. \"Friday\"."
          },
          "retWeekday": {
            "type": "string",
            "description": "Return weekday, e.g. \"Sunday\"."
          },
          "score": {
            "type": "number",
            "description": "Ranking score: outRate × retRate, divided by 1000 when either forward status is \"not-this-weekday\", so routes Wizz doesn't currently fly on that weekday sort last.",
            "minimum": 0,
            "maximum": 1
          },
          "bookableNow": {
            "type": "boolean",
            "description": "The outbound is on the current list and has a departure at least 3 hours away, inside the list's window (up to its validTo). Wizz still confirms seats at booking."
          },
          "outListed": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Outbound pair on the latest list; null when the list doesn't cover the outbound date."
          },
          "retListed": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Return pair on the latest list; null when the list doesn't cover the return date."
          },
          "outFlights": {
            "type": "array",
            "description": "Listed outbound departures currently inside the booking window.",
            "items": {
              "$ref": "#/components/schemas/FlightOption"
            }
          },
          "retFlights": {
            "type": "array",
            "description": "Listed return departures currently inside the booking window.",
            "items": {
              "$ref": "#/components/schemas/FlightOption"
            }
          },
          "overallOutRate": {
            "type": "number",
            "description": "90-day rate for origin → destination, any weekday.",
            "minimum": 0,
            "maximum": 1
          },
          "overallRetRate": {
            "type": "number",
            "description": "90-day rate for destination → origin, any weekday.",
            "minimum": 0,
            "maximum": 1
          },
          "outForwardStatus": {
            "$ref": "#/components/schemas/WeekendForwardStatus",
            "description": "Does the timetable show origin → destination on the outbound weekday?"
          },
          "retForwardStatus": {
            "$ref": "#/components/schemas/WeekendForwardStatus",
            "description": "Does the timetable show destination → origin on the return weekday?"
          },
          "outForwardWeekdays": {
            "type": [
              "string",
              "null"
            ],
            "description": "Weekdays Wizz currently flies origin → destination, e.g. \"Sat · Sun · Tue\"; null when unknown."
          },
          "retForwardWeekdays": {
            "type": [
              "string",
              "null"
            ],
            "description": "Weekdays Wizz currently flies destination → origin; null when unknown."
          }
        },
        "required": [
          "destCity",
          "destAirports",
          "outRate",
          "retRate",
          "outWeekday",
          "retWeekday",
          "score",
          "bookableNow",
          "outListed",
          "retListed",
          "outFlights",
          "retFlights",
          "overallOutRate",
          "overallRetRate",
          "outForwardStatus",
          "retForwardStatus",
          "outForwardWeekdays",
          "retForwardWeekdays"
        ]
      },
      "WeekendResponse": {
        "type": "object",
        "description": "Weekend destinations from one origin, best odds first. Zero-score pairs are left out.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "The origin the query resolved to. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "originAirports": {
            "type": "array",
            "description": "Airports serving the origin.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "outDate": {
            "type": "string",
            "description": "Outbound date.",
            "format": "date"
          },
          "retDate": {
            "type": "string",
            "description": "Return date.",
            "format": "date"
          },
          "snapshotDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The list that bookableNow / outListed refer to.",
            "format": "date"
          },
          "history": {
            "type": "object",
            "description": "How much history the rates rest on.",
            "properties": {
              "recordedDays": {
                "type": "integer",
                "description": "Lists recorded in the 90-day window."
              },
              "outbound": {
                "type": "object",
                "description": "Outbound sample.",
                "properties": {
                  "source": {
                    "type": "string",
                    "description": "Which rate was used.",
                    "enum": [
                      "weekday",
                      "overall"
                    ]
                  },
                  "sampleDays": {
                    "type": "integer",
                    "description": "Lists in the denominator."
                  }
                },
                "required": [
                  "source",
                  "sampleDays"
                ]
              },
              "inbound": {
                "type": "object",
                "description": "Return sample.",
                "properties": {
                  "source": {
                    "type": "string",
                    "description": "Which rate was used.",
                    "enum": [
                      "weekday",
                      "overall"
                    ]
                  },
                  "sampleDays": {
                    "type": "integer",
                    "description": "Lists in the denominator."
                  }
                },
                "required": [
                  "source",
                  "sampleDays"
                ]
              }
            },
            "required": [
              "recordedDays",
              "outbound",
              "inbound"
            ]
          },
          "options": {
            "type": "array",
            "description": "Sorted by score, highest first.",
            "items": {
              "$ref": "#/components/schemas/WeekendOption"
            }
          },
          "generatedAt": {
            "type": "string",
            "description": "When the server computed the response.",
            "format": "date-time"
          }
        },
        "required": [
          "originCity",
          "originAirports",
          "outDate",
          "retDate",
          "snapshotDate",
          "history",
          "options",
          "generatedAt"
        ]
      },
      "MeetupFlightStatus": {
        "type": "string",
        "description": "Where a traveller's flight stands right now: bookable = listed, at least 3 hours before departure and inside the current list's window (`validTo`, about 89 hours; the terms quote 72); opens_later = listed and scheduled but past that window, so a later list opens it (`bookingOpensUtc`); times_pending = the pair is listed but Wizz hasn't published times. Flights past the 3-hour cutoff are never returned.",
        "enum": [
          "bookable",
          "opens_later",
          "times_pending"
        ]
      },
      "MeetupWayHome": {
        "type": "object",
        "description": "How one traveller gets home from the meeting city. Unless `basis` is \"confirmed\", `odds` is an estimate.",
        "properties": {
          "listedToday": {
            "type": "boolean",
            "description": "Meeting city → origin is on the current daily list."
          },
          "flights": {
            "type": "array",
            "description": "Listed return departures (max 3, earliest first) at least 4 hours after the group meets. Any past the list's window open for booking only with a later list: compare departureUtc with the response's validTo.",
            "items": {
              "$ref": "#/components/schemas/FlightOption"
            }
          },
          "timesPending": {
            "type": "boolean",
            "description": "Listed today, but Wizz hasn't published return times yet."
          },
          "reliability": {
            "description": "90-day history of meeting city → origin; null if never recorded.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouteReliability"
              },
              {
                "type": "null"
              }
            ]
          },
          "basis": {
            "type": "string",
            "description": "What `odds` rests on. confirmed: everyone has a flight and a listed return leaves 4+ hours after the last arrival (odds 1). times_listed: returns are listed but someone's times are pending (odds at least 0.8). listed_today: listed without a usable time (next-day survival or listing rate, 0.5 without history). history: not on today's list (90-day rate). unknown: never recorded (odds 0).",
            "enum": [
              "confirmed",
              "times_listed",
              "listed_today",
              "history",
              "unknown"
            ]
          },
          "odds": {
            "type": "number",
            "description": "The way-home factor behind score.wayHome, 0–1.",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "listedToday",
          "flights",
          "timesPending",
          "reliability",
          "basis",
          "odds"
        ]
      },
      "MeetupScore": {
        "type": "object",
        "description": "Transparent ranking score: points per factor, `total` is their sum.",
        "properties": {
          "total": {
            "type": "integer",
            "description": "Sum of the parts, 0–100.",
            "minimum": 0,
            "maximum": 100
          },
          "bookable": {
            "type": "integer",
            "description": "Up to 40, per traveller: bookable now = full, booking opens later = ¾, times pending = ½.",
            "minimum": 0,
            "maximum": 40
          },
          "arrivalGap": {
            "type": "integer",
            "description": "Up to 25: arrivals at most 1 hour apart = full, falling to 0 at 12 hours; at most 20 when any arrival is an estimate (an estimate can be up to 15 min early or 40 min late); 10 when anyone's times are pending.",
            "minimum": 0,
            "maximum": 25
          },
          "wayHome": {
            "type": "integer",
            "description": "Up to 25: the mean of the travellers' wayHome.odds.",
            "minimum": 0,
            "maximum": 25
          },
          "transfer": {
            "type": "integer",
            "description": "Up to 10: average cheapest airport transfer, €0 = full, €40 or more = 0; 5 when unresearched.",
            "minimum": 0,
            "maximum": 10
          }
        },
        "required": [
          "total",
          "bookable",
          "arrivalGap",
          "wayHome",
          "transfer"
        ]
      },
      "MeetupTraveller": {
        "type": "object",
        "description": "One traveller's part of a meet-up option.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "status": {
            "$ref": "#/components/schemas/MeetupFlightStatus",
            "description": "Where the picked flight stands in the booking window."
          },
          "flight": {
            "description": "The flight picked to keep the group's arrivals close; null while times are pending.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FlightOption"
              },
              {
                "type": "null"
              }
            ]
          },
          "bookingOpensUtc": {
            "type": [
              "string",
              "null"
            ],
            "description": "When status is opens_later: when AYCF booking is expected to open for `flight`, about 07:00 Europe/Budapest on the first daily list that covers its date (an estimate: lists publish around then); otherwise null.",
            "format": "date-time"
          },
          "bookingOpensLocal": {
            "type": [
              "string",
              "null"
            ],
            "description": "bookingOpensUtc as wall-clock time at the departure airport; null when bookingOpensUtc is.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "otherFlights": {
            "type": "array",
            "description": "This traveller's other usable flights landing the same day, in departure order (max 4).",
            "items": {
              "$ref": "#/components/schemas/FlightOption"
            }
          },
          "outboundReliability": {
            "description": "90-day history of origin → meeting city; null if never recorded.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/RouteReliability"
              },
              {
                "type": "null"
              }
            ]
          },
          "wayHome": {
            "$ref": "#/components/schemas/MeetupWayHome",
            "description": "Getting home from the meeting city."
          },
          "transfer": {
            "description": "Cheapest researched airport-to-centre transfer at the arrival airport (the cheapest of the city's airports while times are pending): a rough one-way estimate, null when unresearched.",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "iata": {
                    "type": "string",
                    "description": "Airport the estimate is for.",
                    "pattern": "^[A-Z0-9]{3}$"
                  },
                  "mode": {
                    "type": "string",
                    "description": "Transport mode, e.g. \"bus\" or \"train\"."
                  },
                  "costEur": {
                    "type": "integer",
                    "description": "Rough one-way cost, whole euros."
                  },
                  "durationMin": {
                    "type": "integer",
                    "description": "Typical duration to the centre, minutes."
                  }
                },
                "required": [
                  "iata",
                  "mode",
                  "costEur",
                  "durationMin"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "originCity",
          "status",
          "flight",
          "bookingOpensUtc",
          "bookingOpensLocal",
          "otherFlights",
          "outboundReliability",
          "wayHome",
          "transfer"
        ]
      },
      "MeetupOption": {
        "type": "object",
        "description": "A city every traveller can fly to directly, on one meeting day. Listed is not a seat guarantee: Wizz confirms AYCF seats only at booking.",
        "properties": {
          "destCity": {
            "type": "string",
            "description": "Meeting city. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destAirports": {
            "type": "array",
            "description": "Airports serving the meeting city.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "day": {
            "type": [
              "string",
              "null"
            ],
            "description": "Destination-local date the timed travellers land; null while nobody's times are published.",
            "format": "date"
          },
          "timing": {
            "type": "string",
            "description": "confirmed: every traveller has a flight landing on `day`. partial: some do and the others' pairs are listed with times pending, so it holds only if theirs land that day too. pending: nobody's times are published yet (`day` is null).",
            "enum": [
              "confirmed",
              "partial",
              "pending"
            ]
          },
          "otherDays": {
            "type": "array",
            "description": "Partial only: other days the timed travellers could also land together, ascending.",
            "items": {
              "type": "string",
              "description": "Date.",
              "format": "date"
            }
          },
          "travellers": {
            "type": "array",
            "description": "Same order as the response's travellers.",
            "items": {
              "$ref": "#/components/schemas/MeetupTraveller"
            }
          },
          "arrivalSpreadMin": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minutes between the first and last (estimated) arrival; null unless every traveller has times."
          },
          "score": {
            "$ref": "#/components/schemas/MeetupScore",
            "description": "Ranking score."
          }
        },
        "required": [
          "destCity",
          "destAirports",
          "day",
          "timing",
          "otherDays",
          "travellers",
          "arrivalSpreadMin",
          "score"
        ]
      },
      "MeetupOneStopTraveller": {
        "type": "object",
        "description": "One traveller's way to a 1-stop alternative's city.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "kind": {
            "type": "string",
            "description": "direct = one flight; one_stop = a same-day self-transfer (two separate bookings).",
            "enum": [
              "direct",
              "one_stop"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/MeetupFlightStatus",
            "description": "For a 1-stop, the weaker of both legs' statuses: both must be booked up front."
          },
          "flight": {
            "description": "Direct only; null for a 1-stop or while times are pending.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FlightOption"
              },
              {
                "type": "null"
              }
            ]
          },
          "connection": {
            "description": "1-stop only (always exactly one transfer, `stops` 1); null for direct.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConnectionOption"
              },
              {
                "type": "null"
              }
            ]
          },
          "bookingOpensUtc": {
            "type": [
              "string",
              "null"
            ],
            "description": "When status is opens_later: the latest booking opening among the legs; otherwise null.",
            "format": "date-time"
          },
          "bookingOpensLocal": {
            "type": [
              "string",
              "null"
            ],
            "description": "bookingOpensUtc as wall-clock time at that leg's departure airport.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          }
        },
        "required": [
          "originCity",
          "kind",
          "status",
          "flight",
          "connection",
          "bookingOpensUtc",
          "bookingOpensLocal"
        ]
      },
      "MeetupOneStopOption": {
        "type": "object",
        "description": "Nearest alternative when no city works directly for everyone: at least one traveller needs a same-day 1-stop self-transfer (two separate AYCF bookings, never a protected connection) with a daytime layover of at least 120 minutes, +60 where passport control applies, +10 after an estimated arrival. Only sane detours: legs at most 1.6× the straight-line distance, the trip at most max(8 h, 2.5× a direct flight).",
        "properties": {
          "destCity": {
            "type": "string",
            "description": "Meeting city. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destAirports": {
            "type": "array",
            "description": "Airports serving the meeting city.",
            "items": {
              "$ref": "#/components/schemas/Airport"
            }
          },
          "day": {
            "type": "string",
            "description": "Destination-local meeting date.",
            "format": "date"
          },
          "travellers": {
            "type": "array",
            "description": "Same order as the response's travellers.",
            "items": {
              "$ref": "#/components/schemas/MeetupOneStopTraveller"
            }
          },
          "oneStopCount": {
            "type": "integer",
            "description": "Travellers who need the 1-stop.",
            "minimum": 1
          },
          "arrivalSpreadMin": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minutes between the first and last arrival; null while someone's times are pending."
          }
        },
        "required": [
          "destCity",
          "destAirports",
          "day",
          "travellers",
          "oneStopCount",
          "arrivalSpreadMin"
        ]
      },
      "MeetupHostOption": {
        "type": "object",
        "description": "Skip the middle: every other traveller flies directly to one traveller's home city.",
        "properties": {
          "hostCity": {
            "type": "string",
            "description": "The traveller whose home city the others fly to. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "guests": {
            "type": "array",
            "description": "Every traveller except the host.",
            "items": {
              "type": "object",
              "description": "One guest's way to the host.",
              "properties": {
                "originCity": {
                  "type": "string",
                  "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
                },
                "flights": {
                  "type": "array",
                  "description": "Usable flights to the host city (not past the 3-hour cutoff), earliest first (max 4).",
                  "items": {
                    "$ref": "#/components/schemas/FlightOption"
                  }
                },
                "timesPending": {
                  "type": "boolean",
                  "description": "The pair is listed but Wizz hasn't published times yet."
                },
                "reliability": {
                  "description": "90-day history of guest → host; null if never recorded.",
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/RouteReliability"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "originCity",
                "flights",
                "timesPending",
                "reliability"
              ]
            }
          }
        },
        "required": [
          "hostCity",
          "guests"
        ]
      },
      "MeetupResponse": {
        "type": "object",
        "description": "Where 2–3 travellers can each fly directly and meet, from the current daily list. Way-home odds rest on route history: estimates, not promises.",
        "properties": {
          "travellers": {
            "type": "array",
            "description": "In request order.",
            "items": {
              "type": "object",
              "description": "One traveller.",
              "properties": {
                "originCity": {
                  "type": "string",
                  "description": "The city the token resolved to. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
                },
                "originAirports": {
                  "type": "array",
                  "description": "Airports serving it.",
                  "items": {
                    "$ref": "#/components/schemas/Airport"
                  }
                },
                "routesToday": {
                  "type": "integer",
                  "description": "Destinations listed from this city on the current list."
                }
              },
              "required": [
                "originCity",
                "originAirports",
                "routesToday"
              ]
            }
          },
          "day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The requested day filter, or null.",
            "format": "date"
          },
          "days": {
            "type": "array",
            "description": "Meeting days with at least one option, ascending, counted before the day filter.",
            "items": {
              "type": "object",
              "description": "One meeting day.",
              "properties": {
                "date": {
                  "type": "string",
                  "description": "Destination-local meeting date.",
                  "format": "date"
                },
                "count": {
                  "type": "integer",
                  "description": "Cities where every traveller lands that day (confirmed)."
                },
                "partial": {
                  "type": "integer",
                  "description": "Cities where the timed travellers land that day and the others' times are pending."
                }
              },
              "required": [
                "date",
                "count",
                "partial"
              ]
            }
          },
          "options": {
            "type": "array",
            "description": "Confirmed (day ascending, then score), then partial, then pending (score descending); at most 20 per day or group.",
            "items": {
              "$ref": "#/components/schemas/MeetupOption"
            }
          },
          "totalOptions": {
            "type": "integer",
            "description": "Options matching the request before the per-group cap."
          },
          "oneStop": {
            "type": "array",
            "description": "Only when `options` is empty: nearest alternatives using a 1-stop leg.",
            "items": {
              "$ref": "#/components/schemas/MeetupOneStopOption"
            }
          },
          "hosts": {
            "type": "array",
            "description": "Travellers whose home city every other traveller can fly to directly.",
            "items": {
              "$ref": "#/components/schemas/MeetupHostOption"
            }
          },
          "snapshotDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The daily list the answer comes from; null before the first list.",
            "format": "date"
          },
          "validTo": {
            "type": [
              "string",
              "null"
            ],
            "description": "End of the current list's departure window; null before the first list.",
            "format": "date-time"
          },
          "demo": {
            "type": "boolean",
            "description": "True when the server is answering from built-in demo data (no live list): label it, never present it as real."
          },
          "generatedAt": {
            "type": "string",
            "description": "When the server computed the response.",
            "format": "date-time"
          }
        },
        "required": [
          "travellers",
          "day",
          "days",
          "options",
          "totalOptions",
          "oneStop",
          "hosts",
          "snapshotDate",
          "validTo",
          "demo",
          "generatedAt"
        ]
      },
      "CashFare": {
        "type": "object",
        "description": "The cheapest regular (cash) Wizz fare for a city pair on one date, as Wizz's public timetable showed it when PassRadar last fetched that route. Not an AYCF seat and not live: prices change constantly, so always show its age (fetchedAt). Never older than 96 hours.",
        "properties": {
          "originIata": {
            "type": "string",
            "description": "Departure airport the cheapest fare was seen on (a city can have several).",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "destIata": {
            "type": "string",
            "description": "Arrival airport the cheapest fare was seen on.",
            "pattern": "^[A-Z0-9]{3}$"
          },
          "date": {
            "type": "string",
            "description": "Departure date, local at the origin airport.",
            "format": "date"
          },
          "amountMinor": {
            "type": "integer",
            "description": "Price in minor units of `currency` (Wizz's amount × 100), e.g. 4599 = 45.99.",
            "minimum": 1
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code Wizz sells this direction in, e.g. \"EUR\", \"HUF\", \"GBP\". Never converted.",
            "pattern": "^[A-Z]{3}$"
          },
          "fetchedAt": {
            "type": "string",
            "description": "When PassRadar's timetable fetch saw this price. Show it as the fare's age.",
            "format": "date-time"
          },
          "searchUrl": {
            "type": "string",
            "description": "wizzair.com's normal public flight search for this airport pair and date (not the AYCF member area).",
            "format": "uri"
          }
        },
        "required": [
          "originIata",
          "destIata",
          "date",
          "amountMinor",
          "currency",
          "fetchedAt",
          "searchUrl"
        ]
      },
      "FaresResponse": {
        "type": "object",
        "description": "Cheapest Wizz cash fare per requested leg: a fallback for when AYCF fails (no way back on the list, an unreliable return, a route not listed that day). Regular Wizz prices from the public timetable, not AYCF seats, and not live.",
        "properties": {
          "legs": {
            "type": "array",
            "description": "The requested legs, normalized and deduplicated, in request order.",
            "items": {
              "type": "object",
              "description": "One requested leg.",
              "properties": {
                "originCity": {
                  "type": "string",
                  "description": "The origin as given, normalized. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
                },
                "destCity": {
                  "type": "string",
                  "description": "The destination as given, normalized. Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
                },
                "date": {
                  "type": "string",
                  "description": "The requested departure date.",
                  "format": "date"
                },
                "fare": {
                  "description": "Cheapest fresh fare across the city pair's airports, in the currency most of them are sold in; null when none fetched within maxAgeHours is stored (also for dates past the stored timetable and unknown city names).",
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CashFare"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "searchPair": {
                  "description": "An airport pair Wizz has priced for this city pair (from a stored fare of any age), for a plain wizzair.com search link when `fare` is null; null when none is stored.",
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "originIata": {
                          "type": "string",
                          "description": "Departure airport.",
                          "pattern": "^[A-Z0-9]{3}$"
                        },
                        "destIata": {
                          "type": "string",
                          "description": "Arrival airport.",
                          "pattern": "^[A-Z0-9]{3}$"
                        }
                      },
                      "required": [
                        "originIata",
                        "destIata"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "originCity",
                "destCity",
                "date",
                "fare"
              ]
            }
          },
          "maxAgeHours": {
            "type": "integer",
            "description": "The freshness cutoff applied (96): fares fetched longer ago are left out. Re-check fetchedAt against your own clock before showing one."
          },
          "generatedAt": {
            "type": "string",
            "description": "When the server computed the response.",
            "format": "date-time"
          }
        },
        "required": [
          "legs",
          "maxAgeHours",
          "generatedAt"
        ]
      },
      "UsualPathLeg": {
        "type": "object",
        "description": "One leg of a usual path: its city pair's record on the daily lists.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "rate": {
            "type": "number",
            "description": "Share of the last 90 daily lists that carried the pair, adjusted for recency (a pair off the lists for weeks counts for less), 0–1.",
            "minimum": 0,
            "maximum": 1
          },
          "lastSeenDate": {
            "type": "string",
            "description": "The last list that carried it.",
            "format": "date"
          },
          "onLatestList": {
            "type": "boolean",
            "description": "On the latest list."
          }
        },
        "required": [
          "originCity",
          "destCity",
          "rate",
          "lastSeenDate",
          "onLatestList"
        ]
      },
      "UsualPath": {
        "type": "object",
        "description": "A way the daily lists usually offer: a direct pair, or one or two same-city transfers whose every leg was listed in the last 90 days. A pattern from history, not a trip: dates and times aren't checked (see PathsResponse.today).",
        "properties": {
          "cities": {
            "type": "array",
            "description": "Cities in order: origin, transfer city(ies), destination.",
            "items": {
              "type": "string",
              "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
            }
          },
          "legs": {
            "type": "array",
            "description": "One per flight, in order.",
            "items": {
              "$ref": "#/components/schemas/UsualPathLeg"
            }
          },
          "estimate": {
            "type": "number",
            "description": "ESTIMATE: the legs' rates multiplied — roughly how often every leg is on the same list. Not a seat probability, and not a promise the times connect. Label it as an estimate.",
            "minimum": 0,
            "maximum": 1
          },
          "onLatestList": {
            "type": "boolean",
            "description": "Every leg is on the latest list (it may be bookable now: see `today`)."
          }
        },
        "required": [
          "cities",
          "legs",
          "estimate",
          "onLatestList"
        ]
      },
      "PathsResponse": {
        "type": "object",
        "description": "How to get from one city to another on AYCF: trips bookable on the current list, and the ways the daily lists usually offer. Multi-leg trips are self-transfers: every leg is its own AYCF booking (€9.99), with no protection if one is late.",
        "properties": {
          "originCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "destCity": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "snapshotDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The list `today` and onLatestList refer to; null without a list.",
            "format": "date"
          },
          "today": {
            "type": "object",
            "description": "Bookable on the current list: the search at `searchHref` (up to 2 stops, layovers 2–24h, overnight allowed).",
            "properties": {
              "direct": {
                "type": "array",
                "description": "Bookable direct flights, soonest first (at most 3).",
                "items": {
                  "$ref": "#/components/schemas/FlightOption"
                }
              },
              "connections": {
                "type": "array",
                "description": "Bookable self-transfer itineraries, fewest stops then soonest (at most 3).",
                "items": {
                  "$ref": "#/components/schemas/ConnectionOption"
                }
              },
              "total": {
                "type": "integer",
                "description": "Every option today (direct flights + itineraries), for \"N more\"."
              }
            },
            "required": [
              "direct",
              "connections",
              "total"
            ]
          },
          "usual": {
            "type": "array",
            "description": "The usual ways there, best estimate first (at most 5); a direct pair is a one-leg path. Two-stop paths appear only when there are fewer than 3 shorter ones.",
            "items": {
              "$ref": "#/components/schemas/UsualPath"
            }
          },
          "searchHref": {
            "type": "string",
            "description": "Site path of the search showing every option in `today`, e.g. \"/?from=tallinn&to=catania&stops=2&maxlay=24&night=1&sort=stops\"."
          },
          "demo": {
            "type": "boolean",
            "description": "True while the server answers from built-in demo data: never real availability."
          },
          "generatedAt": {
            "type": "string",
            "description": "When the server computed the response.",
            "format": "date-time"
          }
        },
        "required": [
          "originCity",
          "destCity",
          "snapshotDate",
          "today",
          "usual",
          "searchHref",
          "demo",
          "generatedAt"
        ]
      },
      "CalibrationMetric": {
        "type": "string",
        "description": "Which shown figure a series scores, and against what: next-list = the daily % (\"appears on N% of lists\") vs the next list; next-list-listed / next-list-unlisted = the same, split by whether the route was on the list the day before; tomorrow = the \"N% tomorrow\" chip on listed routes vs the next list; within-3-lists / within-3-unlisted = the daily % vs any of the next 3 lists; weekday = the weekday return hint vs each list covering that weekday.",
        "enum": [
          "next-list",
          "next-list-listed",
          "next-list-unlisted",
          "tomorrow",
          "within-3-lists",
          "within-3-unlisted",
          "weekday"
        ]
      },
      "CalibrationBucket": {
        "type": "object",
        "description": "One band of shown odds: predictions in [bucket/10, (bucket+1)/10), with 100% in band 9.",
        "properties": {
          "bucket": {
            "type": "integer",
            "description": "Band 0..9: 0 = 0–10%, 9 = 90–100%.",
            "minimum": 0,
            "maximum": 9
          },
          "cases": {
            "type": "integer",
            "description": "Predictions in this band.",
            "minimum": 0
          },
          "hits": {
            "type": "integer",
            "description": "Of those, how many came true (the route was listed).",
            "minimum": 0
          },
          "predicted": {
            "type": [
              "number",
              "null"
            ],
            "description": "Mean odds shown in this band; null when the band is empty.",
            "minimum": 0,
            "maximum": 1
          },
          "observed": {
            "type": [
              "number",
              "null"
            ],
            "description": "hits / cases: how often it came true; null when the band is empty.",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "bucket",
          "cases",
          "hits",
          "predicted",
          "observed"
        ]
      },
      "CalibrationSeries": {
        "type": "object",
        "description": "The back-test of one shown figure: shown odds against what Wizz's lists did next, band by band. History scored against history: a well-calibrated series has observed ≈ predicted in each band.",
        "properties": {
          "metric": {
            "$ref": "#/components/schemas/CalibrationMetric"
          },
          "buckets": {
            "type": "array",
            "description": "Always 10 bands, empty ones included, lowest first.",
            "items": {
              "$ref": "#/components/schemas/CalibrationBucket"
            }
          },
          "cases": {
            "type": "integer",
            "description": "Predictions scored.",
            "minimum": 0
          },
          "hits": {
            "type": "integer",
            "description": "Of those, how many came true.",
            "minimum": 0
          },
          "brier": {
            "type": [
              "number",
              "null"
            ],
            "description": "Brier score: mean squared gap between each prediction and its 0-or-1 outcome. 0 is perfect; null without cases.",
            "minimum": 0
          },
          "baselineBrier": {
            "type": [
              "number",
              "null"
            ],
            "description": "Brier score of always guessing the overall rate (hits / cases): the no-skill bar to beat.",
            "minimum": 0
          },
          "calibrationError": {
            "type": [
              "number",
              "null"
            ],
            "description": "Case-weighted mean |observed − predicted| across bands (0..1); null without cases.",
            "minimum": 0,
            "maximum": 1
          },
          "evalFrom": {
            "type": [
              "string",
              "null"
            ],
            "description": "First list day scored.",
            "format": "date"
          },
          "evalTo": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last list day scored.",
            "format": "date"
          },
          "evalDays": {
            "type": "integer",
            "description": "List days scored.",
            "minimum": 0
          },
          "unseenHits": {
            "type": "integer",
            "description": "Listings with no odds behind them (routes with no history in the lookback; for tomorrow, listed routes with too little history for the chip). Not scored.",
            "minimum": 0
          }
        },
        "required": [
          "metric",
          "buckets",
          "cases",
          "hits",
          "brier",
          "baselineBrier",
          "calibrationError",
          "evalFrom",
          "evalTo",
          "evalDays",
          "unseenHits"
        ]
      },
      "OddsAccuracyResponse": {
        "type": "object",
        "description": "How well PassRadar's history-based odds held up against the lists Wizz published next. Rebuilt once a day by the stats job; this is a back-test of listing odds, not of seats.",
        "properties": {
          "series": {
            "type": "array",
            "description": "In CalibrationMetric order, next-list first. A metric the back-test couldn't score is left out.",
            "items": {
              "$ref": "#/components/schemas/CalibrationSeries"
            }
          },
          "historyDays": {
            "type": "integer",
            "description": "Lookback behind each prediction, in days (90)."
          },
          "computedAt": {
            "type": "string",
            "description": "When the stats job last rebuilt the back-test.",
            "format": "date-time"
          }
        },
        "required": [
          "series",
          "historyDays",
          "computedAt"
        ]
      },
      "NetworkCity": {
        "type": "object",
        "description": "A city that has appeared on at least one archived AYCF list. History, not availability: a city can be off the lists for months.",
        "properties": {
          "city": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "countryCode": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code of the city's airports; empty when no airport is mapped yet."
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "description": "Mean latitude of the city's airports; null when unmapped."
          },
          "lon": {
            "type": [
              "number",
              "null"
            ],
            "description": "Mean longitude of the city's airports; null when unmapped."
          },
          "iatas": {
            "type": "array",
            "description": "Airports serving the city, sorted; empty when unmapped.",
            "items": {
              "type": "string",
              "description": "Airport code.",
              "pattern": "^[A-Z0-9]{3}$"
            }
          },
          "firstListed": {
            "type": [
              "string",
              "null"
            ],
            "description": "First archived list (Budapest date) that carried the city as a departure city — as a destination for a city never listed as one.",
            "format": "date"
          },
          "lastListed": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest archived list (Budapest date) that carried the city, as an origin or a destination (exact within the 90-day stats window; before it, as a departure city).",
            "format": "date"
          },
          "onLatestList": {
            "type": "boolean",
            "description": "The city is on the most recent list, as an origin or a destination."
          },
          "reach": {
            "type": [
              "number",
              "null"
            ],
            "description": "How easy the city is to reach: the share of the last 90 daily lists that carried its most frequent route in (as a destination), 0–1. null when no route to it was listed in that window.",
            "minimum": 0,
            "maximum": 1
          },
          "hasRoutesPage": {
            "type": "boolean",
            "description": "/routes/{city} exists: the city was a departure city within the 90-day stats window. False for destination-only cities."
          }
        },
        "required": [
          "city",
          "countryCode",
          "lat",
          "lon",
          "iatas",
          "firstListed",
          "lastListed",
          "onLatestList",
          "hasRoutesPage"
        ]
      },
      "NetworkResponse": {
        "type": "object",
        "description": "The AYCF network: every city PassRadar's archive has seen on a daily list. Computed once per list.",
        "properties": {
          "cities": {
            "type": "array",
            "description": "Every city, sorted by `city`.",
            "items": {
              "$ref": "#/components/schemas/NetworkCity"
            }
          },
          "countryCount": {
            "type": "integer",
            "description": "Distinct countries across `cities`.",
            "minimum": 0
          },
          "snapshotDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "The most recent list the network was computed from.",
            "format": "date"
          },
          "historyFrom": {
            "type": [
              "string",
              "null"
            ],
            "description": "The oldest list in the archive.",
            "format": "date"
          },
          "generatedAt": {
            "type": "string",
            "description": "When the server built the response.",
            "format": "date-time"
          },
          "demo": {
            "type": "boolean",
            "description": "True when this is the built-in demo dataset, never real availability."
          }
        },
        "required": [
          "cities",
          "countryCount",
          "snapshotDate",
          "historyFrom",
          "generatedAt",
          "demo"
        ]
      },
      "CityPhotoImage": {
        "type": "object",
        "description": "A freely licensed Wikimedia Commons file. CC BY / BY-SA: show the author, the licence and a link to the file page with it.",
        "properties": {
          "src": {
            "type": "string",
            "description": "The image on upload.wikimedia.org or thumb.wikimedia.org, at most 1280px wide.",
            "format": "uri"
          },
          "width": {
            "type": "integer",
            "description": "Width in pixels.",
            "minimum": 1
          },
          "height": {
            "type": "integer",
            "description": "Height in pixels.",
            "minimum": 1
          },
          "filePage": {
            "type": "string",
            "description": "The file's Commons page.",
            "format": "uri"
          },
          "author": {
            "type": "string",
            "description": "The author, as Commons credits them."
          },
          "license": {
            "type": "string",
            "description": "Short licence name, e.g. \"CC BY-SA 4.0\"."
          },
          "licenseUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The licence text.",
            "format": "uri"
          }
        },
        "required": [
          "src",
          "width",
          "height",
          "filePage",
          "author",
          "license",
          "licenseUrl"
        ]
      },
      "CityPhoto": {
        "type": "object",
        "description": "A photo chosen to show the city, and the first sentences of its English Wikipedia article (CC BY-SA 4.0: link wikiUrl and name the licence with them).",
        "properties": {
          "title": {
            "type": "string",
            "description": "Wikipedia article title."
          },
          "wikiUrl": {
            "type": "string",
            "description": "The article.",
            "format": "uri"
          },
          "intro": {
            "type": "string",
            "description": "The article's first one or two sentences."
          },
          "image": {
            "$ref": "#/components/schemas/CityPhotoImage"
          }
        },
        "required": [
          "title",
          "wikiUrl",
          "intro",
          "image"
        ]
      },
      "CityClimate": {
        "type": "object",
        "description": "Typical weather by month: four series of 12 integers, January first, from mid-month days of recent years (Open-Meteo historical weather, CC BY 4.0). Wet days and rainfall are smoothed across neighbouring months. A guide, not a forecast.",
        "properties": {
          "highC": {
            "type": "array",
            "description": "Typical daily high by month, °C.",
            "items": {
              "type": "integer",
              "description": "°C."
            }
          },
          "lowC": {
            "type": "array",
            "description": "Typical daily low by month, °C.",
            "items": {
              "type": "integer",
              "description": "°C."
            }
          },
          "rainyDays": {
            "type": "array",
            "description": "Wet days (rain or snow) by month, calibrated against weather stations' 1 mm days in seven European cities (within ~10% April–October, ~25% low in January); smoothed with the neighbouring months.",
            "items": {
              "type": "integer",
              "description": "Days.",
              "minimum": 0
            }
          },
          "rainMm": {
            "type": "array",
            "description": "Rainfall by month, mm.",
            "items": {
              "type": "integer",
              "description": "mm.",
              "minimum": 0
            }
          }
        },
        "required": [
          "highC",
          "lowC",
          "rainyDays",
          "rainMm"
        ]
      },
      "CityGuide": {
        "type": "object",
        "description": "One city's guide entry. Any part can be null.",
        "properties": {
          "city": {
            "type": "string",
            "description": "Normalized Wizz city name (lowercase, diacritics stripped), the join key used everywhere, e.g. \"budapest\"."
          },
          "countryCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 3166-1 alpha-2 country code of the city's airports; null when unknown.",
            "pattern": "^[A-Z]{2}$"
          },
          "photo": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CityPhoto"
              },
              {
                "type": "null"
              }
            ]
          },
          "climate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CityClimate"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "city",
          "countryCode",
          "photo",
          "climate"
        ]
      },
      "CityGuideResponse": {
        "type": "object",
        "description": "Every city's photo, intro and typical weather by month. Static: it changes only when PassRadar redeploys.",
        "properties": {
          "climateYears": {
            "type": "array",
            "description": "The years the climate normals were sampled from.",
            "items": {
              "type": "integer",
              "description": "Year."
            }
          },
          "cities": {
            "type": "array",
            "description": "Every city with a photo or a climate, sorted by `city`.",
            "items": {
              "$ref": "#/components/schemas/CityGuide"
            }
          },
          "degraded": {
            "type": "boolean",
            "description": "True when country codes couldn't be loaded: every countryCode is null, and the answer is kept for a minute, never served stale."
          }
        },
        "required": [
          "climateYears",
          "cities"
        ]
      },
      "ApiError": {
        "type": "object",
        "description": "Every error response has this shape.",
        "properties": {
          "error": {
            "type": "string",
            "description": "Machine-readable code, e.g. \"missing_params\"."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation."
          }
        },
        "required": [
          "error",
          "message"
        ]
      }
    }
  }
}