{
  "openapi": "3.0.1",
  "info": {
    "title": "Marella Cruises (TUI) Scraper: Itineraries, Ports & Prices",
    "description": "Scrape TUI UK / Marella Cruises sailings: ship, dates, nights, embarkation port, ports of call, board basis, lead-in price and fly-cruise flight details. Filter by ship, departure airport, date and duration. Unofficial; public data only.",
    "version": "1.0",
    "x-build-id": "lXChKuqB27vjlhPSJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vulnv~tui-cruises-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vulnv-tui-cruises-scraper",
        "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/vulnv~tui-cruises-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vulnv-tui-cruises-scraper",
        "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/vulnv~tui-cruises-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vulnv-tui-cruises-scraper",
        "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": {
          "departureAirports": {
            "title": "Departure airports",
            "type": "array",
            "description": "UK airports to fly from (fly-cruise). Leave empty for the London airports.",
            "items": {
              "type": "string",
              "enum": [
                "LGW",
                "LHR",
                "LCY",
                "LTN",
                "SEN",
                "STN",
                "BHX",
                "MAN",
                "NCL",
                "GLA",
                "EDI",
                "BRS",
                "EMA",
                "DSA",
                "CWL",
                "BOH",
                "NWI",
                "ABZ",
                "BFS",
                "LPL"
              ],
              "enumTitles": [
                "London Gatwick",
                "London Heathrow",
                "London City",
                "London Luton",
                "London Southend",
                "London Stansted",
                "Birmingham",
                "Manchester",
                "Newcastle",
                "Glasgow",
                "Edinburgh",
                "Bristol",
                "East Midlands",
                "Doncaster Sheffield",
                "Cardiff",
                "Bournemouth",
                "Norwich",
                "Aberdeen",
                "Belfast",
                "Liverpool"
              ]
            },
            "default": [
              "LGW",
              "LHR",
              "LCY",
              "LTN",
              "SEN",
              "STN"
            ]
          },
          "departureDate": {
            "title": "Departure date (from)",
            "type": "string",
            "description": "Earliest sailing date to search (YYYY-MM-DD). Defaults to the 1st of next month."
          },
          "departureDateTo": {
            "title": "Departure date (to)",
            "type": "string",
            "description": "Optional latest sailing date (YYYY-MM-DD). Leave empty to keep going until maxResults is reached."
          },
          "duration": {
            "title": "Duration",
            "enum": [
              "1-7",
              "8-14",
              "15-30",
              "all"
            ],
            "type": "string",
            "description": "Cruise length band, in nights.",
            "default": "1-7"
          },
          "ships": {
            "title": "Ships",
            "type": "array",
            "description": "Restrict to specific Marella ships. Leave empty for all ships.",
            "items": {
              "type": "string",
              "enum": [
                "Marella Explorer",
                "Marella Explorer 2",
                "Marella Discovery",
                "Marella Discovery 2",
                "Marella Voyager"
              ]
            }
          },
          "destination": {
            "title": "Destination / port",
            "type": "string",
            "description": "Optional: only keep sailings whose ports of call or countries contain this text, e.g. \"Greece\", \"Santorini\", \"Spain\"."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adults (affects pricing).",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children (affects pricing).",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of sailing records to store.",
            "default": 100
          },
          "advancedFilter": {
            "title": "Advanced: extra query string",
            "type": "string",
            "description": "Power users: extra raw query-string parameters appended to the TUI search URL (e.g. \"flexibility=true\"). Leave empty."
          },
          "renderApiKey": {
            "title": "Rendering API key (optional)",
            "type": "string",
            "description": "Optional override for the rendering API key. Not required - the Actor ships with one."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}