{
  "openapi": "3.0.1",
  "info": {
    "title": "CheapFlights Hotels Scraper",
    "description": "💫 Scrape CheapFlights.com Hotels",
    "version": "0.1",
    "x-build-id": "OFAiAvR1afe0yUCrq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jupri~cheapflights/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jupri-cheapflights",
        "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/jupri~cheapflights/runs": {
      "post": {
        "operationId": "runs-sync-jupri-cheapflights",
        "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/jupri~cheapflights/run-sync": {
      "post": {
        "operationId": "run-sync-jupri-cheapflights",
        "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": {
          "location": {
            "title": "🧭 Location",
            "type": "string",
            "description": ""
          },
          "distance": {
            "title": "📌 Distance (miles)",
            "type": "string",
            "description": ""
          },
          "prompt": {
            "title": "✨ Prompt",
            "type": "string",
            "description": "💡 Example: \"I want to see beachfront hotels with pool and a restaurant with high rating.\""
          },
          "limit": {
            "title": "♾️ Limit",
            "type": "integer",
            "description": "💡 Number of results"
          },
          "sort": {
            "title": "Sorting",
            "enum": [
              "rank_a",
              "price_a",
              "price_b",
              "stars_b",
              "userrating_b",
              "distance_a"
            ],
            "type": "string",
            "description": ""
          },
          "portal": {
            "title": "🌐 Portal (Language)",
            "enum": [
              "au",
              "ca",
              "hk",
              "in",
              "id",
              "my",
              "nz",
              "ph",
              "qa",
              "sg",
              "za",
              "th",
              "us",
              "uy",
              "ae",
              "gb"
            ],
            "type": "string",
            "description": ""
          },
          "currency": {
            "title": "💲 Currency",
            "enum": [
              "AFN",
              "ALL",
              "DZD",
              "AOA",
              "ARS",
              "AMD",
              "AWG",
              "AUD",
              "AZN",
              "BSD",
              "BHD",
              "BDT",
              "BBD",
              "BZD",
              "BMD",
              "BOB",
              "BAM",
              "BWP",
              "BRL",
              "GBP",
              "BND",
              "BGN",
              "MMK",
              "KHR",
              "CAD",
              "CVE",
              "KYD",
              "XOF",
              "XAF",
              "XPF",
              "CLP",
              "CNY",
              "COP",
              "CDF",
              "CRC",
              "CZK",
              "DKK",
              "DOP",
              "XCD",
              "EGP",
              "ETB",
              "EUR",
              "FJD",
              "GEL",
              "GTQ",
              "GNF",
              "GYD",
              "HTG",
              "HNL",
              "HKD",
              "HUF",
              "ISK",
              "INR",
              "IDR",
              "IQD",
              "ILS",
              "JMD",
              "JPY",
              "JOD",
              "KZT",
              "KES",
              "KWD",
              "KGS",
              "LAK",
              "LBP",
              "LSL",
              "LRD",
              "LYD",
              "MOP",
              "MKD",
              "MGA",
              "MYR",
              "MVR",
              "MRU",
              "MUR",
              "MXN",
              "MDL",
              "MNT",
              "MAD",
              "MZN",
              "NAD",
              "NPR",
              "ANG",
              "GHS",
              "TWD",
              "NZD",
              "NIO",
              "NGN",
              "NOK",
              "OMR",
              "PKR",
              "PAB",
              "PGK",
              "PYG",
              "PEN",
              "PHP",
              "PLN",
              "QAR",
              "RON",
              "SHP",
              "SAR",
              "RSD",
              "SCR",
              "SGD",
              "SBD",
              "ZAR",
              "KRW",
              "LKR",
              "SDG",
              "SRD",
              "SZL",
              "SEK",
              "CHF",
              "SYP",
              "TJS",
              "TZS",
              "THB",
              "TTD",
              "TND",
              "TRY",
              "TVD",
              "AED",
              "UGX",
              "UAH",
              "USD",
              "UYU",
              "UZS",
              "VUV",
              "VND",
              "YER",
              "ZMW"
            ],
            "type": "string",
            "description": ""
          },
          "check_in": {
            "title": "Check-In Date",
            "type": "string",
            "description": ""
          },
          "check_out": {
            "title": "Check-Out Date",
            "type": "string",
            "description": ""
          },
          "rooms": {
            "title": "Rooms",
            "type": "integer",
            "description": "💡 Number of rooms"
          },
          "adults": {
            "title": "Adults",
            "type": "integer",
            "description": "💡 Number of adults"
          },
          "children": {
            "title": "Children (Ages 0-17 years)",
            "type": "array",
            "description": "💡 Children ages",
            "items": {
              "type": "string"
            }
          },
          "price_mode": {
            "title": "Price Mode",
            "enum": [
              "nightly-base",
              "nightly-total",
              "total"
            ],
            "type": "string",
            "description": ""
          },
          "price_min": {
            "title": "Price Range",
            "type": "integer",
            "description": ""
          },
          "price_max": {
            "title": "",
            "type": "integer",
            "description": ""
          },
          "member_rates": {
            "title": "Member Rates",
            "type": "boolean",
            "description": "💡 Up to 30% off Member only rates."
          },
          "private_deals": {
            "title": "Private Deals",
            "type": "boolean",
            "description": "💡 Up to 30% off Website exclusive rates."
          },
          "freebies": {
            "title": "Freebies",
            "type": "array",
            "description": "",
            "items": {
              "type": "string",
              "enum": [
                "allinclusive",
                "freebreakfast",
                "freeparking",
                "freecancellation",
                "freeinternet",
                "freeairportshuttle"
              ],
              "enumTitles": [
                "All Inclusive",
                "Free Breakfast",
                "Free Parking",
                "Free Cancellation",
                "Free Internet",
                "Free Airport Shuttle"
              ]
            }
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "",
            "items": {
              "type": "string",
              "enum": [
                "24hfrontdesk",
                "adultsonly",
                "ac",
                "shuttle",
                "beachfront",
                "bizcenter",
                "casino",
                "elevator",
                "evcharger",
                "fireplace",
                "fitness",
                "gameroom",
                "golf",
                "grill",
                "hairdryer",
                "hottub",
                "facilitiesfordisabledguests",
                "internet",
                "kitchenette",
                "linens",
                "nosmokerooms",
                "parking",
                "pets",
                "pool",
                "restaurant",
                "rooftop",
                "ski",
                "soapshampooprovided",
                "spa",
                "terracepatio",
                "towels",
                "wifi"
              ],
              "enumTitles": [
                "24hr front desk",
                "Adults only",
                "Air-conditioned",
                "Airport shuttle",
                "Beachfront",
                "Business center",
                "Casino",
                "Elevator",
                "EV charging station",
                "Fireplace",
                "Fitness",
                "Game room",
                "Golf",
                "Grill",
                "Hairdryer",
                "Hot tub",
                "Increased accessibility",
                "Internet",
                "Kitchen/Kitchenette",
                "Linens",
                "Non-smoking rooms",
                "Parking",
                "Pet friendly",
                "Pool",
                "Restaurant",
                "Rooftop",
                "Skiing",
                "Soap and Shampoo Provided",
                "Spa",
                "Terrace/Patio",
                "Towels",
                "Wi-Fi"
              ]
            }
          },
          "stars": {
            "title": "⭐ Hotel Class",
            "enum": [
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": ""
          },
          "score": {
            "title": "🎖️ Review Score",
            "enum": [
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": ""
          },
          "types": {
            "title": "Type of stay",
            "type": "array",
            "description": "",
            "items": {
              "type": "string",
              "enum": [
                "hotels",
                "apthotel",
                "bb",
                "guesthouse",
                "hostel",
                "hotel",
                "inn",
                "motel",
                "pension",
                "pousada",
                "resort",
                "riad",
                "ryokan",
                "rentals",
                "rental-apartment",
                "rental-bungalow",
                "rental-cabin",
                "rental-chalet",
                "rental-chateau",
                "rental-condo",
                "rental-cottage",
                "rental-gite",
                "rental-homestay",
                "rental-holhome",
                "rental-lodge",
                "rental",
                "rental-studio",
                "rental-villa",
                "unique",
                "accommodation",
                "rental-agritour",
                "rental-barn",
                "rental-boat",
                "rental-campgrnd",
                "capsulehotel",
                "rental-caravan",
                "rental-caravanpk",
                "rental-castle",
                "rental-cavehouse",
                "rental-cruise",
                "rental-farmstay",
                "rental-holpark",
                "rental-houseboat",
                "lovehotel",
                "rental-luxurytnt",
                "rental-mas",
                "rental-palace",
                "rental-ranch",
                "rental-rv",
                "rental-residence",
                "rental-safari",
                "rental-ss_accomd",
                "rental-timeshare",
                "rental-tower",
                "rental-treehouse"
              ],
              "enumTitles": [
                "🟢 All Hotels",
                "📂 Aparthotel",
                "📂 Bed & Breakfast",
                "📂 Guest house",
                "📂 Hostel",
                "📂 Hotel",
                "📂 Inn",
                "📂 Motel",
                "📂 Pension",
                "📂 Pousada",
                "📂 Resort",
                "📂 Riad",
                "📂 Ryokan",
                "🟢 All Rentals",
                "📂 Apartment",
                "📂 Bungalow",
                "📂 Cabin",
                "📂 Chalet",
                "📂 Chateau",
                "📂 Condo",
                "📂 Cottage",
                "📂 Gîte",
                "📂 Homestay",
                "📂 House",
                "📂 Lodge",
                "📂 Rental",
                "📂 Studio",
                "📂 Villa",
                "🟢 All Unique",
                "📂 Accommodation",
                "📂 Agritourism",
                "📂 Barn",
                "📂 Boat",
                "📂 Campground",
                "📂 Capsule hotel",
                "📂 Caravan",
                "📂 Caravan Park",
                "📂 Castle",
                "📂 Cave House",
                "📂 Cruise",
                "📂 Farm stay",
                "📂 Holiday Park",
                "📂 Houseboat",
                "📂 Love Hotel",
                "📂 Luxury Tent",
                "📂 Mas",
                "📂 Palace",
                "📂 Ranch",
                "📂 Recreational Vehicle",
                "📂 Residence",
                "📂 Safari/Tentalow",
                "📂 Self-sufficient Accommodation",
                "📂 Timeshare",
                "📂 Tower",
                "📂 Treehouse"
              ]
            }
          },
          "style": {
            "title": "Style",
            "type": "array",
            "description": "",
            "items": {
              "type": "string",
              "enum": [
                "budget",
                "familyfriendly",
                "golf",
                "luxury",
                "romantic",
                "spa_wellness",
                "design"
              ],
              "enumTitles": [
                "Budget",
                "Family",
                "Golf",
                "Luxury",
                "Romantic",
                "Spa/Wellness",
                "Trendy"
              ]
            }
          },
          "hotel_chain": {
            "title": "Hotel Chain",
            "type": "string",
            "description": "TODO"
          },
          "hotel_name": {
            "title": "Hotel Name",
            "type": "string",
            "description": "TODO"
          },
          "dev_proxy_config": {
            "title": "🌐 PROXY NETWORKING",
            "type": "object",
            "description": "💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>"
          },
          "dev_custom_headers": {
            "title": "📜 HTTP HEADERS",
            "type": "array",
            "description": "💡 Additional HTTP Headers",
            "items": {
              "type": "object",
              "required": [
                "key",
                "value"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key"
                },
                "value": {
                  "type": "string",
                  "title": "Value"
                }
              }
            }
          },
          "dev_custom_cookies": {
            "title": "🍰 HTTP COOKIES",
            "type": "array",
            "description": "💡 Additional HTTP Cookies",
            "items": {
              "type": "object",
              "required": [
                "key",
                "value"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key"
                },
                "value": {
                  "type": "string",
                  "title": "Value"
                }
              }
            }
          },
          "dev_transform_fields": {
            "title": "♻️ CUSTOM FIELD",
            "type": "array",
            "description": "💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>",
            "items": {
              "type": "object",
              "required": [
                "key",
                "value"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "title": "Key"
                },
                "value": {
                  "type": "string",
                  "title": "Value"
                }
              }
            }
          },
          "dev_dataset_name": {
            "title": "📁 CUSTOM STORAGE",
            "type": "string",
            "description": "💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>"
          },
          "dev_dataset_clear": {
            "title": "Clear Storage",
            "type": "boolean",
            "description": "Clear Dataset before insert/update."
          },
          "dev_no_strip": {
            "title": "Disable data cleansing",
            "type": "boolean",
            "description": "💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}