---
title: "Google Hotels"
method: POST
path: "/v1/google/hotels/search"
tags: ["Google"]
---

# Google Hotels

`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`

Retrieve Google Hotels data.

## Request body

- CatalogGoogleHotelsRequest: Retrieve Google Hotels data.
  - `query` string: Text to search for on the selected service. At most 8,192 UTF-8 bytes.
  - `next_page_token` string: 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.
  - `country` string: Two-letter country or storefront code, such as us or gb.
  - `language` string: Provider-supported language code, such as en.
  - `limit` integer: Maximum number of items to return. The provider may return fewer.
  - `device` 'desktop' | 'mobile' | 'tablet': Device presentation for the source request.
  - `html` boolean: Return the encoded original response rather than parsed JSON.
  - `zero_trace` boolean: Do not archive source or parsed response artifacts.
  - `check_in_date` string: Check-in date, YYYY-MM-DD. Supply both dates or let Google choose the default stay.
  - `check_out_date` string: Check-out date, later than check-in.
  - `adults` integer: Adults, default 2. At most 100 guests per request.
  - `children` integer: Children, default 0. Adults and children together must not exceed 100.
  - `children_ages` string: 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_price` integer: Minimum nightly price in the selected currency.
  - `max_price` integer: Maximum nightly price in the selected currency.
  - `rating` 7 | 8 | 9: Minimum guest rating: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+.
  - `hotel_class` string: Comma-separated hotel classes from 2 through 5 stars.
  - `amenities` string: Comma-separated amenity IDs. Hotels and vacation rentals use different catalogs; for hotels, 6 means pool and 1 means free parking.
  - `free_cancellation` boolean: Restrict to offers with free cancellation.
  - `special_offers` boolean: Restrict to properties with special offers.
  - `eco_certified` boolean: Restrict to eco-certified properties.
  - `property_types` string: Comma-separated property type IDs. Hotels and vacation rentals use different catalogs.
  - `brands` string: Comma-separated hotel brand or group IDs. Unavailable for vacation rentals.
  - `vacation_rentals` boolean: Search vacation rentals instead of hotels.
  - `bedrooms` integer: Minimum bedrooms. Requires vacation_rentals=true.
  - `bathrooms` integer: Minimum bathrooms. Requires vacation_rentals=true.
  - `property_token` string: 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_restrictor` string, 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_cache` boolean, nullable: Accepted for compatibility. Searches are always fetched without a result cache for either value; normal successful-request billing applies.

## Response `200`

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.

- CatalogGoogleHotelsResponse
  - `success` true, required
  - `request_id` string, uuid, required
  - `data` union, required
    - MarkdownSearchData
      - `format` union, required
        - ''
        - 'md'
      - `content` string, required: Markdown derived from the parsed result, after any json_restrictor selection.
    - ProjectedSearchData
      - `format` union, required
        - ''
        - 'json'
      - `content` object, required: Only fields selected by json_restrictor. Selected fields retain their declared types and zero defaults.
    - object
      - `format` 'json', required
      - `content` object, required
        - `has_next_page` boolean, required
        - `next_page_token` string, required: Opaque continuation token valid for one hour and the same account. Retain search parameters, device, and result limit. Restart pagination if the token is expired or rejected; tokens from before the authenticated-token rollout cannot be reused.
        - `results` object[], required
          - `address` union, required
            - string
            - object
            - string[]
          - `amenities` object[], required
            - `available` boolean, required
            - `category_id` integer, required
            - `id` integer, required
            - `name` string, required
          - `category` string, required
          - `check_in_date` string, required
          - `check_out_date` string, required
          - `coordinates` object, required
            - `latitude` number, required
            - `longitude` number, required
          - `description` string, required
          - `description_paragraphs` string[], required
          - `hotel_class` number, required
          - `hotel_class_description` string, required
          - `id` string, required
          - `images` object[], required
            - `author` string, required
            - `author_url` string, required
            - `height` integer, required
            - `url` string, required
            - `width` integer, required
          - `latitude` number, required
          - `longitude` number, required
          - `maps_url` string, required
          - `name` string, required
          - `nearby_places` object[], required
            - `category` string, required
            - `coordinates` object, required
              - …
            - `description` string, required
            - `name` string, required
            - `rating` number, required
            - `review_count` integer, required
            - `thumbnail` string, required
            - `transportations` object[], required
              - …
            - `url` string, required
          - `other_reviews` object[], required
            - `name` string, required
            - `source_number` integer, required
            - `thumbnail` string, required
            - `url` string, required
          - `phone` string, required
          - `place_id` string, required
          - `position` integer, required
          - `prices` object[], required
            - `currency` string, required
            - `displayed_price` string, required
            - `official` boolean, required
            - `price` number, required
            - `source` string, required
            - `total` number, required
            - `total_price` string, required
            - `url` string, required
          - `property_token` string, required
          - `rank` integer, required
          - `rate_per_night` object, required
            - `currency` string, required
            - `displayed_price` string, required
            - `price` number, required
            - `total_price` string, required
          - `rating` union, required
            - number
            - string
          - `rating_distribution` object[], required
            - `count` integer, required
            - `percentage` number, required
            - `rating` number, required
          - `rating_max` number, required
          - `rating_source` string, required
          - `review_count` union, required
            - number
            - string
          - `reviews_breakdown` object[], required
            - `category_token` string, required
            - `name` string, required
            - `negative` integer, required
            - `positive` integer, required
            - `title` string, required
            - `total` integer, required
          - `reviews_summary` string[], required
          - `snippet` string, required
          - `thumbnail` string, required
          - `title` string, required
          - `type` string, required
          - `url` string, required
          - `website` string, required
        - `search_parameters` object, required
          - `adults` integer, required
          - `amenities` string, required
          - `bathrooms` integer, required
          - `bedrooms` integer, required
          - `brands` string, required
          - `check_in_date` string, required
          - `check_out_date` string, required
          - `children` integer, required
          - `children_ages` string, required
          - `country` string, required
          - `currency` string, required
          - `device` string, required
          - `eco_certified` boolean, required
          - `engine` string, required
          - `free_cancellation` boolean, required
          - `hotel_class` string, required
          - `language` string, required
          - `limit` integer, required
          - `max_price` integer, required
          - `min_price` integer, required
          - `operation` string, required
          - `pagination_limited` boolean, required: True when further pagination is unavailable. A completed source-stale request can contain verified results or an empty array; next_page_token is an empty string.
          - `pagination_reason` string, required: stale_cursor means a valid continuation was fetched but its source inventory changed. The HTTP 200 response is billable; keep any verified results and restart pagination.
          - `property_token` string, required
          - `property_types` string, required
          - `query` string, required
          - `rating` integer, required
          - `sort_by` string, required
          - `source_result_count` integer, required
          - `special_offers` boolean, required
          - `type` string, required
          - `vacation_rentals` boolean, required
        - `serp_features` object[], required
          - `confidence` number, required
          - `engine` string, required
          - `extracted_at` string, required
          - `id` string, required
          - `items` object[], required
            - `link` string, required
            - `product_id` string, required
            - `text` string, required
            - `thumbnail` string, required
            - `title` string, required
          - `links` object[], required
            - `title` string, required
            - `url` string, required
          - `position` object, required
            - `absolute` integer, required
          - `source_result_ids` string[], required
          - `text` string, required
          - `title` string, required
          - `type` string, required
    - GoogleHtmlSearchData
      - `format` union, required
        - ''
        - 'html+br+base64'
      - `content` string, byte, required: Base64-encoded bytes. Decode Base64 first, then decompress the result with Brotli. Available deferred or lazy-loaded thumbnail sources are placed in image src attributes, within size limits; image and video files are not downloaded. When rewrite_links is true, already-resolved opaque Google anchor links use their destination URLs. Unresolved links are preserved.

## Other responses

- `400`: The JSON body, source selection, or continuation is invalid. Locally malformed, forged, expired, or mismatched tokens are rejected before source work and require restarting pagination. A source may also reject an otherwise well-formed selector after acquisition. These errors do not spend a search credit. Source inventory changes discovered during a valid request return a completed response instead.
- `401`: The API token is missing, invalid, expired, or revoked.
- `402`: No credits remain.
- `429`: Account rate limit exceeded.
- `500`: The request could not be completed.

---

[API](https://skmtc.dev/prismcrawl/apis/prismcrawl-api.md) · [All operations](https://skmtc.dev/prismcrawl/apis/prismcrawl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/prismcrawl/apis/prismcrawl-api/revisions/eef17f6c02a5?raw)
