{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper: Prices, Deals & Booking Sites",
    "description": "Hotel prices from Google Hotels for any city, dates, guests and currency: price per night and for the stay with and without taxes, rating, stars, deal badges, amenities, location. Optional prices from every booking site Google lists. $2 per 1,000 hotels.",
    "version": "1.0",
    "x-build-id": "qTaKEKcaJBfeZREH8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fairfetch~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fairfetch-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/fairfetch~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fairfetch-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/fairfetch~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fairfetch-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": {
          "queries": {
            "title": "Places, hotel names or Google Hotels links",
            "type": "array",
            "description": "One per line. A place returns its hotel list (\"hotels in Lisbon\", \"Lisbon\", \"hotels near Eiffel Tower\", \"Shinjuku Tokyo\", \"Hilton London\"). A hotel name (\"Ritz Paris\"), a Google Hotels hotel link (https://www.google.com/travel/hotels/entity/...) or a property ID from an earlier run returns that one hotel. A query Google can't match to a place, a share link (/travel/hotels/s/...) or another kind of link gives a free error row, and the other entries still run.",
            "items": {
              "type": "string"
            }
          },
          "checkInDate": {
            "title": "Check-in date",
            "type": "string",
            "description": "A date (YYYY-MM-DD) or a relative date from today (UTC), e.g. \"30 days\" or \"2 weeks\": relative dates keep scheduled runs looking the same distance ahead. Empty = tomorrow. Google shows prices for check-ins up to about 11 months ahead."
          },
          "checkOutDate": {
            "title": "Check-out date",
            "type": "string",
            "description": "Optional. A date (YYYY-MM-DD) or a relative date from today (UTC), e.g. \"32 days\". Empty = check-in plus \"Nights\". At most 30 nights."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of the stay when no check-out date is set.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Number of adults (prices are for the whole party).",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Optional. One age (0-17) per child, e.g. 8 and 3 for two children. Google needs the ages to price family rooms.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "INR",
              "AUD",
              "CAD",
              "JPY",
              "CHF",
              "CNY",
              "HKD",
              "SGD",
              "AED",
              "SAR",
              "QAR",
              "KWD",
              "BHD",
              "OMR",
              "JOD",
              "ILS",
              "TRY",
              "EGP",
              "MAD",
              "ZAR",
              "NZD",
              "MXN",
              "BRL",
              "ARS",
              "CLP",
              "COP",
              "PEN",
              "CRC",
              "DOP",
              "JMD",
              "BSD",
              "BMD",
              "AWG",
              "PAB",
              "CUP",
              "SEK",
              "NOK",
              "DKK",
              "ISK",
              "PLN",
              "CZK",
              "HUF",
              "RON",
              "BGN",
              "HRK",
              "RSD",
              "BAM",
              "MKD",
              "ALL",
              "MDL",
              "UAH",
              "BYN",
              "RUB",
              "GEL",
              "AMD",
              "AZN",
              "KZT",
              "KRW",
              "TWD",
              "THB",
              "MYR",
              "IDR",
              "PHP",
              "VND",
              "PKR",
              "LBP",
              "IRR",
              "DZD",
              "XPF"
            ],
            "type": "string",
            "description": "Currency of every price. Google returns this currency whatever the proxy's country.",
            "default": "USD"
          },
          "maxHotelsPerQuery": {
            "title": "Max hotels per place",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each place search after this many hotels with a price (Google shows about 20 per page; duplicates across pages are removed). Google's list often ends earlier for a big city (e.g. about 660 hotels for London); the run summary says so. A hotel name or link always returns one hotel.",
            "default": 20
          },
          "includeOffers": {
            "title": "Add booking sites and their prices",
            "type": "boolean",
            "description": "Adds every booking site Google lists for the hotel (online travel agencies and the hotel's own site) with its nightly and total price and free-cancellation flag, plus the hotel's street address. One extra request per hotel; a row with at least one booking site is charged as \"hotel with booking sites\" instead of \"hotel\".",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lowest_price",
              "highest_rating",
              "most_reviewed"
            ],
            "type": "string",
            "description": "Google's own sort order, for place searches. \"Lowest price\" follows the price Google displays (often before taxes), so rows are not always in pricePerNight order.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Minimum guest rating",
            "enum": [
              "any",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Google's guest-rating filter (place searches only).",
            "default": "any"
          },
          "hotelClass": {
            "title": "Hotel class (stars)",
            "type": "array",
            "description": "Only hotels with these official star ratings (Google's filter, place searches only). Empty = any class. Hostels and vacation rentals without a class are left out when you pick a class.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Google's price filter, per night, in each search's currency (place searches only). With \"searches\" entries in other currencies, set minPrice / maxPrice in each entry instead: 150 here means ¥150 for a JPY entry."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Google's price filter, per night, in each search's currency (place searches only). With \"searches\" entries in other currencies, set minPrice / maxPrice in each entry instead: 150 here means ¥150 for a JPY entry."
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Google's \"Free cancellation\" filter (place searches only).",
            "default": false
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "all",
              "hotels",
              "vacation_rentals"
            ],
            "type": "string",
            "description": "Google mixes vacation rentals (apartments, villas) into its hotel list. Keep both, or only one kind; the others are skipped and not charged. Also applies to hotel names and links (an excluded one gives a free error row).",
            "default": "all"
          },
          "includeHotelsWithoutPrice": {
            "title": "Include hotels without a price",
            "type": "boolean",
            "description": "Google also lists hotels it has no price for on these dates (sold out, or dates too far ahead). By default they are skipped and not charged.",
            "default": false
          },
          "searches": {
            "title": "Searches with their own dates or currency (advanced)",
            "type": "array",
            "description": "Optional list of searches that each override the settings above, e.g. [{\"query\": \"hotels in Rome\", \"checkInDate\": \"2026-12-20\", \"nights\": 3, \"currency\": \"EUR\"}, {\"query\": \"hotels in Tokyo\", \"currency\": \"JPY\", \"maxPrice\": 20000}, {\"query\": \"Ritz Paris\", \"adults\": 1, \"childrenAges\": [8]}]. Keys: query, checkInDate, checkOutDate, nights, adults, childrenAges, currency, minPrice, maxPrice. Use it to compare dates or currencies in one run."
          },
          "language": {
            "title": "Language",
            "pattern": "^[a-z]{2,3}(-[A-Za-z]{2,4})?$",
            "type": "string",
            "description": "Google's language code (hl), e.g. en, de, fr, es, pt-BR, ja. Changes the language of descriptions, deal badges and class labels; amenity labels are always English.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "pattern": "^[a-zA-Z]{2}$",
            "type": "string",
            "description": "Google's two-letter country code (gl), e.g. us, gb, de, in. Google uses it for local settings; a query it can't match to a place falls back to a place in this country (reported as a free error row). Prices still depend on the proxy's country, not on this setting.",
            "default": "us"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify's data-center proxy (default) works well for Google Hotels: a blocked or failed request is retried from another IP. You can also use your own proxy URLs or no proxy. Residential and Google SERP proxy groups are not supported.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Searches in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many searches run at the same time.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}