{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper & Price API: Verified Dates",
    "description": "Returns live Google Hotels prices per night and per stay, with stars and rating, for any destination and check-in dates: up to 20 hotels per search and date. Every row is checked against the dates you asked for; unverified rows are dropped and never charged. Daily price monitoring: only changes.",
    "version": "1.0",
    "x-build-id": "BbwOc9S2WIY7RdnCT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zerofail~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zerofail-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/zerofail~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zerofail-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/zerofail~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zerofail-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": [
          "searches"
        ],
        "properties": {
          "searches": {
            "title": "Destinations to search",
            "minItems": 1,
            "type": "array",
            "description": "One or more destinations, e.g. \"Lyon\" or \"hotels in Paris 15th\". If a search doesn't look like a hotel query, the Actor prepends \"hotels in \" automatically.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": [
              "hotels in Paris"
            ]
          },
          "checkInMode": {
            "title": "How to choose check-in dates",
            "enum": [
              "nextNDays",
              "fixedDates"
            ],
            "type": "string",
            "description": "\"nextNDays\": a rolling window starting a number of days from today (best for daily monitoring). \"fixedDates\": an explicit list of check-in dates.",
            "default": "nextNDays"
          },
          "daysAhead": {
            "title": "Days from today for the first check-in date (rolling window)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Only used when \"checkInMode\" is \"nextNDays\". 1 means tomorrow.",
            "default": 1
          },
          "numberOfDates": {
            "title": "Number of consecutive check-in dates (rolling window)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Only used when \"checkInMode\" is \"nextNDays\".",
            "default": 1
          },
          "checkInDates": {
            "title": "Fixed check-in dates (YYYY-MM-DD)",
            "type": "array",
            "description": "Only used when checkInMode is \"fixedDates\"; listing dates while the mode is \"nextNDays\" stops the run with an error. Format YYYY-MM-DD. Past dates are refused before any request (Google replaces a past date by its default dates), and so are dates more than 394 days ahead, where far fewer hotels carry a price.",
            "items": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "default": []
          },
          "nights": {
            "title": "Number of nights",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Length of the stay, 1 to 60 nights. There is no check-out field: the stay is sent as a number of nights, and every row is verified against it.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of adult travellers the prices are for. Sent to Google explicitly on every request, never left to its default.",
            "default": 2
          },
          "children": {
            "title": "Children's ages (one entry per child)",
            "type": "array",
            "description": "One age in years per child, between 0 and 17. Ages are required by Google's own pricing: there is no way to ask for \"two children\" without saying how old they are. Leave empty for adults only.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency (ISO 4217)",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Three-letter ISO 4217 code, e.g. EUR, USD, GBP, JPY. For those four, the Actor also checks that the page's prices are in the requested currency; rows priced in another currency are dropped and not charged.",
            "default": "EUR"
          },
          "language": {
            "title": "Display language",
            "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
            "type": "string",
            "description": "Google's \"hl\" parameter, e.g. en-US or fr. Changes how prices and numbers are formatted on the page; both US and European formats are read.",
            "default": "en-US"
          },
          "country": {
            "title": "Display country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Google's \"gl\" parameter, e.g. us, fr.",
            "default": "us"
          },
          "maxHotelsPerSearch": {
            "title": "Max hotels per search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Up to 20. A Google Hotels results page holds 20 hotels and has no second page, so 20 is the maximum per search and date. For more rows, add searches or check-in dates.",
            "default": 20
          },
          "includeFeaturedOffer": {
            "title": "Include featured offer detail (one extra request per hotel)",
            "type": "boolean",
            "description": "Adds, per hotel, the first non-sponsored booking offer Google lists (site and price) and Google's typical price range. Costs one extra request and one hotel-offer-detail event per hotel ($0.0225 on the free plan, $0.012 to $0.015 on paid plans). If the extra call fails, only that hotel's detail fields stay empty (offerDetailStatus = \"failed\"), the row keeps its verified price, and the call is not charged. Off by default.",
            "default": false
          },
          "monitorMode": {
            "title": "Only return changes since the last run",
            "type": "boolean",
            "description": "Return only what changed since the previous run with the same tracking key, matched on Google's stable hotel entity ID. Rows reach the dataset only as changeType new, priceChanged or becameAvailable; a run where nothing moved succeeds with an empty dataset. Google shows a rotating sample of about 20 hotels per search, so this watches a market: a hotel missing from one run is not reported. Use with a daily scheduled Task. Off by default.",
            "default": false
          },
          "minChangePct": {
            "title": "Minimum price change to report (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only used when \"monitorMode\" is on. A price has to move by strictly more than this to be reported; 0 reports every change.",
            "default": 5
          },
          "trackingKey": {
            "title": "Tracking key for monitor mode (optional)",
            "maxLength": 200,
            "type": "string",
            "description": "Pins the monitor state to a stable key across runs, recommended for scheduled Tasks. If empty, derived automatically from the searches, the date window, the travellers and the currency — convenient, but editing any of those starts a new comparison from scratch.",
            "default": ""
          },
          "debug": {
            "title": "Keep raw pages for troubleshooting",
            "type": "boolean",
            "description": "Stores each fetched HTML page in the key-value store for support/debugging. Off by default; a page weighs about 3 MB.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}