scraper
Back to API docs

Overview

  • Overview

SERP

  • POSTSERP

Core

  • POSTGeocode
  • POSTTranslate
  • POSTSearch
  • POSTVision
  • POSTPlaces Search
  • POSTPlace Details
  • POSTPlaces Nearby
  • POSTAutocomplete

Maps

  • POSTSearch
  • POSTPlace Details
  • POSTReviews

Hotels

  • POSTSearch
  • POSTDetail
  • POSTReviews
  • POSTPhotos

Play

  • POSTReviews

Flights

  • POSTOne-way Search
  • POSTCalendar
  • POSTExplore

Jobs

  • POSTJobs Search

Finance

  • POSTQuote
  • POSTFundamentals
  • POSTChart
  • POSTNews
  • POSTSearch
  • POSTEstimates
  • POSTEarnings

Hotel Search

2 credits

Search for hotels by location with filters for dates, amenities, price, and more.

POST/api/v1/tools/google/hotels/search

Parameters

locationstring

The location to search: a city, landmark, region, or country. The API removes space at the start and end. The value must contain 1 to 200 characters. Required with checkInDate and checkOutDate when you do not send searches. The request body is strict. Unknown fields are rejected.

checkInDatestring

A real calendar date in YYYY-MM-DD format. It must be today or a future date. Required with location when you do not send searches.

checkOutDatestring

A real calendar date in YYYY-MM-DD format. It must be after checkInDate. Required with location when you do not send searches.

searchesobject[]

From 1 to 10 searches in one call. Each entry has location, checkInDate, and checkOutDate, as above. Use it instead of those three fields, not with them. Every other field applies to each entry. The call costs 2 credits for each valid entry, and maxResults times the number of valid entries cannot be more than your plan limit. An entry with a missing or invalid value, or a check-in date in the past, is skipped: its result has a note and no entries, and it is not charged. A 400 response comes only when no entry is valid. The entries run in order inside one 55-second time limit. The response holds one result for each entry in data.searches, in the same order. An entry that fails has no entries and a note, and the later entries still run. If every valid entry fails, you get the first error and the credits are refunded. If only some entries fail, the credits are not refunded.

adultsinteger

The number of adults, from 1 to 9. The default is 2.

childreninteger

The number of children, from 0 to 9. The default is 0.

roomsinteger

The number of rooms, from 1 to 9. The default is 1. The value does not change the results, because Google Hotels search has no room count.

typestring

The result type: "hotels", "vacation_rentals", or "both". The default is "both". With "both", the response lists hotels first, then vacation rentals.

currencystring

A 3-letter currency code. The API changes letters to uppercase. The default is "USD".

minPriceinteger

A positive minimum price. maxPrice must be equal to or greater than minPrice.

maxPriceinteger

A positive maximum price. It must be equal to or greater than minPrice.

hotelClassinteger[]

Unique hotel class values from 2 to 5.

guestRatingstring

The minimum guest rating: "3.5", "4.0", or "4.5".

amenitiesstring[]

Unique amenity filters. Supported values: "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", "all_inclusive_available".

propertyTypesstring[]

Unique property-type filters. Supported values: "apartment_hotels", "bed_and_breakfasts", "spa_hotels", "resorts", "motels", "inns", "hostels", "boutique_hotels", "beach_hotels", "other".

freeCancellationboolean

Set this to true to require free cancellation. The default is false.

specialOffersboolean

Set this to true to require special offers. The default is false.

ecoCertifiedboolean

Set this to true to require an eco-certified property. The default is false.

sortBystring

The order: "relevance", "price_low", "price_high", "rating", "most_reviewed", or "distance". The default is "relevance". "distance" measures from the middle of the searched area. Google has no highest-price or distance order, so "price_high" and "distance" sort only the collected results.

maxResultsinteger

The maximum number of entries to return for each selected type, from 1 to 250. The default is 50. With type "both", the response can hold up to twice this many entries. The value cannot be more than your plan limit. With searches, this value times the number of entries cannot be more than your plan limit.

fieldsstring[]

Select result fields. Values must be unique. Use ["*"] alone for all supported fields. If you omit this parameter, the API returns these default fields: "name", "searchType", "starRating", "latitude", "longitude", "pricePerNight", "totalPrice", "currency", "reviewScore", "reviewCount", "bookingToken". Supported fields: "name", "searchType", "starRating", "latitude", "longitude", "pricePerNight", "totalPrice", "currency", "priceLabel", "reviewScore", "reviewCount", "bookingToken".

Response Schema

dataobject

The Google Hotels search result.

entriesobject[]

The selected fields for each usable result. Some values can be absent when Google does not return them.

returnedCountnumber

The number of entries in this response.

collectedCountnumber

The number of unique, usable entries after filtering and before maxResults is applied.

truncatedboolean

True when maxResults removed collected entries.

locationstring

The resolved location name.

searchTypestring

The requested type: "hotels", "vacation_rentals", or "both".

checkInDatestring

The requested check-in date.

checkOutDatestring

The requested check-out date.

searchesobject[]

Only when the request has searches. One result for each entry of the request, in the same order. Each result has entries, returnedCount, collectedCount, truncated, location, searchType, checkInDate, and checkOutDate as above. Then the top-level entries, location, searchType, and dates are not present, and returnedCount, collectedCount, and truncated add up all results.

notestring

Only in a result of searches. It says why the search did not run or did not finish, or why the entry was skipped. A result with a note has no entries.

metaobject

Request metadata.

toolstring

The tool name.

creditsUsednumber

The request cost. The value is 2. A request with searches costs 2 for each valid entry. A request with hotelUrls costs 2 for each entity URL.

requestIdstring

The unique request ID.

Request

curl -X POST https://scraper.run/api/v1/tools/google/hotels/search \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"location": "Tokyo",
"checkInDate": "2027-06-10",
"checkOutDate": "2027-06-12",
"type": "hotels",
"currency": "USD",
"sortBy": "price_low",
"maxResults": 2,
"fields": ["name", "bookingToken", "searchType", "pricePerNight", "currency"]
}'

Response Example

{
"data": {
"entries": [
{
"name": "Example Hotel Tokyo",
"bookingToken": "ChkIq_atzbv20-8ZGg0vZy8xMXFoMzRoa3pfEAE",
"searchType": "hotel",
"pricePerNight": 142,
"currency": "USD"
}
],
"returnedCount": 1,
"collectedCount": 1,
"truncated": false,
"location": "Tokyo",
"searchType": "hotels",
"checkInDate": "2027-06-10",
"checkOutDate": "2027-06-12"
},
"meta": {
"tool": "google-hotels-search",
"creditsUsed": 2,
"requestId": "req_abc123"
}
}