Google

Google Hotels

Retrieve Google Hotels data.

post/v1/google/hotels/search

Request

  • Base URL: https://api.prismcrawl.com
  • URL: https://api.prismcrawl.com/v1/google/hotels/search
  • Auth: API key in header x-api-key

Request body

querystring

Text to search for on the selected service. At most 8,192 UTF-8 bytes.

next_page_tokenstring

Copy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired.

currency'ALL' | 'DZD' | 'ARS' | 'AMD' | 'AWG' | 'AUD' | 'AZN' | 'BSD' | 'BHD' | 'BYN' | 'BMD' | 'BAM' | 'BRL' | 'GBP' | 'BGN' | 'XPF' | 'CAD' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUP' | 'CZK' | 'DKK' | 'DOP' | 'EGP' | 'EUR' | 'GEL' | 'HKD' | 'HUF' | 'ISK' | 'INR' | 'IDR' | 'IRR' | 'ILS' | 'JMD' | 'JPY' | 'JOD' | 'KZT' | 'KWD' | 'LBP' | 'MKD' | 'MYR' | 'MXN' | 'MDL' | 'MAD' | 'TWD' | 'NZD' | 'NOK' | 'OMR' | 'PKR' | 'PAB' | 'PEN' | 'PHP' | 'PLN' | 'QAR' | 'RON' | 'RUB' | 'SAR' | 'RSD' | 'SGD' | 'ZAR' | 'KRW' | 'SEK' | 'CHF' | 'THB' | 'TRY' | 'USD' | 'UAH' | 'AED' | 'VND'

Three-letter currency code, such as USD.

countrystring

Two-letter country or storefront code, such as us or gb.

languagestring

Provider-supported language code, such as en.

limitinteger

Maximum number of items to return. The provider may return fewer.

device'desktop' | 'mobile' | 'tablet'

Device presentation for the source request.

htmlboolean

Return the encoded original response rather than parsed JSON.

zero_traceboolean

Do not archive source or parsed response artifacts.

check_in_datestring

Check-in date, YYYY-MM-DD. Supply both dates or let Google choose the default stay.

check_out_datestring

Check-out date, later than check-in.

adultsinteger

Adults, default 2. At most 100 guests per request.

childreninteger

Children, default 0. Adults and children together must not exceed 100.

children_agesstring

Comma-separated ages from 1 through 17, matching children. If omitted, Google's default age of 12 is used.

sort_by'relevance' | 'lowest_price' | 'highest_rating' | 'most_reviewed'

Order properties by relevance, nightly price, rating, or review count.

min_priceinteger

Minimum nightly price in the selected currency.

max_priceinteger

Maximum nightly price in the selected currency.

rating7 | 8 | 9

Minimum guest rating: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+.

hotel_classstring

Comma-separated hotel classes from 2 through 5 stars.

amenitiesstring

Comma-separated amenity IDs. Hotels and vacation rentals use different catalogs; for hotels, 6 means pool and 1 means free parking.

free_cancellationboolean

Restrict to offers with free cancellation.

special_offersboolean

Restrict to properties with special offers.

eco_certifiedboolean

Restrict to eco-certified properties.

property_typesstring

Comma-separated property type IDs. Hotels and vacation rentals use different catalogs.

brandsstring

Comma-separated hotel brand or group IDs. Unavailable for vacation rentals.

vacation_rentalsboolean

Search vacation rentals instead of hotels.

bedroomsinteger

Minimum bedrooms. Requires vacation_rentals=true.

bathroomsinteger

Minimum bathrooms. Requires vacation_rentals=true.

property_tokenstring

Google Hotels property entity token. Returns one property with stay prices and details; query is optional in this mode.

output'json' | 'html' | 'md' | 'null' nullable

Response content format. md returns Markdown in data.content with data.format=md; the JSON success/request envelope remains. Accept: text/markdown also selects Markdown unless output or html=true is explicit. html is an alias for html=true and retains the existing Brotli/Base64 source format.

json_restrictorstring nullable

Select fields within data.content for JSON or Markdown. Supports comma-separated paths, non-negative array indices, half-open slices [0:3] (either bound may be omitted), [] and .{nested,subqueries}. Up to128 selections and16 levels. Missing fields are omitted; selected declared fields retain their zero defaults. The request envelope and credit headers remain. Include next_page_token when pagination is needed. Incompatible with HTML output. This changes response presentation only; tracing-enabled history retains the complete JSON result.

no_cacheboolean nullable

Accepted for compatibility. Searches are always fetched without a result cache for either value; normal successful-request billing applies.

Example request

{
  "json_restrictor": "results[].{title,url},has_next_page,next_page_token"
}

Response

Request completed. One credit is charged, including recognized empty or unavailable source results and source inventory changes discovered after a valid continuation is fetched. These completed responses may preserve verified partial results; operational failures remain errors.

successtrue required
request_idstring uuid required

Changes

No recorded changes to this operation across all 2 revisions of this API.