{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper: Prices, OTA Rates and Rate Parity",
    "description": "Scrape Google Hotels prices for any city or hotel across a calendar of check-in dates, in any currency, with stay length and occupancy echoed on every row, plus per-site offers (Booking.com, Expedia, the hotel's own site) for rate-parity checks.",
    "version": "0.1",
    "x-build-id": "Ck9EsXKbCUAVsddyH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/garje~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-garje-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/garje~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-garje-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/garje~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-garje-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": {
          "queries": {
            "title": "Searches",
            "type": "array",
            "description": "City or hotel searches as you would type them into Google, for example \"hotels in Paris\". Each row carries resolvedPlace, the place Google read the search as. A search Google does not recognise is skipped and not charged.",
            "items": {
              "type": "string"
            }
          },
          "hotelUrls": {
            "title": "Hotel URLs (coming soon)",
            "type": "array",
            "description": "Coming soon: named-hotel tracking. Leave this empty for now. A run with hotel links stops at once and costs nothing; use Searches instead, for example \"hotels in Paris\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "checkInFrom": {
            "title": "First check-in date",
            "type": "string",
            "description": "First check-in date of the price calendar (YYYY-MM-DD), for example 2026-11-12. Defaults to tomorrow. Past dates are rejected before the run starts, so they never cost anything. For scheduled runs use First check-in, days ahead instead, so the date moves forward with every run."
          },
          "checkInTo": {
            "title": "Last check-in date",
            "type": "string",
            "description": "Last check-in date of the calendar. One search runs per check-in date in the range. Defaults to the first check-in date."
          },
          "checkInFromDaysAhead": {
            "title": "First check-in, days ahead",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "First check-in date as days after the run date: 0 is today, 7 is a week ahead. Use it instead of First check-in date for scheduled runs, so they never ask for a past date. <a href=\"https://garje-data-notes.laude--pify.workers.dev/articles/copenhagen-hotel-prices-30-check-in-dates.html\" target=\"_blank\">Read an example</a>."
          },
          "checkInToDaysAhead": {
            "title": "Last check-in, days ahead",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Last check-in date as days after the run date, for example 30. Defaults to the first check-in date. <a href=\"https://garje-data-notes.laude--pify.workers.dev/articles/copenhagen-hotel-prices-30-check-in-dates.html\" target=\"_blank\">Read an example</a>."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Stay length applied to every check-in date and echoed on every row, as Google reported it.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Adults per room. Prices change with occupancy.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children. Ages default to 8 unless set below.",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Optional ages (0 to 17), one per child.",
            "default": []
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter ISO 4217 code, for example USD, EUR, GBP, INR or IDR.",
            "default": "USD"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country of the searcher. It pins the proxy country, because Google's prices follow the requester's country.",
            "default": "US"
          },
          "filters": {
            "title": "Filters",
            "type": "object",
            "description": "Optional: hotelClass (array of 2 to 5), amenities (for example [\"freeWifi\", \"pool\"]), minRating (for example 4.0), priceMin and priceMax (per night, in your currency).",
            "default": {}
          },
          "includeOffers": {
            "title": "Include per-site offers",
            "type": "boolean",
            "description": "Adds one row per booking site (Booking.com, Expedia, the hotel's own site and others) for each hotel and date. Each offer is a separate paid event. <a href=\"https://garje-data-notes.laude--pify.workers.dev/articles/berlin-hotel-booking-site-price-spread.html\" target=\"_blank\">Read an example</a>.",
            "default": false
          },
          "includeUnavailable": {
            "title": "Include hotels without a price",
            "type": "boolean",
            "description": "Also return hotels Google lists without a price on that date (sold out or not bookable), with pricePerNight null and available false. These rows are not charged. Off by default.",
            "default": false
          },
          "maxHotelsPerQuery": {
            "title": "Max hotels per search and date",
            "minimum": 1,
            "maximum": 360,
            "type": "integer",
            "description": "Hard cost cap per search and check-in date.",
            "default": 50
          },
          "canary": {
            "title": "Drift canary (advanced)",
            "type": "object",
            "description": "For scheduled monitoring runs. Example: {\"baselineStore\": \"canary-baseline\", \"thresholdPoints\": 5}. The first run saves the null rate of key fields (and the mix of a status field) to that named key-value store; later runs compare and fail with an alert if any value moves by more than thresholdPoints percentage points. Leave empty for normal runs."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy pinned to the country above is recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}