{
  "openapi": "3.0.1",
  "info": {
    "title": "Unofficial Virgin Voyages Itineraries",
    "description": "Unofficial scraper for public Virgin Voyages voyage-search pages: itineraries, sailing dates, ports of call, and visible cabin starting prices.",
    "version": "0.1",
    "x-build-id": "NNVTJNZFQFGJaSqHl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/devpartners~virgin-voyages-itineraries/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-devpartners-virgin-voyages-itineraries",
        "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/devpartners~virgin-voyages-itineraries/runs": {
      "post": {
        "operationId": "runs-sync-devpartners-virgin-voyages-itineraries",
        "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/devpartners~virgin-voyages-itineraries/run-sync": {
      "post": {
        "operationId": "run-sync-devpartners-virgin-voyages-itineraries",
        "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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Virgin Voyages find-a-voyage URLs to scrape. Query filters are preserved and the fields below are added to each URL.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "dateFrom": {
            "title": "Sailing date from",
            "type": "string",
            "description": "Earliest sailing date to include. Uses Virgin's dateFrom query filter."
          },
          "dateTo": {
            "title": "Sailing date to",
            "type": "string",
            "description": "Latest sailing date to include. Uses Virgin's dateTo query filter."
          },
          "ships": {
            "title": "Ships",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results to selected Virgin Voyages ships.",
            "items": {
              "type": "string",
              "enum": [
                "BR",
                "RS",
                "SC",
                "VL"
              ],
              "enumTitles": [
                "Brilliant Lady",
                "Resilient Lady",
                "Scarlet Lady",
                "Valiant Lady"
              ]
            }
          },
          "homePorts": {
            "title": "Departs from",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results to selected departure home ports.",
            "items": {
              "type": "string",
              "enum": [
                "ATH",
                "BCN",
                "BOY",
                "CIV",
                "LAX",
                "MIA",
                "PME",
                "SEA",
                "SJU",
                "VAN"
              ],
              "enumTitles": [
                "Athens (Piraeus)",
                "Barcelona",
                "New York City, New York",
                "Rome (Civitavecchia)",
                "Los Angeles, California",
                "Miami, Florida",
                "Portsmouth, United Kingdom",
                "Seattle, Washington",
                "San Juan, Puerto Rico",
                "Vancouver, British Columbia"
              ]
            }
          },
          "durations": {
            "title": "Durations",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results by voyage length in nights.",
            "items": {
              "type": "string",
              "enum": [
                "1-3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9-14",
                "15+"
              ],
              "enumTitles": [
                "1-3 nights",
                "4 nights",
                "5 nights",
                "6 nights",
                "7 nights",
                "8 nights",
                "9-14 nights",
                "15+ nights"
              ]
            }
          },
          "maxItems": {
            "title": "# of results to return",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Stops after this many sailing-date rows.",
            "default": 25
          },
          "includeDetails": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "Fetch public fullCruiseDetails pages for richer day-by-day ports of call.",
            "default": true
          },
          "maxDetailPages": {
            "title": "Maximum detail pages",
            "minimum": 0,
            "type": "integer",
            "description": "Caps public fullCruiseDetails requests by package code. Use 0 for no limit.",
            "default": 25
          },
          "currency": {
            "title": "Currency label",
            "type": "string",
            "description": "Currency label to attach to parsed public prices.",
            "default": "USD"
          },
          "requestDelayMillis": {
            "title": "Request delay",
            "minimum": 0,
            "type": "integer",
            "description": "Delay between Virgin Voyages requests.",
            "default": 750
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}