{
  "openapi": "3.0.1",
  "info": {
    "title": "Secret Escapes Deal Intelligence Scraper",
    "description": "Monitor public Secret Escapes luxury hotel and travel deals: date-specific public price/availability signals, calendar-like date grid, discounts, sale end dates, destinations, badges, images, facilities, and optional detail-page metadata without login.",
    "version": "0.4",
    "x-build-id": "w5WoyTGWtx6MEBdN5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/viable_guard~secret-escapes-deal-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-viable_guard-secret-escapes-deal-intelligence",
        "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/viable_guard~secret-escapes-deal-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-viable_guard-secret-escapes-deal-intelligence",
        "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/viable_guard~secret-escapes-deal-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-viable_guard-secret-escapes-deal-intelligence",
        "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": {
          "territory": {
            "title": "Territory",
            "type": "string",
            "description": "Secret Escapes market/territory code. UK is the main public site tested.",
            "default": "UK"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Optional keyword or destination query, e.g. Lisbon, Sicily, Maldives. Leave blank for all current sales."
          },
          "checkin": {
            "title": "Check-in date",
            "type": "string",
            "description": "Optional public date-search check-in in YYYY-MM-DD. Provide both checkin and checkout to return date-specific public price/availability signals."
          },
          "checkout": {
            "title": "Check-out date",
            "type": "string",
            "description": "Optional public date-search check-out in YYYY-MM-DD. Provide both checkin and checkout to return date-specific total price, nightly price and offer ID when Secret Escapes exposes them publicly."
          },
          "dateGrid": {
            "title": "Date grid mode",
            "type": "boolean",
            "description": "Run multiple public date searches to build a calendar-like availability/price grid. Produces one row per deal/date combination until maxItems is reached.",
            "default": false
          },
          "startDate": {
            "title": "Date grid start date",
            "type": "string",
            "description": "First check-in date for dateGrid mode in YYYY-MM-DD. If omitted, checkin is used."
          },
          "endDate": {
            "title": "Date grid end date",
            "type": "string",
            "description": "End boundary for dateGrid mode in YYYY-MM-DD. Generated checkout dates must be on or before this date. If omitted, checkout is used."
          },
          "stayNights": {
            "title": "Stay nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of nights per generated dateGrid stay.",
            "default": 2
          },
          "dateStepDays": {
            "title": "Date step days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Days between generated dateGrid check-ins. Use 1 for daily, 7 for weekly.",
            "default": 1
          },
          "maxDateSearches": {
            "title": "Max date searches",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Safety cap for dateGrid searches. Each generated date pair triggers a public Secret Escapes search.",
            "default": 14
          },
          "maxDealsPerDate": {
            "title": "Max deals per date",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "In dateGrid mode, maximum result rows kept from each generated date search. Defaults to pageSize.",
            "default": 3
          },
          "dateGridRequestDelaySecs": {
            "title": "Delay between date searches",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Polite delay between dateGrid public search requests.",
            "default": 0.4
          },
          "maxItems": {
            "title": "Max deals",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of deal rows to extract.",
            "default": 50
          },
          "pageSize": {
            "title": "Page size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of rows requested per public GraphQL page.",
            "default": 50
          },
          "offset": {
            "title": "Offset",
            "minimum": 0,
            "type": "integer",
            "description": "Start offset for pagination.",
            "default": 0
          },
          "travelTypes": {
            "title": "Travel types",
            "type": "array",
            "description": "Secret Escapes public travel type filters. HOTEL_ONLY is safest; WITH_FLIGHTS can include packages with flights.",
            "items": {
              "type": "string"
            }
          },
          "withFlights": {
            "title": "Only deals with flights",
            "type": "boolean",
            "description": "Shortcut to request WITH_FLIGHTS deals instead of HOTEL_ONLY.",
            "default": false
          },
          "collections": {
            "title": "Collections",
            "type": "array",
            "description": "Optional Secret Escapes collection codes if known. Leave empty for all public deals.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Optional upstream sort value if supported by Secret Escapes, e.g. DISCOUNT, PRICE_ASC, PRICE_DESC, NEWEST."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum upstream price filter in the territory currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum upstream price filter in the territory currency."
          },
          "minDiscountPercent": {
            "title": "Minimum discount %",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only deals with at least this discount percentage. Leave empty for no filter."
          },
          "includeDetails": {
            "title": "Enrich with detail pages",
            "type": "boolean",
            "description": "Fetch public deal detail pages for editorial description, property details, full facilities and lat/lng. Slower but richer.",
            "default": false
          },
          "detailLimit": {
            "title": "Detail page limit",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum detail pages to enrich when includeDetails is enabled.",
            "default": 10
          },
          "detailRequestDelaySecs": {
            "title": "Delay between detail pages",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Polite delay between optional detail-page requests.",
            "default": 0.4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "HTTP request timeout in seconds.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}