{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Prices Scraper: Price Comparison of Booking Sites",
    "description": "Hotel scraper and hotel price API for Google Hotels: nightly rates by city and dates (stars, rating, GPS, link), or every booking site's price for given hotels (Booking.com, Expedia, official site) with a daily price calendar. No browser or proxies. Pay per hotel.",
    "version": "0.1",
    "x-build-id": "VrF5k0pc0pFqSlPbY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plainrows~google-hotels-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plainrows-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/plainrows~google-hotels-prices/runs": {
      "post": {
        "operationId": "runs-sync-plainrows-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/plainrows~google-hotels-prices/run-sync": {
      "post": {
        "operationId": "run-sync-plainrows-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": {
          "destinations": {
            "title": "Destinations",
            "maxItems": 1000,
            "type": "array",
            "description": "Cities or areas to search, one per line, written as you would in Google Hotels: \"Paris, France\", \"Lisbon, Portugal\", \"hotels near Times Square\". Adding the country avoids ambiguity. Up to 500 per run. Leave empty when you fill in \"Hotels to compare\".",
            "items": {
              "type": "string"
            }
          },
          "hotels": {
            "title": "Hotels to compare (price comparison mode)",
            "maxItems": 1000,
            "type": "array",
            "description": "Optional. Hotel names with their city (\"Hyatt Regency Lisbon\"), Google hotel IDs (the hotelId column of a search run) or Google Hotels links (google.com/travel/hotels/entity/...), one per line. When filled in, the Actor returns for each hotel the price of every booking site Google lists for your dates (official site included) and a daily price calendar, instead of searching destinations. A name is first looked up on Google Hotels (one results page). Up to 500 per run.",
            "items": {
              "type": "string"
            }
          },
          "priceCalendarRange": {
            "title": "Price calendar (comparison mode)",
            "enum": [
              "month",
              "three_months",
              "six_months",
              "year"
            ],
            "type": "string",
            "description": "Price comparison mode only: how many days of nightly prices to return from the check-in date. Same price whatever the range.",
            "default": "three_months"
          },
          "speed": {
            "title": "Speed (comparison mode)",
            "enum": [
              "standard",
              "fast"
            ],
            "type": "string",
            "description": "Price comparison mode only. Standard waits in the data provider's queue (about 10-20 seconds per hotel when measured, longer at busy times; a hotel still queued after 12 minutes is answered the fast way at no extra charge). Fast answers in about 5-15 seconds and adds one Fast mode event per hotel compared: use it for AI agents or interactive tools.",
            "default": "standard"
          },
          "checkInDate": {
            "title": "Check-in date (optional)",
            "type": "string",
            "description": "YYYY-MM-DD. Leave empty for 30 days from today (handy for scheduled price tracking)."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay. Check-out = check-in + nights.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Guests per room (Google prices change with the number of guests).",
            "default": 2
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Three-letter currency code for prices, e.g. USD, EUR, GBP, CHF.",
            "default": "USD"
          },
          "maxHotelsPerDestination": {
            "title": "Max hotels per destination",
            "minimum": 1,
            "maximum": 140,
            "type": "integer",
            "description": "Google Hotels returns up to about 140 hotels per search, in pages of about 20. Each hotel returned and each results page are billed; see Pricing.",
            "default": 20
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lowest_price",
              "highest_rating",
              "most_reviewed"
            ],
            "type": "string",
            "description": "Order of the results, as in Google Hotels.",
            "default": "relevance"
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "IE",
              "IN",
              "DE",
              "AT",
              "CH",
              "FR",
              "BE",
              "ES",
              "MX",
              "IT",
              "NL",
              "PT",
              "BR",
              "PL",
              "SE",
              "JP"
            ],
            "type": "string",
            "description": "Google market the search is made from (Google's country). It changes how prices are shown, e.g. with or without taxes. It does not limit where the hotels are.",
            "default": "US"
          },
          "languageCode": {
            "title": "Language (optional)",
            "pattern": "^([a-zA-Z]{2})?$",
            "type": "string",
            "description": "Two-letter language code, e.g. \"en\" or \"fr\". Leave empty to use the country's main language (for example German for Switzerland, French for Belgium)."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "hotels",
              "vacation-rentals"
            ],
            "type": "string",
            "description": "Google mixes some vacation rentals into hotel results. Choose \"Hotels only\" to drop them, or search rentals only.",
            "default": "any"
          },
          "hotelClass": {
            "title": "Hotel class (stars)",
            "type": "array",
            "description": "Keep only these star classes. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "minRating": {
            "title": "Minimum guest rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Google's guest-rating filter, e.g. 4 or 4.5 (0 = no filter).",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the chosen currency. Empty = no minimum."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the chosen currency. Empty = no maximum."
          },
          "freeCancellationOnly": {
            "title": "Only offers with free cancellation",
            "type": "boolean",
            "description": "Google's free-cancellation filter. Rows then have freeCancellation = true.",
            "default": false
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "Keep only hotels that have all of these amenities (Google filter).",
            "items": {
              "type": "string",
              "enum": [
                "air_conditioning",
                "all_inclusive_available",
                "bar",
                "beach_access",
                "fitness_center",
                "free_breakfast",
                "free_parking",
                "free_wifi",
                "indoor_pool",
                "kid_friendly",
                "outdoor_pool",
                "parking",
                "pets_allowed",
                "pool",
                "restaurant",
                "room_service",
                "spa",
                "wheelchair_accessible"
              ],
              "enumTitles": [
                "Air conditioning",
                "All-inclusive available",
                "Bar",
                "Beach access",
                "Fitness center",
                "Free breakfast",
                "Free parking",
                "Free Wi-Fi",
                "Indoor pool",
                "Kid-friendly",
                "Outdoor pool",
                "Parking",
                "Pets allowed",
                "Pool",
                "Restaurant",
                "Room service",
                "Spa",
                "Wheelchair accessible"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}