{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Price Scraper & Monitor – Hotel Rates by Provider",
    "description": "Scrape Google Hotels prices for any city or a fixed list of hotels: lowest price, total stay, stars, rating and the price of every provider (Booking.com, Expedia, Agoda, hotel website). Monitor mode outputs only price drops, rises, sold-out and new-hotel alerts since the last run.",
    "version": "0.1",
    "x-build-id": "qg7ix3LhZHbqKCpKp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/puchus-monitoring~google-hotels-price-scraper-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-puchus-monitoring-google-hotels-price-scraper-monitor",
        "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/puchus-monitoring~google-hotels-price-scraper-monitor/runs": {
      "post": {
        "operationId": "runs-sync-puchus-monitoring-google-hotels-price-scraper-monitor",
        "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/puchus-monitoring~google-hotels-price-scraper-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-puchus-monitoring-google-hotels-price-scraper-monitor",
        "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": [
          "mode",
          "dateRanges"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "hotels"
            ],
            "type": "string",
            "description": "\"search\": hotels returned by Google Hotels for each query. \"hotels\": a fixed list of hotels (tokens or URLs).",
            "default": "search"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Required in \"search\" mode. Free text as you would type it in Google Hotels, e.g. \"hotels in Málaga\" or \"hotels near Sagrada Familia\".",
            "items": {
              "type": "string"
            }
          },
          "hotels": {
            "title": "Hotels (tokens or URLs)",
            "type": "array",
            "description": "Required in \"hotels\" mode. Hotel tokens (the \"hotelToken\" field of any result, e.g. \"ChkI97ril8e4r5I2Gg0vZy8xMWI2ZHRmbTY0EAE\") or Google Hotels URLs of the hotel page.",
            "items": {
              "type": "string"
            }
          },
          "dateRanges": {
            "title": "Date ranges",
            "type": "array",
            "description": "Stays to price. Each item is either fixed dates {\"checkIn\": \"2026-11-17\", \"checkOut\": \"2026-11-19\"} or dates relative to the day of the run {\"nightsFromToday\": 30, \"nights\": 2} (check-in in 30 days, 2 nights), which is what you want in scheduled runs. Up to 30 nights per stay."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adults per room.",
            "default": 2
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "ISO 4217 currency code for all prices, e.g. EUR, USD, GBP.",
            "default": "EUR"
          },
          "country": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country of the search (Google's \"gl\"), e.g. ES, US, GB. It changes which providers appear. The proxy also tries to use an IP of this country; see the README for when that is not possible.",
            "default": "ES"
          },
          "maxHotelsPerQuery": {
            "title": "Max hotels per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of hotels per search query and date range (search mode). Google returns about 18 hotels per page.",
            "default": 100
          },
          "includeProviderPrices": {
            "title": "Include prices by provider",
            "type": "boolean",
            "description": "Also get the price of every provider (Booking.com, Expedia, Agoda, the hotel's website…) for each hotel. Needs one extra request per hotel, so it is charged as a hotel result with providers.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode (only changes)",
            "type": "boolean",
            "description": "Output only the changes since the previous run with the same monitor name: price drops and rises, sold out, back in stock, new hotels and provider price changes. The first run saves the baseline and outputs nothing.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "maxLength": 100,
            "type": "string",
            "description": "Required in monitor mode. Keeps the saved state of this monitor separate from others, e.g. \"madrid-competitors\". Runs with the same name are compared with each other."
          },
          "priceChangeThresholdPct": {
            "title": "Price change threshold (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Monitor mode: a price change is reported only if it is at least this percentage AND at least the absolute threshold below.",
            "default": 3
          },
          "priceChangeThresholdAbs": {
            "title": "Price change threshold (amount)",
            "minimum": 0,
            "type": "number",
            "description": "Monitor mode: minimum change in the chosen currency (per night) to report a price change, together with the percentage threshold.",
            "default": 5
          },
          "alertProviders": {
            "title": "Providers to alert on",
            "type": "array",
            "description": "Monitor mode with provider prices: only price changes of these providers are reported (names are matched loosely: \"Booking\" = \"Booking.com\"). \"Official site\" means the hotel's own website. Providers that appear or disappear are never reported.",
            "items": {
              "type": "string"
            },
            "default": [
              "Booking.com",
              "Expedia",
              "Agoda",
              "Hotels.com",
              "Trip.com",
              "Official site"
            ]
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}