{
  "openapi": "3.0.1",
  "info": {
    "title": "Priceline Hotels Scraper",
    "description": "Priceline hotel scraper & API: extract real-time hotel prices, room rates, availability, star and guest ratings, amenities, photos and verified reviews for any city and dates. Hotel price monitoring and travel/OTA data. No proxies or location IDs needed. Export CSV, Excel. Booking.com alternative.",
    "version": "0.0",
    "x-build-id": "sqpFSrb9qhHfggbuH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~priceline-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-priceline-hotels-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/happyendpoint~priceline-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-priceline-hotels-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/happyendpoint~priceline-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-priceline-hotels-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "health-check",
              "search-hotels",
              "hotel-details",
              "hotel-rooms",
              "hotel-reviews",
              "get-locations"
            ],
            "type": "string",
            "description": "**Health check** (default) only confirms the actor is working and saves one status row. To get data, start with **Search hotels**, then use the `hotelId` values it returns for **Hotel details**, **Rooms & prices** or **Reviews**.",
            "default": "health-check"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "**[Search hotels, Find locations]** A city name such as `Las Vegas`, `Miami` or `London`. The best matching city is used automatically. You can also paste a numeric location ID from **Find locations**."
          },
          "checkIn": {
            "title": "Check-in Date",
            "type": "string",
            "description": "**[Search hotels, Rooms & prices]** Defaults to 30 days from today."
          },
          "checkOut": {
            "title": "Check-out Date",
            "type": "string",
            "description": "**[Search hotels, Rooms & prices]** Defaults to 2 nights after check-in."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search hotels, Rooms & prices]** Number of adult guests.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search hotels, Rooms & prices]** Number of rooms.",
            "default": 1
          },
          "childrenAges": {
            "title": "Children's Ages",
            "type": "string",
            "description": "**[Search hotels, Rooms & prices]** One age per child, separated by commas. Example: `7, 9` for two children aged 7 and 9."
          },
          "minStarRating": {
            "title": "Minimum Star Rating",
            "enum": [
              "",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "**[Search hotels]**",
            "default": ""
          },
          "minGuestRating": {
            "title": "Minimum Guest Rating",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "**[Search hotels]** Minimum guest score out of 10. Example: `8`."
          },
          "maxPricePerNight": {
            "title": "Maximum Price per Night",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search hotels]** Budget per night in the chosen currency."
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "**[Search hotels]** Only hotels that have all selected amenities.",
            "items": {
              "type": "string",
              "enum": [
                "FINTRNT",
                "FBRKFST",
                "FPRKING",
                "SPOOL",
                "FITSPA",
                "SPA",
                "RESTRNT",
                "PETALLOW",
                "AIRSHUTTL",
                "FAIRSHUTTL",
                "BUSCNTR",
                "CASINO",
                "HANDFAC",
                "NSMKFAC"
              ],
              "enumTitles": [
                "Free Internet",
                "Free Breakfast",
                "Free Parking",
                "Pool",
                "Fitness Center",
                "Spa",
                "Restaurant",
                "Pets Allowed",
                "Airport Shuttle",
                "Free Airport Shuttle",
                "Business Center",
                "Casino",
                "Accessible Rooms/Facilities",
                "No Smoking Rooms"
              ]
            }
          },
          "freeCancellation": {
            "title": "Free Cancellation Only",
            "type": "boolean",
            "description": "**[Search hotels]**",
            "default": false
          },
          "payLater": {
            "title": "Pay Later Only",
            "type": "boolean",
            "description": "**[Search hotels]**",
            "default": false
          },
          "propertyTheme": {
            "title": "Property Theme",
            "enum": [
              "",
              "1",
              "4",
              "5",
              "6",
              "7"
            ],
            "type": "string",
            "description": "**[Search hotels]**",
            "default": ""
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "HDR",
              "PRICE",
              "REVIEW_SCORE",
              "DEALS"
            ],
            "type": "string",
            "description": "**[Search hotels]**",
            "default": "HDR"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "**[Search hotels, Rooms & prices]** Three-letter currency code, such as `USD`, `EUR` or `GBP`.",
            "default": "USD"
          },
          "maxItems": {
            "title": "Max Hotels",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search hotels]** Maximum number of hotels to save. Results are fetched 30 at a time automatically.",
            "default": 100
          },
          "hotelIds": {
            "title": "Hotel IDs",
            "type": "array",
            "description": "**[Hotel details, Rooms & prices, Reviews]** One or more `hotelId` values from **Search hotels**. Example: `11286903`.",
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "Max Reviews per Hotel",
            "minimum": 1,
            "type": "integer",
            "description": "**[Reviews]** Maximum reviews to save for each hotel. Reviews are fetched 30 at a time automatically.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}