{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper — OTA Prices, Rate Parity & Hotel Search",
    "description": "Google Hotels scraper for hotel prices: every OTA rate (Booking.com, Expedia, Agoda, Hotels.com, Trip.com and 30+ more) plus the official site, for any hotel list and date range, with the rate-parity gap per date. Also hotel search listings. Fast HTTP scraper, pay per result, no browser.",
    "version": "0.0",
    "x-build-id": "WrwPccymeLqoQYVbr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jhon_snow~google-hotels-rate-shopper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jhon_snow-google-hotels-rate-shopper",
        "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/jhon_snow~google-hotels-rate-shopper/runs": {
      "post": {
        "operationId": "runs-sync-jhon_snow-google-hotels-rate-shopper",
        "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/jhon_snow~google-hotels-rate-shopper/run-sync": {
      "post": {
        "operationId": "run-sync-jhon_snow-google-hotels-rate-shopper",
        "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": {
          "hotels": {
            "title": "Hotels (your comp set)",
            "type": "array",
            "description": "Hotel names with the city (\"Hilton Buenos Aires\") or Google Hotels URLs (https://www.google.com/travel/hotels/entity/...). For each hotel and date you get one rate snapshot with every OTA price.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Free-text Google Hotels searches, e.g. \"hotels in palermo buenos aires\" or \"5 star hotels in cancun\". Results are paginated automatically until \"Max hotels per query\" is reached.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First check-in date, YYYY-MM-DD. Defaults to 14 days from today."
          },
          "nights": {
            "title": "Nights per stay",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay (1–30).",
            "default": 1
          },
          "daysToScan": {
            "title": "Days to scan",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "How many consecutive check-in dates to price, starting at the check-in date. 30 = a full month rate calendar.",
            "default": 1
          },
          "stepDays": {
            "title": "Step between dates",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Days between scanned check-in dates. 7 = the same weekday every week.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adult guests (1–8). OTA prices depend on occupancy.",
            "default": 2
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO currency code for all prices (USD, EUR, GBP, ARS, BRL, MXN...).",
            "default": "USD"
          },
          "country": {
            "title": "Point of sale (country)",
            "type": "string",
            "description": "2-letter country the prices are shown for. OTAs price differently by market, so use your guests' country.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for hotel names and texts (en, es, pt, fr...).",
            "default": "en"
          },
          "includeOtaPrices": {
            "title": "Get OTA prices for search results",
            "type": "boolean",
            "description": "For search queries, also fetch the full OTA price ladder of every listed hotel (one rate snapshot each). Hotels in the \"hotels\" list always get it.",
            "default": false
          },
          "priceBasis": {
            "title": "Price basis for comparisons",
            "enum": [
              "beforeTaxes",
              "withTaxes"
            ],
            "type": "string",
            "description": "Which price to compare for lowest price and parity gap. Pre-tax is consistent across all sources; tax-inclusive prices vary by OTA and market (some drop local VAT).",
            "default": "beforeTaxes"
          },
          "maxHotelsPerQuery": {
            "title": "Max hotels per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many hotels to keep from each search query and date. Google returns about 18-20 per page, so anything above that pages through the results automatically (20 = 1 page, 100 = about 5 pages). Duplicates across pages are removed.",
            "default": 20
          },
          "includeBookingLinks": {
            "title": "Include booking links",
            "type": "boolean",
            "description": "Add the Google redirect link of each offer. Off by default to keep the dataset small.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Datacenter proxies work well. Switch to residential only if you see BLOCKED warnings in the log.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}