{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper - Prices, OTA Rates, Room Rates & Reviews",
    "description": "Scrape Google Hotels for any destination and dates: live per-night prices, the full OTA price ladder (Booking.com, Agoda, Expedia, Hotels.com and more) with booking links, per-room rates, star class, guest ratings and reviews. Structured JSON/CSV - no code, no login, no Google API key.",
    "version": "1.0",
    "x-build-id": "QucX7kQiBeEPa8fwI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/factden~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-factden-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/factden~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-factden-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/factden~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-factden-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": {
          "searchQueries": {
            "title": "🔍 Search a destination",
            "maxItems": 100,
            "type": "array",
            "description": "One destination per line — e.g. `hotels in New York City`, `Paris 5 star hotels`, `resorts in Bali`. Each is paginated and de-duplicated. Provide this **or** hotel links below (at least one required). If you provide both, the results are combined and de-duplicated (a hotel found by both a search and a link appears once).",
            "items": {
              "type": "string"
            }
          },
          "hotelUrls": {
            "title": "🏨 …or add exact hotels (names or links)",
            "maxItems": 1000,
            "type": "array",
            "description": "Add specific hotels, one per line — you get exactly those, one row each (ideal for a fixed competitor set you re-run on a schedule). Each line can be:\n\n- **A hotel name** — e.g. `The Manhattan at Times Square` (use the full name + city so it matches the right property)\n- **A Google Maps or Google Hotels link** — e.g. a `maps.app.goo.gl` share link or a `/travel/hotels/...` URL\n- **Advanced:** a `ChIJ…` Maps place-id or a `ChkI…` entity token\n\nSee the README for the full list of accepted formats.",
            "items": {
              "type": "string"
            }
          },
          "includePrices": {
            "title": "💵 Include prices",
            "type": "boolean",
            "description": "Fetch the lead price plus the full per-source booking ladder (Booking.com, Agoda, Expedia, Hotels.com…) and the per-room rates — each with its booking link. Needs check-in/out dates below.",
            "default": true
          },
          "includeReviews": {
            "title": "⭐ Include reviews",
            "type": "boolean",
            "description": "Fetch guest reviews for each hotel into the separate `reviews` dataset (reviewer, rating, text, date, and the hotel's reply when present).",
            "default": false
          },
          "minPrice": {
            "title": "💲 Min price / night",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep hotels whose lead price per night is at or above this (in the selected currency). Leave empty for no lower bound."
          },
          "maxPrice": {
            "title": "💲 Max price / night",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep hotels whose lead price per night is at or below this. Leave empty for no upper bound."
          },
          "minGuestRating": {
            "title": "📈 Minimum guest rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep hotels with a guest review score at or above this (0–5 scale). 0 = no filter.",
            "default": 0
          },
          "minStars": {
            "title": "⭐ Minimum star class",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Refines the search toward this hotel-class star rating (1–5); Google narrows the results server-side. 0 = no refinement.",
            "default": 0
          },
          "propertyTypes": {
            "title": "🏩 Property types",
            "type": "array",
            "description": "Refines the search toward these property types (Google narrows the results). Includes vacation rentals.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "apartment",
                "resort",
                "hostel",
                "motel",
                "bedAndBreakfast",
                "vacationRental",
                "guestHouse",
                "cabin"
              ],
              "enumTitles": [
                "Hotel",
                "Apartment",
                "Resort",
                "Hostel",
                "Motel",
                "Bed & breakfast",
                "Vacation rental",
                "Guest house",
                "Cabin"
              ]
            },
            "default": []
          },
          "maxResults": {
            "title": "🔢 Max hotels",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many unique hotels (across all queries and links). 0 = no cap. A small number keeps a first run fast and cheap; raise it for a full-market sweep.",
            "default": 20
          },
          "checkInDate": {
            "title": "📅 Check-in",
            "type": "string",
            "description": "Check-in day (YYYY-MM-DD). Prices are date-scoped — change the dates to reprice. **If you leave both dates empty and prices are on, the actor auto-uses tomorrow (run date + 1 day) for a 1-night stay, computed at run time.** For hotel info + reviews only (no prices), turn off Include prices."
          },
          "checkOutDate": {
            "title": "📅 Check-out",
            "type": "string",
            "description": "Check-out day (YYYY-MM-DD). Must be after check-in. The gap sets the length of stay used for every priced date. Leave both dates empty → the actor defaults to a 1-night stay (check-out = tomorrow + 1 day)."
          },
          "priceWindowEnd": {
            "title": "📈 Track prices until (optional)",
            "type": "string",
            "description": "Track prices across a date range: we reprice the same-length stay for **every check-in day from Check-in up to this date** (up to 60 days), appended to the `offers` table (each row carries its own check-in/check-out). Leave empty to price just the single stay above. **Cost/time note:** each extra date is a separate `prices` charge **per hotel** — a wide window across a whole-city search multiplies fast (e.g. 200 hotels × 30 dates = 6,000 charges). Best paired with a short list of specific hotels."
          },
          "adults": {
            "title": "👤 Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adult guests.",
            "default": 2
          },
          "children": {
            "title": "🧒 Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children.",
            "default": 0
          },
          "rooms": {
            "title": "🛏️ Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "currency": {
            "title": "💱 Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "INR",
              "JPY",
              "AUD",
              "CAD",
              "CHF",
              "SGD",
              "AED",
              "BRL",
              "CNY",
              "HKD",
              "MXN",
              "ZAR",
              "THB",
              "KRW",
              "SEK",
              "NZD",
              "PLN"
            ],
            "type": "string",
            "description": "Currency for all prices.",
            "default": "USD"
          },
          "maxReviews": {
            "title": "🔢 Max reviews per hotel",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on reviews pulled per hotel (paginated). Google caps at roughly 5,000 per sort order. Note: high values across many hotels make runs much slower — keep it modest for whole-city searches.",
            "default": 100
          },
          "reviewsSort": {
            "title": "↕️ Sort reviews by",
            "enum": [
              "newest",
              "relevant"
            ],
            "type": "string",
            "description": "Order reviews are fetched in.",
            "default": "newest"
          },
          "countryCode": {
            "title": "🌍 Country (gl)",
            "enum": [
              "us",
              "gb",
              "in",
              "au",
              "ca",
              "de",
              "fr",
              "es",
              "it",
              "jp",
              "sg",
              "ae",
              "br"
            ],
            "type": "string",
            "description": "Google country code — a global setting that shifts the whole market: which hotels appear, the pricing market and OTA mix.",
            "default": "us"
          },
          "languageCode": {
            "title": "🗣️ Language (hl)",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "hi",
              "ar"
            ],
            "type": "string",
            "description": "Google interface language for names, review text and labels.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Datacenter proxies are sufficient for Google Hotels at typical volumes; switch to residential IPs if the empty-response rate climbs on very large runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}