{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper",
    "description": "Google Hotels for any city and dates, plus every booking site's rate per hotel (Booking.com, Expedia, Agoda, the hotel's own site). Built to beat Kestrel and Factden: $0.0034 per hotel with all rates vs $0.040 and $0.009. Children, filters, price calendar, hotels by name.",
    "version": "0.1",
    "x-build-id": "qB1jAXCdesCeWyfP0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidyharvest~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidyharvest-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/tidyharvest~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tidyharvest-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/tidyharvest~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tidyharvest-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": "One place per line: a city, a neighborhood, or a landmark (San Francisco, Paris, Waikiki, near Eiffel Tower). Each is searched separately. Leave empty if you only want the hotels named below.",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Specific hotels",
            "type": "array",
            "description": "Exact hotels, one per line: a name with its city (Hyatt Regency Lisbon), a Google Hotels link, or the token from a googleUrl of an earlier run. You get one row per hotel with its price and, with the options below, every booking site's rate. A name that matches no hotel costs nothing.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD, or +N for N days from today (+30 = a month out; keeps scheduled runs current)."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD or +N. Defaults to two nights after check-in; up to 30 nights."
          },
          "sweepDays": {
            "title": "Price calendar: extra check-in days",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "0 = only the stay above. N = also price the same length of stay starting on each of the next N days (a price calendar; 13 = two weeks of check-ins). Every day is a separate search, so results and charges multiply.",
            "default": 0
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Prices are for one room holding this many adults (1 to 12). Large parties only see the properties that can host them.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Ages of the children in the same room, 0 to 17 (0 and 1 count as one age band on Google), for example 5 and 9. Prices change with children, and some hotels drop out.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code, e.g. USD, EUR, GBP.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Locale for names and labels, e.g. en, de, fr.",
            "default": "en"
          },
          "country": {
            "title": "Market (country)",
            "type": "string",
            "description": "Two-letter country of the person searching (us, gb, jp). It changes which booking sites and prices Google shows, not where the hotels are. Empty = Google's default."
          },
          "maxResults": {
            "title": "Maximum results per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on properties returned (and charged) for each place. 20 per page of results.",
            "default": 20
          },
          "maxTotalResults": {
            "title": "Maximum results in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap across all searches."
          },
          "includeOffers": {
            "title": "Booking-site rates per hotel",
            "type": "boolean",
            "description": "Add every booking site's price for the stay (Booking.com, Expedia, Agoda, Hotels.com, the hotel's own site and about 15 more): nightly and whole-stay price with and without taxes, free-cancellation deadline and a link. Billed once per hotel that has rates (add-on, see Pricing).",
            "default": false
          },
          "offerLevel": {
            "title": "Rate detail",
            "enum": [
              "sources",
              "rooms"
            ],
            "type": "string",
            "description": "'sources' = one rate per booking site (its lowest). 'rooms' = also every room type and rate the sites share with Google, with room names and cancellation deadlines.",
            "default": "sources"
          },
          "maxOffersPerHotel": {
            "title": "Maximum rates per hotel",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0 = all of them. N = only the N cheapest booking sites per hotel (rows stay smaller).",
            "default": 0
          },
          "includeDetails": {
            "title": "Property details",
            "type": "boolean",
            "description": "Add address, phone, Google place ID, the full hotel description, what guests mention most (review topics with sentiment) and a few recent guest reviews. Billed once per hotel that has details (add-on, see Pricing).",
            "default": false
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "price",
              "rating",
              "reviews"
            ],
            "type": "string",
            "description": "Applied by Google before the result cap, so 30 with 'price' is the 30 cheapest properties that have a price for your dates.",
            "default": "relevance"
          },
          "maxPricePerNight": {
            "title": "Maximum price per night",
            "minimum": 1,
            "type": "number",
            "description": "In the chosen currency, as Google shows it (before taxes for most countries). Applied by Google before the result cap."
          },
          "minPricePerNight": {
            "title": "Minimum price per night",
            "minimum": 1,
            "type": "number",
            "description": "Same basis as the maximum."
          },
          "minRating": {
            "title": "Minimum guest rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "0-5, e.g. 4.2. Google pre-filters at 3.5, 4.0 or 4.5; the exact value is applied on top."
          },
          "minStars": {
            "title": "Minimum hotel class",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1-5 stars. Vacation rentals have no class and are left out when this is set."
          },
          "hotelClass": {
            "title": "Hotel class (exact)",
            "type": "array",
            "description": "Only these star classes, for example 4 and 5. Applied by Google before the result cap. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2-star",
                "3-star",
                "4-star",
                "5-star"
              ]
            }
          },
          "amenities": {
            "title": "Amenities (all of)",
            "type": "array",
            "description": "Only properties that have all the amenities picked. Applied by Google before the result cap.",
            "items": {
              "type": "string",
              "enum": [
                "free_wifi",
                "free_breakfast",
                "restaurant",
                "bar",
                "kid_friendly",
                "pet_friendly",
                "free_parking",
                "parking",
                "ev_charger",
                "room_service",
                "fitness_center",
                "spa",
                "pool",
                "indoor_pool",
                "outdoor_pool",
                "air_conditioned",
                "wheelchair_accessible",
                "beach_access"
              ],
              "enumTitles": [
                "Free Wi-Fi",
                "Free breakfast",
                "Restaurant",
                "Bar",
                "Kid-friendly",
                "Pet-friendly",
                "Free parking",
                "Parking",
                "EV charger",
                "Room service",
                "Fitness center",
                "Spa",
                "Pool",
                "Indoor pool",
                "Outdoor pool",
                "Air-conditioned",
                "Wheelchair accessible",
                "Beach access"
              ]
            }
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only properties with a free-cancellation rate for your dates (Google then quotes that rate).",
            "default": false
          },
          "specialOffers": {
            "title": "Special offers only",
            "type": "boolean",
            "description": "Only properties Google marks as a deal for your dates.",
            "default": false
          },
          "hotelTypes": {
            "title": "Kind of hotel",
            "type": "array",
            "description": "Only these kinds (Google's own property-type filter). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "motel",
                "boutique",
                "hostel",
                "beach",
                "inn",
                "bed_and_breakfast",
                "spa_hotel",
                "resort",
                "other"
              ],
              "enumTitles": [
                "Motels",
                "Boutique hotels",
                "Hostels",
                "Beach hotels",
                "Inns",
                "Bed and breakfasts",
                "Spa hotels",
                "Resorts",
                "Other"
              ]
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Hotels or vacation rentals. Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "vacation-rental"
              ],
              "enumTitles": [
                "Hotels",
                "Vacation rentals"
              ]
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "array",
            "description": "Keep only properties whose name contains one of these words (Hilton, Marriott, hostel).",
            "items": {
              "type": "string"
            }
          },
          "onlyPriced": {
            "title": "Only properties with a price",
            "type": "boolean",
            "description": "Skip properties Google has no price for on your dates (sold out), so you are not charged for them.",
            "default": false
          },
          "maxPages": {
            "title": "Maximum result pages per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety limit on pages read per place (20 properties a page). Defaults to enough for your result cap, or more when filters or sorting need it."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Use if Google refuses direct requests.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}