{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper — Prices, Providers & Reviews",
    "description": "Search Google Hotels: real prices, star class, GPS location, and (opt-in) real multi-provider price comparison (Booking.com, Expedia, etc.) plus real guest reviews. Deep filters: amenities, property type, brand, pool, free cancellation, eco-certified. No API key, no browser.",
    "version": "1.0",
    "x-build-id": "o0V82H0NDV2i7g10r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inexhaustible_glass~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inexhaustible_glass-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/inexhaustible_glass~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-inexhaustible_glass-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/inexhaustible_glass~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-inexhaustible_glass-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": [
          "destination",
          "checkIn",
          "checkOut"
        ],
        "properties": {
          "destination": {
            "title": "📍 Destination",
            "type": "string",
            "description": "A city, region, or specific hotel name."
          },
          "checkIn": {
            "title": "📅 Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "checkOut": {
            "title": "📅 Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "propertyCategory": {
            "title": "🏠 Property category",
            "enum": [
              "hotels",
              "vacation_rentals"
            ],
            "type": "string",
            "description": "Hotels searches hotel chains/independents (the default). Vacation rentals switches to Google's villa/apartment/cottage listings for the same destination and dates — a market gap on Apify, no other Actor offers this.",
            "default": "hotels"
          },
          "hotelSearches": {
            "title": "📋 Multiple searches (JSON, overrides the simple fields above)",
            "type": "array",
            "description": "For bulk runs across destinations/dates. Each item: {destination, checkIn, checkOut, ...any per-search filter below to override the defaults just for that search}."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adult guests.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "currency": {
            "title": "Currency code (e.g. USD, INR, EUR)",
            "type": "string",
            "description": "ISO currency code for prices.",
            "default": "USD"
          },
          "maxResultsPerSearch": {
            "title": "📊 Max hotels per search",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Caps how many hotels are pushed per search.",
            "default": 30
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "default",
              "price",
              "total-price",
              "rating",
              "most-reviewed",
              "class",
              "name"
            ],
            "type": "string",
            "description": "Client-side sort order for returned hotels.",
            "default": "default"
          },
          "minPrice": {
            "title": "Min nightly price",
            "type": "integer",
            "description": "Only include hotels at or above this nightly price."
          },
          "maxPrice": {
            "title": "Max nightly price",
            "type": "integer",
            "description": "Only include hotels at or below this nightly price."
          },
          "minRating": {
            "title": "Min Google rating (0-5)",
            "type": "number",
            "description": "Only include hotels with a Google rating at or above this value."
          },
          "minHotelClass": {
            "title": "Min star class (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only include hotels with a star class at or above this value."
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "e.g. free_wifi, free_breakfast, pet_friendly, pool, indoor_pool, outdoor_pool, wheelchair_accessible",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types (Hotels mode only)",
            "type": "array",
            "description": "e.g. hostels, motels, resorts, boutique_hotels, apartment_hotels. Only applies when Property category is Hotels — Vacation rentals has no equivalent server-side type filter.",
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Hotel brands",
            "type": "array",
            "description": "e.g. hilton_honors, marriott_bonvoy, ihg_hotels_resorts, hyatt",
            "items": {
              "type": "string"
            }
          },
          "hasPool": {
            "title": "Has pool",
            "type": "boolean",
            "description": "Only include hotels with a pool.",
            "default": false
          },
          "freeCancellation": {
            "title": "Free cancellation",
            "type": "boolean",
            "description": "Only include hotels offering free cancellation.",
            "default": false
          },
          "specialOffers": {
            "title": "Special offers only",
            "type": "boolean",
            "description": "Only include hotels with a special offer.",
            "default": false
          },
          "ecoCertified": {
            "title": "Eco-certified only",
            "type": "boolean",
            "description": "Only include eco-certified hotels.",
            "default": false
          },
          "includeBookingTokens": {
            "title": "🔑 Resolve booking tokens (needed for provider prices / reviews below)",
            "type": "boolean",
            "description": "Runs one exact follow-up search per hotel to attach a pricing/review token. Adds real time per run — use tokenEnrichmentLimit to cap it.",
            "default": false
          },
          "tokenEnrichmentLimit": {
            "title": "Limit token resolution to top N hotels",
            "type": "integer",
            "description": "Leave blank to resolve all. Recommended when includeBookingTokens is on for a broad destination search."
          },
          "fetchProviderPrices": {
            "title": "💰 Fetch real provider price comparison",
            "type": "boolean",
            "description": "For each hotel with a booking token, fetches every booking provider Google shows (Booking.com, Expedia, hotel-direct, etc.) with real prices and URLs. Requires includeBookingTokens.",
            "default": false
          },
          "fetchReviews": {
            "title": "💬 Fetch real guest reviews",
            "type": "boolean",
            "description": "For each hotel with a booking token, fetches real guest reviews (author, rating, text, date). Requires includeBookingTokens.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}