{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Search Scraper",
    "description": "Scrape Google Hotels search results: hotel name, rating, review count, price, check-in and check-out dates, URL and address. Search by query, location and dates, or paste a direct URL.",
    "version": "0.8",
    "x-build-id": "Cpnb9YgutTeySE5sH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~google-hotels-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-google-hotels-search-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/khadinakbar~google-hotels-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-google-hotels-search-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/khadinakbar~google-hotels-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-google-hotels-search-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": {
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, region or landmark to search, for example New York, Paris or Times Square. For several cities at once use the Locations field instead."
          },
          "locations": {
            "title": "Locations (several cities)",
            "type": "array",
            "description": "Search many destinations in one run, for example [\"Paris\",\"Rome\",\"Madrid\"]. Each city returns up to Max results hotels and the cities run in parallel.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search words (optional)",
            "type": "string",
            "description": "Optional words added to the destination, for example \"boutique hotels\" or \"hotels near the beach\". Leave blank for a plain hotel search."
          },
          "googleHotelsUrl": {
            "title": "Google Hotels URL (optional)",
            "type": "string",
            "description": "Paste a google.com/travel/hotels link to reuse its destination, dates and guests. It overrides Location, Locations, dates and guests when set."
          },
          "checkIn": {
            "title": "Check-in date (YYYY-MM-DD)",
            "type": "string",
            "description": "Arrival date, for example 2026-12-10. Leave blank to use 30 days from today. Must be today or later."
          },
          "checkOut": {
            "title": "Check-out date (YYYY-MM-DD)",
            "type": "string",
            "description": "Departure date, for example 2026-12-12. Must be after check-in. Leave blank for a 2-night stay."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Number of adult guests (1 to 16). Prices and availability depend on it. Default 2.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children (0 to 10). Default 0.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children ages",
            "type": "array",
            "description": "One age (0 to 17) per child, for example [5, 8]. Prices depend on ages. Missing ages default to 10.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter currency code for all prices, for example USD, EUR, GBP or AED. Default USD.",
            "default": "USD"
          },
          "countryCode": {
            "title": "Country / market",
            "type": "string",
            "description": "Two-letter country code of the Google Hotels market, for example us, gb or de. It changes which prices and hotels are shown. Default us.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code for hotel names and amenity labels, for example en, fr or de. Default en.",
            "default": "en"
          },
          "maxResults": {
            "title": "Max hotels per destination",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most hotels returned for each destination (1 to 500). Only hotels with a price are saved and charged. Free Apify plan runs return up to 25 hotels in total.",
            "default": 60
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "Relevance",
              "Lowest price",
              "Highest rating",
              "Most reviewed"
            ],
            "type": "string",
            "description": "How Google orders the list. Relevance is the default; Lowest price, Highest rating and Most reviewed change the order.",
            "default": "Relevance"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "hotels",
              "vacation_rentals",
              "all"
            ],
            "type": "string",
            "description": "Hotels only (default), vacation rentals only, or both. Vacation rentals are flats and houses listed next to hotels on Google.",
            "default": "hotels"
          },
          "hotelClasses": {
            "title": "Hotel stars",
            "type": "array",
            "description": "Keep only these star ratings, for example [\"4\",\"5\"]. Leave empty for any class.",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum guest rating",
            "enum": [
              "Any",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Keep only hotels with at least this guest rating out of 5. Any is the default.",
            "default": "Any"
          },
          "minPrice": {
            "title": "Minimum nightly price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest nightly price to include, in the chosen currency. Leave blank for no minimum."
          },
          "maxPrice": {
            "title": "Maximum nightly price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest nightly price to include, in the chosen currency. Leave blank for no maximum."
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Keep only hotels that offer free cancellation for your dates. Off by default.",
            "default": false
          },
          "amenities": {
            "title": "Must-have amenities",
            "type": "array",
            "description": "Keep only hotels listing all of these, for example [\"Free Wi-Fi\",\"Pool\",\"Free parking\"]. Matching is on the amenity text and needs the same language as your Language setting.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}