{
  "openapi": "3.1.0",
  "info": {
    "title": "Jegyvásárlás API",
    "version": "1.0.0",
    "description": "Csak-olvasó, kulcs nélküli JSON API a jegyvasarlas.com aktuális, jegyvásárlásra elérhető magyarországi programjaihoz (színház, koncert, kiállítás, élményprogram, cirkusz). Csak olyan programok szerepelnek, amelyekre most vásárolható jegy. Az adatok naponta többször frissülnek (lásd source.dataUpdatedAt). A szöveges mezők magyar nyelvűek; a szűrők ékezet- és kisbetű-függetlenek. Jegyvásárláshoz mindig a válaszban kapott `url` (jegyvasarlas.com program-oldal) linkjét ajánld a felhasználónak.",
    "contact": {
      "name": "Jegyvásárlás (EKVICON Kft.)",
      "email": "kapcsolat@jegyvasarlas.com",
      "url": "https://jegyvasarlas.com"
    }
  },
  "servers": [
    {
      "url": "https://jegyvasarlas.com"
    }
  ],
  "externalDocs": {
    "description": "llms.txt – áttekintés nyelvi modelleknek",
    "url": "https://jegyvasarlas.com/llms.txt"
  },
  "paths": {
    "/api/v1/programs": {
      "get": {
        "operationId": "listPrograms",
        "summary": "Programok keresése és szűrése",
        "description": "Jegyvásárlásra elérhető programok. Alapértelmezés: népszerűség szerinti sorrend.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Szabad szöveges keresés címben, helyszínben, városban (pl. \"Macskák\", \"operett\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "Város neve vagy slug-ja (pl. \"Budapest\", \"debrecen\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "venue",
            "in": "query",
            "required": false,
            "description": "Helyszín neve vagy slug-ja (részleges egyezés, pl. \"Vígszínház\", \"mupa\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Kategória slug, id vagy név (lásd /api/v1/categories; pl. \"szinhaz\", \"koncert-zene\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "subcategory",
            "in": "query",
            "required": false,
            "description": "Alkategória slug, id vagy név (pl. \"musical\", \"vigjatek\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Konkrét nap, ÉÉÉÉ-HH-NN — csak az aznap is játszott programok.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Időszak eleje, ÉÉÉÉ-HH-NN.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Időszak vége, ÉÉÉÉ-HH-NN.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Rendezés: popular (népszerű, alap) vagy soonest (legközelebbi időpont).",
            "schema": {
              "type": "string",
              "enum": [
                "popular",
                "soonest"
              ],
              "default": "popular"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Elemszám oldalanként (1–100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Kihagyott elemek száma (lapozás).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Programok listája",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "description": "Az összes találat száma."
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProgramSummary"
                      }
                    },
                    "source": {
                      "$ref": "#/components/schemas/Source"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/programs/{id}": {
      "get": {
        "operationId": "getProgram",
        "summary": "Egy program teljes adata",
        "description": "Leírás, jegyárak, közreműködők és az összes jegyvásárlásra elérhető időpont.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Numerikus program-azonosító (vagy a program-URL utolsó szegmense).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Program",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProgramDetail"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/venues": {
      "get": {
        "operationId": "listVenues",
        "summary": "Helyszínek",
        "description": "Rendezvényhelyszínek fontossági sorrendben (kiemeltek elöl, majd eseményszám szerint).",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Keresés név vagy város szerint.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "Város neve vagy slug-ja.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Helyszín-típus slug (pl. \"szinhazak\", \"koncerthelyszinek\", \"muzeumok\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Elemszám (1–100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Kihagyott elemek száma (lapozás).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Helyszínek listája",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "description": "Az összes találat száma."
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VenueSummary"
                      }
                    },
                    "source": {
                      "$ref": "#/components/schemas/Source"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/venues/{slug}": {
      "get": {
        "operationId": "getVenue",
        "summary": "Egy helyszín adatai és aktuális műsora",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "A helyszín slug-ja (pl. \"vigszinhaz\").",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Helyszín",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/VenueDetail"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "programCount": {
                          "type": "integer"
                        },
                        "programs": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ProgramSummary"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/cities": {
      "get": {
        "operationId": "listCities",
        "summary": "Városok, ahol elérhető program van",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Keresés településnévre.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Városok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/City"
                      }
                    },
                    "source": {
                      "$ref": "#/components/schemas/Source"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "Kategóriák és alkategóriák",
        "responses": {
          "200": {
            "description": "Kategóriafa",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Category"
                      }
                    },
                    "source": {
                      "$ref": "#/components/schemas/Source"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/search": {
      "get": {
        "operationId": "search",
        "summary": "Vegyes keresés programokra, helyszínekre, városokra",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Keresőkifejezés (min. 2 karakter).",
            "schema": {
              "type": "string",
              "minLength": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Találatok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/availability": {
      "get": {
        "operationId": "getLiveAvailability",
        "summary": "Élő jegykészlet és legalacsonyabb ár időpontonként",
        "description": "A többi végpont a legutóbbi frissítés állapotát adja; ez élőben kérdezi le a jegyrendszert (60 mp gyorsítótár). Az időpont-azonosítók a ProgramDetail.events[].id mezőből jönnek.",
        "parameters": [
          {
            "name": "e",
            "in": "query",
            "required": true,
            "description": "Vesszővel elválasztott időpont-azonosítók (max. 16).",
            "schema": {
              "type": "string",
              "example": "1470807,1470829"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Időpont-azonosító -> készlet",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "avail": {
                        "type": "boolean",
                        "description": "Van-e még jegy."
                      },
                      "count": {
                        "type": "integer",
                        "description": "Elérhető jegyek száma."
                      },
                      "min": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Legalacsonyabb jegyár (Ft)."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "Error": {
        "description": "Hiba",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Source": {
        "type": "object",
        "description": "Idézési forrás és az adat frissessége.",
        "properties": {
          "site": {
            "type": "string"
          },
          "canonical": {
            "type": "string",
            "description": "A megfelelő jegyvasarlas.com oldal.",
            "format": "uri"
          },
          "dataUpdatedAt": {
            "type": "string",
            "description": "Az adatok utolsó frissítése.",
            "format": "date-time"
          },
          "note": {
            "type": "string"
          }
        }
      },
      "VenueRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        }
      },
      "ProgramSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Program-azonosító."
          },
          "title": {
            "type": "string"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "subcategory": {
            "type": [
              "string",
              "null"
            ]
          },
          "cities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "venues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VenueRef"
            }
          },
          "nextDate": {
            "type": "string",
            "description": "Legközelebbi elérhető időpont (helyi idő, Europe/Budapest).",
            "format": "date-time"
          },
          "availableDays": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date"
            },
            "description": "Minden nap, amelyre van jegy."
          },
          "availableEventCount": {
            "type": "integer"
          },
          "minPriceHuf": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Legalacsonyabb jegyár forintban."
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "url": {
            "type": "string",
            "description": "A program-oldal a jegyvasarlas.com-on — ezt ajánld jegyvásárláshoz.",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "description": "Ugyanez az oldal markdownban.",
            "format": "uri"
          }
        }
      },
      "ProgramDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ProgramSummary"
          },
          {
            "type": "object",
            "properties": {
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "performers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "maxPriceHuf": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "purchaseUrl": {
                "type": "string",
                "description": "Közvetlen jegyvásárlási oldal.",
                "format": "uri"
              },
              "available": {
                "type": "boolean"
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "Időpont-azonosító (élő készlethez: /api/availability)."
                    },
                    "start": {
                      "type": "string",
                      "description": "Kezdés (helyi idő, Europe/Budapest).",
                      "format": "date-time"
                    },
                    "venue": {
                      "type": "string"
                    },
                    "city": {
                      "type": "string"
                    },
                    "venueUrl": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    },
                    "lat": {
                      "type": "number"
                    },
                    "lng": {
                      "type": "number"
                    }
                  }
                }
              },
              "liveAvailabilityUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "source": {
                "$ref": "#/components/schemas/Source"
              }
            }
          }
        ]
      },
      "VenueSummary": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "featured": {
            "type": "boolean"
          },
          "eventCount": {
            "type": "integer"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "VenueDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/VenueSummary"
          },
          {
            "type": "object",
            "properties": {
              "address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lat": {
                "type": "number"
              },
              "lng": {
                "type": "number"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "image": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "website": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        ]
      },
      "City": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "eventCount": {
            "type": "integer"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Category": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "eventCount": {
            "type": "integer"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "subcategories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "programCount": {
                  "type": "integer"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-data-updated-at": "2026-10-05T22:21:32.049Z"
}