{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper - Nightly Rates & OTA Price Comparison",
    "description": "Hotel rates from Google Hotels for any city or hotel, by date, guests and currency - with the price from Booking.com, Expedia, Agoda, the hotel's own site and more for every hotel.",
    "version": "0.1",
    "x-build-id": "vUFGjLocVMBxkLy55"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mitul_kheni~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mitul_kheni-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/mitul_kheni~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mitul_kheni-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/mitul_kheni~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mitul_kheni-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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Destinations or hotel names",
            "minItems": 1,
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "One or more cities, regions, landmarks or specific hotels, exactly as you would type them into Google Hotels. Examples: <code>Paris</code>, <code>Bali</code>, <code>Hotels near JFK airport</code>, <code>Hyatt Regency Paris Etoile</code>. A hotel name returns that one hotel; a place returns up to <b>Max hotels per search</b> hotels. Coordinates and URLs are not supported.",
            "items": {
              "type": "string"
            }
          },
          "checkInDates": {
            "title": "Check-in dates",
            "maxItems": 100,
            "type": "array",
            "description": "Dates as <code>YYYY-MM-DD</code> (e.g. <code>2026-12-24</code>), <code>today</code>, <code>tomorrow</code>, or <code>+N</code> = N days from today (e.g. <code>+30</code>). Relative dates keep scheduled daily runs working forever. Google has prices up to about <b>330 days</b> ahead; later dates are rejected.",
            "items": {
              "type": "string"
            },
            "default": [
              "+30"
            ]
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay, 1 to 30 nights (Google returns no prices for longer stays). Prices are always the average nightly price.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Number of adults (1-12). Prices are for this group size; more guests usually means more rooms.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "maxItems": 8,
            "type": "array",
            "description": "One age per child, 0-17 (0 = under 1 year), up to 8 children. Example: <code>[5, 9]</code>. Leave empty for no children.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            },
            "default": []
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "ISO 4217 code, e.g. <code>USD</code>, <code>EUR</code>, <code>GBP</code>, <code>INR</code>, <code>JPY</code>. Prices come back in exactly this currency, or the search fails with a clear message - they are never silently converted to another currency.",
            "default": "USD"
          },
          "languageCode": {
            "title": "Language",
            "type": "string",
            "description": "Language of hotel names and labels (Google's <code>hl</code>), e.g. <code>en</code>, <code>fr</code>, <code>pt-BR</code>. Some destinations return nothing in some languages (e.g. \"Paris\" in Spanish); the Actor then retries in English and marks the rows with <code>languageFallback</code> (switch off below).",
            "default": "en"
          },
          "countryCode": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code sent to Google (<code>gl</code>), e.g. <code>us</code>, <code>gb</code>, <code>in</code>. Note: <b>which booking sites are listed (Expedia, Hotels.com, Goibibo...) depends on the country of the proxy IP</b>, not on this field - choose the proxy country below to match your market.",
            "default": "us"
          },
          "maxHotelsPerSearch": {
            "title": "Max hotels per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper bound of hotels taken from each destination and date (1-500). You are charged only for hotels actually saved, so this also caps your cost: a 20-hotel search costs about 20 x the per-hotel price.",
            "default": 20
          },
          "includeOffers": {
            "title": "Include the price from each booking site",
            "type": "boolean",
            "description": "For every hotel, also list what each booking site charges (Booking.com, Expedia, Agoda, the hotel's own site, ...), cheapest first. Needs one extra request per hotel; switch off for a faster run that only returns Google's headline price.",
            "default": true
          },
          "includeVacationRentals": {
            "title": "Include vacation rentals",
            "type": "boolean",
            "description": "Google sometimes mixes apartments and private rentals into hotel results. Off by default so you only get hotels. Experimental: rentals have no booking-site price list and are rare in results.",
            "default": false
          },
          "includeUnavailable": {
            "title": "Include hotels without a price",
            "type": "boolean",
            "description": "Also return hotels that are sold out or have no price for these dates (price = null, isAvailable = false). Off by default so you are only charged for hotels you can actually price.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lowestPrice",
              "highestRating",
              "mostReviewed"
            ],
            "type": "string",
            "description": "<b>Lowest price</b> is recommended for long lists: its order is stable, so no hotel is missed or repeated across pages. <b>Relevance</b> (Google's default ranking) changes slightly between requests, so very long relevance lists can contain gaps.",
            "default": "relevance"
          },
          "hotelClasses": {
            "title": "Star ratings",
            "maxItems": 5,
            "type": "array",
            "description": "Only these hotel classes, e.g. <code>[4, 5]</code>. Leave empty for all.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            },
            "default": []
          },
          "minGuestRating": {
            "title": "Minimum guest rating",
            "enum": [
              "0",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only hotels rated at least this high by guests.",
            "default": "0"
          },
          "minPricePerNight": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "number",
            "description": "In the currency above. Google applies it to the nightly price it shows (the 'price' field), which with the default US proxy does not include taxes. Leave empty for no minimum."
          },
          "maxPricePerNight": {
            "title": "Maximum price per night",
            "minimum": 0,
            "type": "number",
            "description": "In the currency above. Google applies it to the nightly price it shows (the 'price' field), which with the default US proxy does not include taxes. Leave empty for no maximum."
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only hotels with a free-cancellation rate.",
            "default": false
          },
          "specialOffersOnly": {
            "title": "Special offers only",
            "type": "boolean",
            "description": "Only hotels Google marks as a deal.",
            "default": false
          },
          "trackChanges": {
            "title": "Flag changes since the last run",
            "type": "boolean",
            "description": "Compare every hotel with the same stay (hotel, dates, guests, currency) in your previous run and fill <code>changedSinceLastRun</code>, <code>previousPrice</code> and <code>priceChange</code>. Needs no setup: the last prices are kept in a storage in your account.",
            "default": true
          },
          "snapshotStoreName": {
            "title": "Storage name for the last prices",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$",
            "type": "string",
            "description": "Name of the key-value store that remembers the previous prices (3-63 letters, digits and hyphens). Use a different name per monitoring job so jobs do not overwrite each other's history.",
            "default": "google-hotels-price-snapshots"
          },
          "allowLanguageFallback": {
            "title": "Fall back to English when a language returns nothing",
            "type": "boolean",
            "description": "Google returns no hotels for some destination and language combinations (e.g. \"Paris\" in Spanish). With this on, the Actor retries in English and marks those rows <code>languageFallback: true</code>; off = report the empty result instead.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests run at the same time (1-20). Lower is gentler on Google and less likely to be blocked; higher is faster.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How often a failed or blocked request is retried from a new IP address (0-10).",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Datacenter proxies in the United States are used by default (cheapest). The country of the proxy IP decides which booking sites Google lists. <b>Datacenter proxies do not exist in every country</b> (the US worked in our tests, other countries failed with \"no usable proxies\"): for another country's booking sites, or if Google blocks datacenter IPs, select the <b>RESIDENTIAL</b> proxy group (more expensive).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}