{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Prices Scraper — Provider Prices & Price Alerts",
    "description": "Scrape Google Hotels prices for any city or hotel: lowest price, every booking site's rate (Booking.com, Expedia, Agoda, official site…), free cancellation, rating, stars and amenities in USD. Built-in price-change alerts.",
    "version": "1.0",
    "x-build-id": "4G9366Cjn6j62tylR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/niyomurinzi.elis~google-hotels-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-niyomurinzi.elis-google-hotels-prices",
        "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/niyomurinzi.elis~google-hotels-prices/runs": {
      "post": {
        "operationId": "runs-sync-niyomurinzi.elis-google-hotels-prices",
        "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/niyomurinzi.elis~google-hotels-prices/run-sync": {
      "post": {
        "operationId": "run-sync-niyomurinzi.elis-google-hotels-prices",
        "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": "Locations",
            "type": "array",
            "description": "Cities, neighborhoods or free-text Google Hotels queries, e.g. <code>Paris</code>, <code>Manhattan, New York</code> or <code>beach hotels in Cancun</code>. Plain place names are searched as \"hotels in &lt;place&gt;\".",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Hotel names",
            "type": "array",
            "description": "Specific hotels to track, e.g. <code>Ritz Paris</code> or <code>Bellagio Las Vegas</code>. Add the city for best matching. One row per hotel.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Check-in date (YYYY-MM-DD). Defaults to 14 days from today."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Check-out date (YYYY-MM-DD). Defaults to 2 nights after check-in. Max 30 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Number of adult guests (1–12). Prices are for one room.",
            "default": 2
          },
          "maxHotelsPerLocation": {
            "title": "Max hotels per location",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many hotels to collect per location. Google returns ~20 per page; the Actor paginates automatically."
          },
          "includeProviderPrices": {
            "title": "Include provider prices",
            "type": "boolean",
            "description": "Fetch every booking site's price for each hotel (Booking.com, Expedia, Hotels.com, Agoda, Trip.com, official site…) with free-cancellation flags and booking links. Charged as an extra <code>hotel-prices</code> event per hotel.",
            "default": true
          },
          "onlyChangedSinceLastRun": {
            "title": "Price alerts: only output changed prices",
            "type": "boolean",
            "description": "Alert mode. Remembers each hotel's lowest price (per stay dates, adults and currency) under the <b>State key</b>. The first run outputs everything as a baseline; later runs output only hotels whose lowest price changed (with previous price and difference). Pair with a Schedule + Slack/email/webhook integration for price-drop alerts. You only pay for rows that are output.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved price snapshot used by alert mode. Use a different key per watch-list/schedule.",
            "default": "default"
          },
          "minPriceChangePercent": {
            "title": "Minimum price change (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Alert mode: ignore price moves smaller than this percentage. 0 = any change of at least one whole currency unit.",
            "default": 0
          },
          "alertOnNewHotels": {
            "title": "Also alert on newly listed hotels",
            "type": "boolean",
            "description": "Alert mode: also output hotels that were not seen in earlier runs. Off by default because Google's ranking shuffles which hotels appear on the first pages.",
            "default": false
          },
          "history": {
            "title": "Add price history",
            "type": "boolean",
            "description": "Add a <code>history</code> object to every hotel: current price vs. its 30/90-day min/median/max, percentile of today's price (0 = cheapest seen), lowest-seen price and date, and a 30-day sparkline of daily lowest prices (2-night stays, 2 adults, USD, collected daily for the tracked hotels). Charged as an extra <code>hotel-history</code> event per hotel <b>only when history exists</b>; hotels without history yet are flagged (<code>tracking-started</code>) and not charged.",
            "default": false
          },
          "entityIds": {
            "title": "Hotel entity IDs (history only)",
            "type": "array",
            "description": "With <b>Add price history</b> on: Google Hotels entity IDs (the <code>entityId</code> field of earlier results) to return history for directly, without a live price scrape. Only the <code>hotel-history</code> event applies to these rows. Ignored when price history is off.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "JPY",
              "INR",
              "CHF",
              "MXN",
              "BRL",
              "SGD",
              "AED"
            ],
            "type": "string",
            "description": "Currency for all prices. USD by default, independent of proxy location.",
            "default": "USD"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Parallel requests to Google. The default is tuned for reliability.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Primary proxy. Defaults to Apify datacenter proxy in the US.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          },
          "residentialFallback": {
            "title": "Automatic residential fallback",
            "type": "boolean",
            "description": "If a request is blocked or comes back empty, retry it automatically through US residential proxies.",
            "default": true
          },
          "checkInDate": {
            "title": "Check-in date (alias)",
            "type": "string",
            "description": "Alias of <code>checkIn</code> for inputs written for other Google Hotels scrapers. Ignored if <code>checkIn</code> is set."
          },
          "checkOutDate": {
            "title": "Check-out date (alias)",
            "type": "string",
            "description": "Alias of <code>checkOut</code>. Ignored if <code>checkOut</code> is set."
          },
          "maxResults": {
            "title": "Max results (alias)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Alias of <code>maxHotelsPerLocation</code>. Ignored if <code>maxHotelsPerLocation</code> is set."
          },
          "languageCode": {
            "title": "Language code (ignored)",
            "type": "string",
            "description": "Accepted for compatibility; has no effect. Results are always in English."
          },
          "countryCode": {
            "title": "Country code (ignored)",
            "type": "string",
            "description": "Accepted for compatibility; has no effect. Use <b>Currency</b> and <b>Proxy configuration</b> instead."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout in seconds (ignored)",
            "minimum": 0,
            "type": "integer",
            "description": "Accepted for compatibility; has no effect. Timeouts and retries are managed automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}