{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper: Prices, Price Calendar & Market Report",
    "description": "Every hotel in a city with prices for your dates from Google Hotels, a price calendar across up to 60 check-in dates, each hotel's booking-site price list, a market report and price-drop alerts. $2.20 per 1,000 hotels; unpriced hotels free.",
    "version": "0.1",
    "x-build-id": "7q6RoKxKz9oPjqFnl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brainfoods_studio~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brainfoods_studio-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/brainfoods_studio~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brainfoods_studio-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/brainfoods_studio~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brainfoods_studio-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": "Places",
            "type": "array",
            "description": "One city search per entry, for example Lisbon or Paris. Up to 50 places.",
            "items": {
              "type": "string"
            }
          },
          "hotels": {
            "title": "Hotels to compare",
            "type": "array",
            "description": "Google Hotels ids (they start with Ch) or Google Hotels URLs containing /entity/<id>, for a fixed comparison set. Up to 500 hotels.",
            "items": {
              "type": "string"
            }
          },
          "maxHotels": {
            "title": "Max hotels per place and date",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stops reading pages once this many different hotels were found for a place and check-in date. Google shows 18 per page.",
            "default": 100
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "First check-in date, YYYY-MM-DD. Today or later (UTC). Empty means 30 days from today."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay in nights.",
            "default": 2
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adults.",
            "default": 2
          },
          "calendarDays": {
            "title": "Check-in dates (price calendar)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Number of consecutive check-in dates, starting at Check-in. Each date runs the search again, so 30 means a 30-day price calendar.",
            "default": 1
          },
          "minStars": {
            "title": "Minimum stars",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Hotels without a star class are filtered out when this is set."
          },
          "minRating": {
            "title": "Minimum guest rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Google guest rating from 0 to 5, for example 4.2."
          },
          "maxPrice": {
            "title": "Maximum nightly price",
            "minimum": 0,
            "type": "number",
            "description": "In the currency of the prices Google shows."
          },
          "includePriceList": {
            "title": "Include booking-site price list",
            "type": "boolean",
            "description": "Adds one price-list row per hotel and date with the price on every booking site Google lists. Reads one hotel page per hotel and date.",
            "default": false
          },
          "includeMarketReport": {
            "title": "Include market report",
            "type": "boolean",
            "description": "One report per place over all dates: median and quartile prices by star class, cheapest and most expensive check-in dates, deal share. Needs at least 5 priced hotels.",
            "default": true
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "A secret key that remembers the last price of each hotel and date. Hotel rows then carry the previous price and the change in percent."
          },
          "deliveryWebhookUrl": {
            "title": "Delivery webhook URL",
            "type": "string",
            "description": "An HTTPS endpoint that receives one alert per run listing hotels whose price dropped or went under your target. Needs Monitor name."
          },
          "alertDropPercent": {
            "title": "Alert on a drop of at least (%)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Alert when a hotel's price for a date fell by at least this percent since the last run.",
            "default": 10
          },
          "alertBelowPrice": {
            "title": "Alert at or under this nightly price",
            "minimum": 0,
            "type": "number",
            "description": "Alert when a hotel's nightly price is at or under this amount."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code. Google decides the currency from the proxy country, so set Country too.",
            "default": "USD"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "2-letter country code. Also used as the Apify Proxy country when the proxy has none.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code, for example en or pt-PT.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy by default.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}