{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Search Scraper",
    "description": "Search Google Hotels with Scrappa. Extract hotel names, prices, ratings, booking links, amenities, coordinates, property tokens, and pagination metadata.",
    "version": "1.0",
    "x-build-id": "lbbXlKllL85dphblP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrappa~google-hotels-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrappa-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/thescrappa~google-hotels-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrappa-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/thescrappa~google-hotels-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrappa-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",
        "required": [
          "q",
          "check_in_date",
          "check_out_date"
        ],
        "properties": {
          "q": {
            "title": "Destination or Hotel Query",
            "type": "string",
            "description": "Location, landmark, area, or hotel query to search in Google Hotels."
          },
          "check_in_date": {
            "title": "Check-in Date",
            "type": "string",
            "description": "Check-in date in YYYY-MM-DD format. Must be today or a future date."
          },
          "check_out_date": {
            "title": "Check-out Date",
            "type": "string",
            "description": "Check-out date in YYYY-MM-DD format. Must be after the check-in date."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adults.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Number of children. If greater than 0, provide matching Children Ages.",
            "default": 0
          },
          "children_ages": {
            "title": "Children Ages",
            "type": "array",
            "description": "Ages for each child, 1-17. The number of ages must match Children.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 17
            }
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "minLength": 3,
            "maxLength": 3,
            "type": "string",
            "description": "Three-letter currency code such as USD, EUR, or GBP.",
            "default": "USD"
          },
          "gl": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter Google country code such as us, fr, gb, or de.",
            "default": "us"
          },
          "hl": {
            "title": "Language",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter language code such as en, fr, de, or es.",
            "default": "en"
          },
          "sort_by": {
            "title": "Sort By",
            "enum": [
              "3",
              "8",
              "13"
            ],
            "type": "string",
            "description": "Google Hotels sort mode: 3 for lowest price, 8 for highest rating, 13 for most reviewed."
          },
          "min_price": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum nightly price."
          },
          "max_price": {
            "title": "Maximum Price",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum nightly price. Must be greater than Minimum Price and within 5000."
          },
          "hotel_class": {
            "title": "Hotel Class",
            "enum": [
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Hotel star class filter."
          },
          "rating": {
            "title": "Minimum Rating",
            "enum": [
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Google Hotels minimum rating filter: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+."
          },
          "free_cancellation": {
            "title": "Free Cancellation",
            "type": "boolean",
            "description": "Return only properties with free cancellation. Cannot be combined with price, class, rating, amenities, property type, or brand filters.",
            "default": false
          },
          "amenities": {
            "title": "Amenity IDs",
            "type": "array",
            "description": "Google Hotels amenity IDs.",
            "items": {
              "type": "integer"
            }
          },
          "vacation_rentals": {
            "title": "Vacation Rentals",
            "type": "boolean",
            "description": "Search vacation rentals instead of hotels.",
            "default": false
          },
          "eco_certified": {
            "title": "Eco Certified",
            "type": "boolean",
            "description": "Return only eco-certified hotels. Cannot be combined with other non-boolean filters.",
            "default": false
          },
          "special_offers": {
            "title": "Special Offers",
            "type": "boolean",
            "description": "Return only properties with special offers. Cannot be combined with other non-boolean filters.",
            "default": false
          },
          "property_types": {
            "title": "Property Type IDs",
            "type": "array",
            "description": "Google Hotels property type IDs.",
            "items": {
              "type": "integer"
            }
          },
          "brands": {
            "title": "Brand IDs",
            "type": "array",
            "description": "Google Hotels brand IDs.",
            "items": {
              "type": "integer",
              "minimum": 1
            }
          },
          "bedrooms": {
            "title": "Bedrooms",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Minimum bedrooms for vacation rental searches."
          },
          "bathrooms": {
            "title": "Bathrooms",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Minimum bathrooms for vacation rental searches."
          },
          "next_page_token": {
            "title": "Next Page Token",
            "type": "string",
            "description": "Pagination token returned by a previous Google Hotels search response."
          },
          "property_token": {
            "title": "Property Token",
            "type": "string",
            "description": "Specific Google Hotels property token, often returned by Google Hotels autocomplete."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}