{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper — Prices, OTA Rates & Price Calendar",
    "description": "Google Hotels scraper and API: nightly rate, stay total and taxes for your dates, OTA rates from Booking.com, Agoda, Expedia with links, a 60-day price calendar with the cheapest day to book, family pricing with children, ratings, reviews. No login. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "yshnQ4NRtqOTvqMZl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-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/lergassy~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-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/lergassy~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-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": "Required unless you give `hotelUrls`. One place per line, the way you would type it into Google Hotels: a city (<code>Lisbon</code>), a neighbourhood (<code>Shibuya, Tokyo</code>), a region or a landmark (<code>hotels near Eiffel Tower</code>). Each place is searched separately.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "📅 Check-in date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Format <code>YYYY-MM-DD</code>. Leave empty and the Actor searches a stay 30 days from today, so a saved task never runs on a date that has passed."
          },
          "checkOut": {
            "title": "📅 Check-out date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Format <code>YYYY-MM-DD</code>. Leave empty for a two-night stay. Prices are the total for the whole stay and the average per night."
          },
          "adults": {
            "title": "👥 Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adult guests in one room, 1–8. Google prices the room for this many people.",
            "default": 2
          },
          "children": {
            "title": "🧒 Children",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Children sharing the room, 0–6. Google prices the room for adults plus children, so family rates differ from adult-only rates (measured: 2 adults $76/night, 2 adults + a child of 8 $128/night at the same hotel and dates).",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0–17) per child, in order, e.g. <code>8</code> and <code>12</code>. A child without an age is priced as 8 years old.",
            "items": {
              "type": "string"
            }
          },
          "maxHotelsPerLocation": {
            "title": "💯 Hotels per place",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Google shows 20 hotels per page and stops there. This Actor keeps going through sort orders, star classes and price bands and de-duplicates by hotel, so it can collect well over a hundred hotels for one city. Set how many you want per place.",
            "default": 40
          },
          "includeOffers": {
            "title": "🏷️ OTA rates: price on every booking site for your dates ($)",
            "type": "boolean",
            "description": "Turn on to get, for each hotel, the price on every booking site Google lists — Agoda, Expedia, Trip.com, Priceline, Hotels.com, the hotel's own website and more — with the stay total, price per night and a deep link, quoted for <b>your</b> dates, guests and currency. Adds <code>offers</code>, <code>vendorCount</code>, <code>cheapestOfferSeller</code>, <code>officialSiteTotal</code>, review sources and the full address and phone. One extra request per hotel, charged as the <i>Add-on: Hotel page read</i> event ($8 per 1,000 hotels). Off by default for API calls; on in this form. <a href='https://apify.com/lergassy/google-hotels-scraper#how-much-does-it-cost-to-scrape-google-hotels' target='_blank'>Pricing</a>.",
            "default": false
          },
          "maxOfferLookups": {
            "title": "OTA rates: hotels to price per run",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on the OTA-rates add-on: how many hotels (per run, in result order) get the booking-site prices. Keeps a wide search from pricing every hotel.",
            "default": 20
          },
          "priceCalendarTo": {
            "title": "📅 Price calendar: reprice every check-in day up to ($)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Format <code>YYYY-MM-DD</code>. The same-length stay is priced for <b>every check-in day</b> from your check-in up to this date (60 days at most) — Google's lead price, the stay total and the cheapest booking site for each day — in <code>priceCalendar</code>, plus <code>calendarCheapestCheckIn</code>, <code>calendarCheapestPerNight</code>, <code>calendarHighestPerNight</code> and <code>calendarAveragePerNight</code> on the hotel row. Each extra priced day is charged as the <i>Add-on: Calendar day priced</i> event; days with no availability are free. Leave empty to price only your dates."
          },
          "maxCalendarHotels": {
            "title": "Price calendar: search results to calendar per run",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "How many hotels from the location search (in result order, per run) get the price calendar. Hotels you list under <i>Specific hotels</i> always get it. Keeps a wide search with a long calendar from pricing thousands of days.",
            "default": 10
          },
          "currency": {
            "title": "💱 Currency",
            "type": "string",
            "description": "Three-letter code for every price in the output: <code>USD</code>, <code>EUR</code>, <code>GBP</code>, <code>IDR</code> …",
            "default": "USD"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "lowest_price",
              "highest_rating",
              "most_reviewed"
            ],
            "type": "string",
            "description": "Which of Google's orders to read first. The deep search visits the other orders anyway; this one decides the first page and the <code>searchRank</code> numbering.",
            "default": "relevance"
          },
          "hotelClass": {
            "title": "⭐ Star class",
            "type": "array",
            "description": "Keep only these hotel classes, e.g. <code>4</code> and <code>5</code>. Unrated properties are dropped when this is set.",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum guest rating",
            "enum": [
              "",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Drop hotels rated below this, on Google's 5-point scale. Hotels without a rating are dropped too."
          },
          "minPricePerNight": {
            "title": "Minimum price per night",
            "minimum": 1,
            "type": "integer",
            "description": "In the output currency. Hotels whose nightly price is below this (or that show no price) are not returned — handy to skip hostels and guesthouses in a luxury scan. Leave empty for no lower bound."
          },
          "maxPricePerNight": {
            "title": "Maximum price per night",
            "minimum": 1,
            "type": "integer",
            "description": "In the output currency. Hotels whose average nightly price is above this are not returned."
          },
          "poolOnly": {
            "title": "Pool required",
            "type": "boolean",
            "description": "Only hotels with a pool.",
            "default": false
          },
          "includeReviews": {
            "title": "💬 Guest reviews",
            "type": "boolean",
            "description": "Include the reviews Google shows for the hotel (text, rating, date, source such as Tripadvisor or Trip.com). Needs the OTA-rates add-on above or hotel URLs.",
            "default": false
          },
          "maxReviews": {
            "title": "Reviews per hotel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Up to what Google renders on the page — typically 10 to 20.",
            "default": 10
          },
          "hotelUrls": {
            "title": "🔗 Hotel pages by URL",
            "type": "array",
            "description": "Google Hotels page URLs (<code>https://www.google.com/travel/hotels/entity/…</code>) or entity ids from an earlier run. Each becomes one row with offers, reviews and the full amenity list — no search needed.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter code for names, descriptions and amenity labels, e.g. <code>en</code>, <code>de</code>, <code>es</code>.",
            "default": "en"
          },
          "market": {
            "title": "Point of sale (country)",
            "type": "string",
            "description": "Two-letter country code Google prices for, e.g. <code>US</code>, <code>GB</code>, <code>DE</code>. Sellers and rates differ per market.",
            "default": "us"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Google answers this Actor's requests from ordinary datacenter IPs; the default Apify proxy is enough. Switch to residential only if a run reports consent pages or empty answers.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Each retry uses a new IP.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}