{
  "openapi": "3.0.1",
  "info": {
    "title": "Cinema City Seat Watcher",
    "description": "Get notified when seats open up at Cinema City: new showings, returned tickets, IMAX and other halls.",
    "version": "0.1",
    "x-build-id": "Q8vzbbmyP5pOGJjqF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/artogahr~cinemacity-seat-watcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-artogahr-cinemacity-seat-watcher",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/artogahr~cinemacity-seat-watcher/runs": {
      "post": {
        "operationId": "runs-sync-artogahr-cinemacity-seat-watcher",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/artogahr~cinemacity-seat-watcher/run-sync": {
      "post": {
        "operationId": "run-sync-artogahr-cinemacity-seat-watcher",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "watch",
              "showtimes"
            ],
            "type": "string",
            "description": "Watch: remember what was seen and notify about new showings and freed seats. Run it on a schedule. Showtimes: save the current showings once.",
            "default": "watch"
          },
          "country": {
            "title": "Country",
            "enum": [
              "cz",
              "sk",
              "pl",
              "hu",
              "ro",
              "bg",
              "il",
              "il-rh"
            ],
            "type": "string",
            "description": "Cinema City site. Exact seat checks are available for Czechia; other countries use the share of free seats.",
            "default": "cz"
          },
          "cinemas": {
            "title": "Cinemas",
            "type": "array",
            "description": "Cinema ids or unique name parts, e.g. \"Flora\". Empty means every cinema.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City ids, e.g. \"prague\". All cinemas of the city are added to the cinemas above.",
            "items": {
              "type": "string"
            }
          },
          "films": {
            "title": "Films",
            "type": "array",
            "description": "Film ids or title parts, in the local language or English, e.g. \"Dune: Part Three\". If the film is not listed yet, the watch waits for it.",
            "items": {
              "type": "string"
            }
          },
          "auditoriums": {
            "title": "Halls",
            "type": "array",
            "description": "Hall name parts, e.g. \"IMAX\". Any of them must match.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First day, YYYY-MM-DD. A showing after midnight counts for the day before, as on the cinema website."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last day, YYYY-MM-DD."
          },
          "timeFrom": {
            "title": "Earliest start time",
            "type": "string",
            "description": "HH:MM, e.g. 17:00."
          },
          "timeTo": {
            "title": "Latest start time",
            "type": "string",
            "description": "HH:MM, e.g. 21:30."
          },
          "weekdays": {
            "title": "Weekdays",
            "type": "array",
            "description": "Only these days. Empty means every day.",
            "items": {
              "type": "string",
              "enum": [
                "Mon",
                "Tue",
                "Wed",
                "Thu",
                "Fri",
                "Sat",
                "Sun"
              ],
              "enumTitles": [
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
                "Sunday"
              ]
            }
          },
          "attributesInclude": {
            "title": "Required attributes",
            "type": "array",
            "description": "Attribute ids every showing must have, e.g. \"70-mm\", \"subbed\", \"original-lang-en\".",
            "items": {
              "type": "string"
            }
          },
          "attributesExclude": {
            "title": "Excluded attributes",
            "type": "array",
            "description": "Attribute ids a showing must not have, e.g. \"dubbed\".",
            "items": {
              "type": "string"
            }
          },
          "rows": {
            "title": "Wanted rows",
            "type": "string",
            "description": "Only count seats in these rows, e.g. \"6-10\" or \"5,7,9-11\". Empty means every row."
          },
          "minAdjacentSeats": {
            "title": "Seats together",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only count seats in groups of at least this many seats next to each other.",
            "default": 1
          },
          "includeWheelchairSeats": {
            "title": "Count wheelchair spaces",
            "type": "boolean",
            "description": "Wheelchair spaces are often the only free seats. They are ignored unless this is on.",
            "default": false
          },
          "seatLevel": {
            "title": "Seat checks",
            "enum": [
              "auto",
              "off"
            ],
            "type": "string",
            "description": "Auto: check exact seats where supported. Off: use only the share of free seats.",
            "default": "auto"
          },
          "ntfyTopic": {
            "title": "ntfy topic",
            "type": "string",
            "description": "Push notifications to your phone with the free ntfy app. Pick a long random topic name and subscribe to it in the app. Anyone who knows the name can read it."
          },
          "ntfyServer": {
            "title": "ntfy server",
            "type": "string",
            "description": "Use your own ntfy server if you have one.",
            "default": "https://ntfy.sh"
          },
          "ntfyToken": {
            "title": "ntfy access token",
            "type": "string",
            "description": "Only for protected ntfy servers."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Each change is POSTed here as JSON."
          },
          "notifyOnFirstRun": {
            "title": "Notify on the first run",
            "type": "boolean",
            "description": "On the first run, notify about showings that already have wanted seats.",
            "default": true
          },
          "notifyOnMoreSeats": {
            "title": "Notify about newly freed seats",
            "type": "boolean",
            "description": "Notify each time wanted seats free up that were not free recently, for example after cancellations, even if other seats are already free.",
            "default": true
          },
          "seatMemoryMinutes": {
            "title": "Seat memory (minutes)",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "A seat that was free within this time does not count as new when it is free again. Seats are often held for a few minutes while someone else checks out.",
            "default": 30
          },
          "aggregatePolicy": {
            "title": "Share-of-seats alerts",
            "enum": [
              "auto",
              "ignore"
            ],
            "type": "string",
            "description": "Auto: where exact seats are not available, alert when at least 5% of seats are free. Ignore: never.",
            "default": "auto"
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store that remembers what each watch has seen. Run each watch from one schedule only.",
            "default": "cinemacity-watch"
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Record for this watch. Empty: derived from the filters, so changing filters starts a new watch."
          },
          "resetState": {
            "title": "Reset state",
            "type": "boolean",
            "description": "With a fixed state key: start over when the filters changed. Pending notifications are kept.",
            "default": false
          },
          "maxDays": {
            "title": "Max days per check",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Upper limit of cinema days fetched in one check.",
            "default": 62
          },
          "maxSeatChecks": {
            "title": "Max seat checks per check",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Upper limit of showings whose seats are checked in one check, earliest first.",
            "default": 20
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}