{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper — Prices from Every Booking Site & Deals",
    "description": "Hotels for any city and dates from Google Hotels: price from every booking site (Booking.com, Expedia, Agoda…), free-cancellation dates, GREAT DEAL badges (% below usual price), ratings, review topics, nearby places, address, phone and website.",
    "version": "1.0",
    "x-build-id": "VJfIpae0gJ4dD2qiA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-google-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/brilliant_gum~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-google-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/brilliant_gum~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-google-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": {
          "locations": {
            "title": "📍 Where to search",
            "type": "array",
            "description": "Cities, areas or landmarks, one per line — for example \"Lisbon\", \"Shibuya, Tokyo\", \"hotels near Times Square, New York\". Each one is a separate search. A location that isn't recognised as a place is reported and not charged. Add locations, hotel links, or both.",
            "items": {
              "type": "string"
            }
          },
          "hotelUrls": {
            "title": "🏨 …or exact hotels (Google Hotels links)",
            "type": "array",
            "description": "Links to hotel pages on Google Hotels (google.com/travel/hotels/…/entity/…). Use this to track prices of specific hotels, e.g. your competitors. Can be combined with locations.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "📅 Check-in",
            "type": "string",
            "description": "Pick a date, or a relative one like \"+30 days\" (handy for scheduled runs). Empty = 30 days from today. A date in the past moves to 30 days from today, so saved tasks keep working."
          },
          "checkOut": {
            "title": "📅 Check-out",
            "type": "string",
            "description": "Date as YYYY-MM-DD. Empty = check-in plus the number of nights below. Stays up to 30 nights."
          },
          "nights": {
            "title": "🌙 Nights (when check-out is empty)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay used when no check-out date is set.",
            "default": 2
          },
          "adults": {
            "title": "👥 Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Guests per room. Prices are for this many adults.",
            "default": 2
          },
          "currency": {
            "title": "💱 Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "NZD",
              "CHF",
              "JPY",
              "CNY",
              "HKD",
              "SGD",
              "INR",
              "AED",
              "SAR",
              "TRY",
              "PLN",
              "CZK",
              "HUF",
              "RON",
              "SEK",
              "NOK",
              "DKK",
              "ISK",
              "UAH",
              "ILS",
              "BRL",
              "MXN",
              "ARS",
              "CLP",
              "COP",
              "PEN",
              "ZAR",
              "KRW",
              "THB",
              "IDR",
              "MYR",
              "PHP",
              "VND",
              "TWD"
            ],
            "type": "string",
            "description": "Currency for every price in the results.",
            "default": "USD"
          },
          "maxHotelsPerLocation": {
            "title": "🔢 Max hotels per location",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many hotels for each location. Big cities list up to about 1,000.",
            "default": 100
          },
          "includeBookingOptions": {
            "title": "🏷️ Prices from every booking site",
            "type": "boolean",
            "description": "For each hotel, add the price on every booking site Google compares (Booking.com, Expedia, Agoda, Trip.com, the hotel's own site…), cheapest first, with free-cancellation dates and direct booking links. Also brings the full address, phone, highlights and the complete list of nearby places. Included in the price per hotel — turn it off only if you need just the basic list a bit faster.",
            "default": true
          },
          "minHotelClass": {
            "title": "⭐ Minimum hotel class",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only hotels with at least this many stars. 0 = any. Note: Google doesn't show hotel class in some markets (for example Germany) — keep Country = US to get it.",
            "default": 0
          },
          "minRating": {
            "title": "📈 Minimum guest rating",
            "enum": [
              "0",
              "3",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only hotels rated at least this high by guests (out of 5).",
            "default": "0"
          },
          "maxPricePerNight": {
            "title": "💲 Max price per night",
            "minimum": 1,
            "type": "integer",
            "description": "Only hotels whose nightly price (before taxes and fees, in your currency) is at most this. Empty = no limit."
          },
          "dealsOnly": {
            "title": "🔥 Deals only",
            "type": "boolean",
            "description": "Only hotels Google marks as DEAL or GREAT DEAL — priced below their usual rate for your dates.",
            "default": false
          },
          "freeCancellationOnly": {
            "title": "↩️ Free cancellation only",
            "type": "boolean",
            "description": "Only hotels where at least one booking site offers free cancellation. Needs \"Prices from every booking site\".",
            "default": false
          },
          "includeVacationRentals": {
            "title": "🏠 Include vacation rentals",
            "type": "boolean",
            "description": "Also save apartments and holiday homes that appear among the hotels. They are marked with propertyType = \"vacation rental\".",
            "default": false
          },
          "country": {
            "title": "🌍 Country (market)",
            "type": "string",
            "description": "Two-letter country code of the shopper, e.g. us, gb, de. It changes which booking sites appear and how taxes are shown.",
            "default": "us"
          },
          "language": {
            "title": "🗣️ Language",
            "type": "string",
            "description": "Language of text fields such as descriptions, highlights and review topics, e.g. en, de, fr, es, pt-BR.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}