{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Prices: Price History, Seller Prices & Calendar",
    "description": "Hotel prices from Google Hotels for any city, area or hotel name, from $2.50 per 1,000 hotels. Ratings, stars, amenities, photos and each booking site's price. Keeps price history, can return only hotels that got cheaper and finds the cheapest night in a date range. No login.",
    "version": "0.2",
    "x-build-id": "GlaassLFwei9dH3Ou"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~google-hotels/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-google-hotels",
        "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/locaihost~google-hotels/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-google-hotels",
        "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/locaihost~google-hotels/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-google-hotels",
        "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": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, areas or hotel names, one per line, e.g. \"Lisbon\", \"Shinjuku, Tokyo\" or \"Ritz Paris\". A hotel name returns that one hotel. A Google Hotels link to a hotel (google.com/travel/hotels/.../entity/...) returns exactly that hotel, which keeps scheduled runs on the same hotels.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "YYYY-MM-DD, or days from today like \"+14 days\". Empty means 14 days from today."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Empty means one night after check-in. At most 30 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult guests the prices are for.",
            "default": 2
          },
          "maxHotelsPerLocation": {
            "title": "Hotels per location",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Google shows about 20 hotels per page; more hotels means more pages.",
            "default": 20
          },
          "onlyPriceDrops": {
            "title": "Only hotels whose price fell since the last run",
            "type": "boolean",
            "description": "For scheduled runs. The first run stores prices and returns nothing; later runs return only hotels (and calendar nights) that got cheaper. Unchanged hotels are not returned and not charged.",
            "default": false
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lowest-price",
              "highest-rating",
              "most-reviewed"
            ],
            "type": "string",
            "description": "Order of hotels in each location.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Lowest guest rating",
            "type": "string",
            "description": "From 1 to 5, e.g. 4 or 4.5. Optional."
          },
          "hotelClass": {
            "title": "Star classes",
            "type": "array",
            "description": "Keep only these classes. Empty means any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minPrice": {
            "title": "Lowest price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the currency below. Optional. Hotels below this price are left out before they are saved, so you are never charged for them. Google's own filter only takes a highest price, so this one is applied after the results arrive."
          },
          "maxPrice": {
            "title": "Highest price per night",
            "minimum": 1,
            "type": "integer",
            "description": "In the currency below. Optional."
          },
          "freeCancellation": {
            "title": "Only free cancellation",
            "type": "boolean",
            "description": "Only hotels Google shows with free cancellation.",
            "default": false
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "Keep only places with all of these. Google filters by them in the search itself, so you still get a full page of matches. \"kitchen\" is the one exception: Google has no filter for it, so we check each place's amenity list after the results arrive and drop the ones without it (dropped places are never charged).",
            "items": {
              "type": "string",
              "enum": [
                "free-wifi",
                "free-breakfast",
                "free-parking",
                "parking",
                "pool",
                "indoor-pool",
                "outdoor-pool",
                "fitness-centre",
                "spa",
                "restaurant",
                "bar",
                "room-service",
                "kid-friendly",
                "pet-friendly",
                "air-conditioning",
                "wheelchair-accessible",
                "ev-charger",
                "beach-access",
                "all-inclusive",
                "kitchen"
              ]
            }
          },
          "dealsOnly": {
            "title": "Only deals",
            "type": "boolean",
            "description": "Only places Google marks with a deal, such as a lower price than usual or a member rate.",
            "default": false
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "hotels",
              "vacation-rentals"
            ],
            "type": "string",
            "description": "Google lists hotels and vacation rentals separately, so pick one. Vacation rental rows include how many guests the place sleeps.",
            "default": "hotels"
          },
          "children": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0 to 17) per child, e.g. [4, 9]. Empty means no children."
          },
          "includeOffers": {
            "title": "Seller prices for each hotel",
            "type": "boolean",
            "description": "Adds one row per booking site with its price, cancellation terms and link, and the hotel's street address. Up to 20 hotels per location and 15 sellers per hotel.",
            "default": false
          },
          "includeDetails": {
            "title": "Hotel details from each hotel's page",
            "type": "boolean",
            "description": "Adds the hotel's phone number, its ratings on other review sites and its street address. Opens each hotel's page once, for up to 20 hotels per location. If seller prices are also on, the same page serves both, so it costs nothing extra.",
            "default": false
          },
          "dateRange": {
            "title": "Price calendar: check-in dates",
            "type": "string",
            "description": "First and last check-in date, e.g. \"2026-12-01 to 2026-12-31\". Adds one row per date with the cheapest price that night. At most 62 dates."
          },
          "nights": {
            "title": "Price calendar: nights per stay",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of each stay in the price calendar, in nights.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code, e.g. USD, EUR, GBP, JPY.",
            "default": "USD"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter code of the market Google prices for, e.g. US, GB, DE.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of names, amenities and deal labels, e.g. en, de, pt-BR.",
            "default": "en"
          },
          "browserFallback": {
            "title": "Use a browser if the fast route is refused",
            "type": "boolean",
            "description": "Slower and uses more compute. Only needed if runs report being blocked.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The default connection works for most runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}