{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels & Vacation Rental Prices vs Airbnb",
    "description": "Hotel prices and vacation rental prices from Google Hotels for your dates, compared with Airbnb, plus each property's price on Booking.com, Expedia, Agoda, Vrbo, its official site and more: nightly and total, taxes, stars. Only a place is needed. $1 per 1,000 rows, $4 per 1,000 price lists.",
    "version": "0.0",
    "x-build-id": "KkuNwO1UblVCTSt23"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thelastscraper~google-hotels-vacation-rentals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thelastscraper-google-hotels-vacation-rentals",
        "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/thelastscraper~google-hotels-vacation-rentals/runs": {
      "post": {
        "operationId": "runs-sync-thelastscraper-google-hotels-vacation-rentals",
        "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/thelastscraper~google-hotels-vacation-rentals/run-sync": {
      "post": {
        "operationId": "run-sync-thelastscraper-google-hotels-vacation-rentals",
        "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": [
          "where"
        ],
        "properties": {
          "where": {
            "title": "Places",
            "type": "array",
            "description": "Required. A list of places, e.g. [\"Lisbon, Portugal\"] or [\"Las Vegas, NV\", \"Branson, MO\"]: each a city, town or neighborhood as you would type it in Google Hotels. Add the state or country when a name is ambiguous (Springfield, Portland). Each place is searched separately. Up to 50. To track specific hotels, paste their Google Hotels links in Places: each link returns that property's row and its price list per booking site, with no search.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "What to get",
            "minItems": 1,
            "type": "array",
            "description": "Default [\"hotels\", \"vacation_rentals\"], both from Google Hotels (its vacation rentals list Vrbo, Booking.com, Expedia and more). Add \"airbnb\" to also get Airbnb listings for the same place, dates and guests, plus a free price comparison (the comparison dataset: the median nightly price per segment and source).",
            "items": {
              "type": "string",
              "enum": [
                "hotels",
                "vacation_rentals",
                "airbnb"
              ],
              "enumTitles": [
                "Hotels (Google Hotels)",
                "Vacation rentals (Google Hotels: Vrbo, Booking.com, Expedia and more)",
                "Airbnb listings (same place, dates and guests)"
              ]
            },
            "default": [
              "hotels",
              "vacation_rentals"
            ]
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD, e.g. 2027-01-12 (also 2027/01/12, 12 Jan 2027 or Jan 12 2027). Leave both dates empty for automatic dates: 30 days from today (UTC), 5 nights, best for schedules. With only a check-in date the stay is 5 nights. At most 330 days ahead."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD, e.g. 2027-01-15, after the check-in date and at most 30 nights later. Every row states the dates its price is for."
          },
          "adults": {
            "title": "Guests (adults)",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Guests (adults), 1 to 16, default 2. The same on every source; prices are for this many guests.",
            "default": 2
          },
          "maxItemsPerSource": {
            "title": "Results per place, for each source",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Rows per place for each source (hotels, vacation rentals, Airbnb), 1 to 20,000, default 50; for each class if you pick hotel star classes. Every row is charged. Google shows about 18 per page, so 20 is the quickest answer. For every listing in an area, set How many results to \"all\" instead.",
            "default": 50
          },
          "coverage": {
            "title": "How many results",
            "enum": [
              "off",
              "all",
              "auto"
            ],
            "type": "string",
            "description": "off (default): up to Results per place. all: every property Google lists in the area, read area by area; slow and large (Lisbon vacation rentals: about 11,000 rows in 8-10 minutes, about $11 on the Free plan). The run first states its estimate of rows, time and charge. Use it only when every listing is wanted, with a maximum cost per run. auto: the same as off.",
            "default": "off"
          },
          "includeUnpriced": {
            "title": "Also list properties with no price for your dates",
            "type": "boolean",
            "description": "Default false: only properties with a price for your dates are returned and charged. true also returns the properties Google lists without a price for those dates (available_for_dates false, prices empty), charged like any row and counted toward Results per place (65 % of the rows of a full Lisbon run). Use it to count inventory.",
            "default": false
          },
          "includeOffers": {
            "title": "Prices per booking site",
            "type": "boolean",
            "description": "Default false. true adds each delivered property's full price list per booking site (up to Properties with booking-site prices) to the offers dataset: every site Google shows, with its nightly and total price with taxes and fees, the before-tax price, official site, free cancellation and a direct link; the row gets offers_count, cheapest_provider and cheapest_price_per_night. One more Google page per property, charged once (offers, see Pricing) when the list has a price.",
            "default": false
          },
          "maxOfferProperties": {
            "title": "Properties with booking-site prices",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "With Prices per booking site: how many properties of the run get their price list, 1 to 1,000, default 20 (the first rows delivered). Each one is one more Google page, about 1-2 s.",
            "default": 20
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for every price, default USD, e.g. EUR or GBP. A code Google Hotels cannot price in is refused before the run.",
            "default": "USD"
          },
          "hotelStarClasses": {
            "title": "Hotel star classes",
            "type": "array",
            "description": "Optional, as text, e.g. [\"4\", \"5\"] (classes 2 to 5). One hotel search per class, each returning up to Results per place. Leave empty for all hotels.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2-star",
                "3-star",
                "4-star",
                "5-star"
              ]
            },
            "default": []
          },
          "airbnbRoomType": {
            "title": "Airbnb: type of place",
            "enum": [
              "entire_home",
              "private_room",
              "any"
            ],
            "type": "string",
            "description": "Used only when What to get includes airbnb: entire_home (default; the best match for vacation rentals), private_room or any.",
            "default": "entire_home"
          },
          "areaFilter": {
            "title": "Only inside a circle",
            "type": "object",
            "description": "Optional, e.g. {\"lat\": 38.71, \"lng\": -9.14, \"radiusKm\": 2} (radius 0.1 to 100 km). Only properties inside the circle are returned and charged, on every source, so Google and Airbnb cover the same area. With How many results = all, the circle itself is read area by area; otherwise Google searches the whole place, so a small circle can return few Google rows.",
            "default": {}
          },
          "maxItems": {
            "title": "Max results in the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap on rows for the whole run; 0 (default) = no cap. For a money cap, set Maximum cost per run in Run options (maxTotalChargeUsd in the API or the MCP callOptions).",
            "default": 0
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "spreadsheet",
              "compact",
              "full_json"
            ],
            "type": "string",
            "description": "spreadsheet (default): 65 flat columns for CSV and Excel. compact: 20 key columns (name, nightly price before tax and all-in, total price, stars, bedrooms, rating, location, link), about a quarter of the size: best for AI agents. full_json: adds each booking site's link, missing amenities and descriptions.",
            "default": "spreadsheet"
          },
          "country": {
            "title": "Google country",
            "type": "string",
            "description": "Google's country, 2 letters, default us. Prices and booking sites follow the server's location (the US) more than this setting.",
            "default": "us"
          },
          "language": {
            "title": "Google language",
            "type": "string",
            "description": "Google's language, default en (also en-GB, es, pt, fr, de...). English gives the most complete bedrooms, sleeps and amenities.",
            "default": "en"
          },
          "proxyFallback": {
            "title": "Retry through the Apify proxy if Google limits requests",
            "type": "boolean",
            "description": "Default false: when Google limits requests, the run stops with what it has. true: it goes on once through Apify's datacenter proxy.",
            "default": false
          },
          "maxRequests": {
            "title": "Max requests (safety cap)",
            "minimum": 0,
            "type": "integer",
            "description": "A safety cap on Google and Airbnb pages, retries included; 0 (default) = no cap.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}