{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper - Prices from Every Booking Site, Ratings",
    "description": "Scrape Google Hotels for any city and dates: nightly and total prices, prices at every booking site (Booking.com, Expedia, Agoda, official site), ratings, reviews, star class, amenities, coordinates and deals. Price-change monitor. No start fee.",
    "version": "0.1",
    "x-build-id": "raqHQmQei8yd5kHCJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rjmacarthy~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rjmacarthy-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/rjmacarthy~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rjmacarthy-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/rjmacarthy~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rjmacarthy-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": "Locations",
            "type": "array",
            "description": "Cities, neighbourhoods or landmarks, one per line (e.g. \"Paris\", \"Shibuya, Tokyo\", \"hotels near Times Square\"). Plain place names are searched as \"hotels in <place>\". One location = one results page with about 20 hotels.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Hotels search URLs (optional)",
            "type": "array",
            "description": "Paste Google Hotels search URLs (https://www.google.com/travel/search?q=...). A URL copied after picking dates on Google keeps its own dates, guests and filters; a plain URL (just ?q=...) uses the fields below like a location.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD. Empty = 14 days from today (a rolling date, so scheduled runs always look two weeks ahead)."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD, 1 to 30 nights after check-in. Empty = one night."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult guests (prices are for one room for this many guests).",
            "default": 2
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for all prices, e.g. USD, EUR, GBP, JPY.",
            "default": "USD"
          },
          "maxItems": {
            "title": "Max hotels per location",
            "minimum": 0,
            "type": "integer",
            "description": "Google shows about 20 hotels per results page. Above 20, the Actor also searches the location by hotel class (2 to 5 stars) and merges the results, for up to about 100 different hotels per location. 0 = everything those pages show.",
            "default": 20
          },
          "minPrice": {
            "title": "Min price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only hotels from this nightly price (before taxes), in the chosen currency. Applied by Google's own price filter."
          },
          "maxPrice": {
            "title": "Max price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only hotels up to this nightly price (before taxes), in the chosen currency. Applied by Google's own price filter."
          },
          "hotelClass": {
            "title": "Hotel class (stars)",
            "type": "array",
            "description": "Only hotels of these star classes. Empty = all, including vacation rentals.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2-star",
                "3-star",
                "4-star",
                "5-star"
              ]
            }
          },
          "minRating": {
            "title": "Min guest rating",
            "enum": [
              "any",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only hotels rated at least this (out of 5). Filters the hotels on the fetched pages, so fewer than \"Max hotels\" may come back.",
            "default": "any"
          },
          "includeOffers": {
            "title": "Include prices from every booking site",
            "type": "boolean",
            "description": "Also open each hotel's prices page for the price at every booking site (Booking.com, Expedia, Agoda, the hotel's own site, ...) with links, plus the street address. One extra page per hotel, charged as one \"hotel-offers\" event per hotel that has prices.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode",
            "enum": [
              "off",
              "changes"
            ],
            "type": "string",
            "description": "\"changes\" outputs only hotels that are new or whose nightly price changed since the last run of this monitor (with previousPrice). Needs fixed check-in and check-out dates. Each results page checked costs one \"monitor-check\" event, even when nothing changed. The first run outputs everything and becomes the baseline.",
            "default": "off"
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the monitor state. Use a different name for each schedule that tracks different searches.",
            "default": "default"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google interface language code for names and texts, e.g. en, fr, de, es, ja. Hotel amenities are only read from English (en) pages.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "2-letter country code of the Google site you browse from (gl), e.g. us, gb, de. Affects which booking sites appear.",
            "default": "us"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages fetched at the same time.",
            "default": 5
          },
          "maxZyteRequests": {
            "title": "Max page requests per run",
            "minimum": 0,
            "type": "integer",
            "description": "Safety cap on pages fetched per run (results pages plus prices pages). 0 = automatic (pages needed + 20%, max 2,000). Page fetching is built in, no proxy setup needed. Runs on the free Apify plan are limited to 5 pages per run; any paid plan removes that limit.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}