{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper: Whole City, Stars & Booking-Site Prices",
    "description": "Google Hotels for any city and dates: price per night and total with taxes, prices on up to 20 booking sites (Booking.com, Expedia, Hotels.com, the hotel's own site...), phone, address, website, hotel class, rating, reviews. The whole city, not page one. No browser, results in seconds",
    "version": "0.0",
    "x-build-id": "8IgCY8BXwALOF8nBK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fancyboeing~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fancyboeing-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/fancyboeing~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fancyboeing-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/fancyboeing~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fancyboeing-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",
        "required": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "📍 Location(s)",
            "type": "array",
            "description": "Cities or areas to search, one per line, for example <code>Prague, Czechia</code> or <code>Bangkok, Thailand</code>. Adding the country avoids picking a town with the same name elsewhere. Very large areas such as whole countries work but take longer; cities give the best coverage per request.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "📅 Check-in date",
            "type": "string",
            "description": "Arrival date as YYYY-MM-DD. Leave empty to use 14 days from today. A date in the past is replaced with 14 days from today."
          },
          "nights": {
            "title": "🌙 Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of the stay. Prices per night are averaged over the stay; totals cover the whole stay.",
            "default": 2
          },
          "adults": {
            "title": "👤 Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adult guests used for pricing.",
            "default": 2
          },
          "currency": {
            "title": "💱 Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "THB",
              "JPY",
              "CNY",
              "AUD",
              "CAD",
              "CHF",
              "CZK",
              "PLN",
              "SGD",
              "HKD",
              "INR",
              "AED",
              "RUB",
              "KZT",
              "TRY",
              "BRL",
              "MXN"
            ],
            "type": "string",
            "description": "Three-letter currency code for all prices.",
            "default": "USD"
          },
          "maxItemsPerLocation": {
            "title": "💯 Max properties per location",
            "minimum": 1,
            "type": "integer",
            "description": "Cap for each location, enforced before anything is billed.",
            "default": 200
          },
          "maxTotalItems": {
            "title": "🛑 Max properties total",
            "minimum": 1,
            "type": "integer",
            "description": "Hard ceiling for the whole run. <b>This is your spend control.</b> When it is reached, remaining locations are skipped and never billed.",
            "default": 1000
          },
          "includeVacationRentals": {
            "title": "🏠 Include vacation rentals",
            "type": "boolean",
            "description": "Keep apartments and holiday homes in the results. Turn off for hotels only. Removed rows are never billed.",
            "default": true
          },
          "onlyWithPrice": {
            "title": "💲 Only properties with a price",
            "type": "boolean",
            "description": "Google shows no price for some properties on some dates. Turn on to return only priced properties. Removed rows are never billed.",
            "default": false
          },
          "hotelClass": {
            "title": "⭐ Hotel class filter",
            "type": "array",
            "description": "Return only hotels of the chosen star classes, exactly as Google's own Hotel class filter does. Leave empty for all properties. Only hotels whose class Google knows can match, and vacation rentals are never included.",
            "items": {
              "type": "string",
              "enum": [
                "5",
                "4",
                "3",
                "2"
              ],
              "enumTitles": [
                "5 stars",
                "4 stars",
                "3 stars",
                "2 stars"
              ]
            }
          },
          "lookUpHotelClass": {
            "title": "🔎 Look up hotel class (stars)",
            "type": "boolean",
            "description": "The star class comes with every hotel whose class Google knows (in some countries most hotels, in others few). This option adds one filtered search per class (5, 4, 3, 2) after the main search, to add classed hotels that the plain search does not show. It runs only while the per-location limit is not reached. Turn off for the fastest runs. Ignored when the Hotel class filter is set.",
            "default": true
          },
          "includeBookingPrices": {
            "title": "🏷️ Booking-site prices + hotel contacts (add-on)",
            "type": "boolean",
            "description": "For every property, also return the price on each booking site Google lists for your dates (Booking.com, Expedia, Hotels.com, Trip.com, Agoda, the hotel's own site and more), with a link to each offer. Included for free: address, phone, website, Google Place ID, check-in and check-out times, neighbourhood, description and ratings on other sites (Tripadvisor and more). One extra request per property, so runs take longer. Charged as a separate event only for properties where at least one booking-site price came back.",
            "default": false
          },
          "boundingBox": {
            "title": "🗺️ Custom area (optional)",
            "type": "string",
            "description": "Also search an exact rectangle, in addition to the locations: <code>south,west,north,east</code> in degrees, for example <code>50.03,14.33,50.13,14.55</code>."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. Runs work without a proxy; enable one for very large or frequent runs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}