Google Hotels
Retrieve Google Hotels data.
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
Text to search for on the selected service. At most 8,192 UTF-8 bytes.
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.
Three-letter currency code, such as USD.
Two-letter country or storefront code, such as us or gb.
Provider-supported language code, such as en.
Maximum number of items to return. The provider may return fewer.
Device presentation for the source request.
Return the encoded original response rather than parsed JSON.
Do not archive source or parsed response artifacts.
Check-in date, YYYY-MM-DD. Supply both dates or let Google choose the default stay.
Check-out date, later than check-in.
Adults, default 2. At most 100 guests per request.
Children, default 0. Adults and children together must not exceed 100.
Comma-separated ages from 1 through 17, matching children. If omitted, Google's default age of 12 is used.
Order properties by relevance, nightly price, rating, or review count.
Minimum nightly price in the selected currency.
Maximum nightly price in the selected currency.
Minimum guest rating: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+.
Comma-separated hotel classes from 2 through 5 stars.
Comma-separated amenity IDs. Hotels and vacation rentals use different catalogs; for hotels, 6 means pool and 1 means free parking.
Restrict to offers with free cancellation.
Restrict to properties with special offers.
Restrict to eco-certified properties.
Comma-separated property type IDs. Hotels and vacation rentals use different catalogs.
Comma-separated hotel brand or group IDs. Unavailable for vacation rentals.
Search vacation rentals instead of hotels.
Minimum bedrooms. Requires vacation_rentals=true.
Minimum bathrooms. Requires vacation_rentals=true.
Google Hotels property entity token. Returns one property with stay prices and details; query is optional in this mode.
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.
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.
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.
Changes
No recorded changes to this operation across all 2 revisions of this API.