API Hop

Documentation

API Hop Docs

Google Hotels endpoint reference

Search Google Hotels, hotel suggestions, photos and reviews.

Concurrency limit

AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.

GET /v1/google-hotels/search
Default limit: 2
GET /v1/google-hotels/autocomplete
Default limit: 2
GET /v1/google-hotels/photos
Default limit: 2
GET /v1/google-hotels/reviews
Default limit: 2

Search Google Hotels, hotel suggestions, photos and reviews.

Authentication and billing

The default price is $0.0003 (300 credits) per successful request. Use your API Hop API key. Availability depends on active gateways and key permissions. Check the current catalog and your account for the price per successful request; account-specific pricing takes precedence. Successful empty results are billable. Failed requests release the credit reservation. Requests time out after 60 seconds, with no automatic retry or pagination. Settlement failures never repeat the upstream request.

http
Authorization: Bearer YOUR_API_KEY

Google Hotels: Search hotels

GET https://api.apihop.ai/v1/google-hotels/search

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: optionalhotels in New York
next_page_tokenstringCopy 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.; next_page_token: optional; UTF-8 bytes: 24576-
currencystringThree-letter currency code, such as USD.; currency: optional; 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; ^[A-Z]{3}$USD
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1001
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
check_in_datestringCheck-in date, YYYY-MM-DD. Supply both dates or let Google choose the default stay.; check_in_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$-
check_out_datestringCheck-out date, later than check-in.; check_out_date: optional; ^[0-9]{4}-[0-9]{2}-[0-9]{2}$-
adultsintegerAdults, default 2. At most 100 guests per request.; adults: optional; min: 1; max: 1001
childrenintegerChildren, default 0. Adults and children together must not exceed 100.; children: optional; min: 0; max: 990
children_agesstringComma-separated ages from 1 through 17, matching children. If omitted, Google's default age of 12 is used.; children_ages: optional; UTF-8 bytes: 296; ^(?:[1-9]|1[0-7])(?:,(?:[1-9]|1[0-7])){0,98}$-
sort_bystringOrder properties by relevance, nightly price, rating, or review count.; sort_by: optional; relevance, lowest_price, highest_rating, most_reviewedrelevance
min_priceintegerMinimum nightly price in the selected currency.; min_price: optional; min: 0; max: 21474836470
max_priceintegerMaximum nightly price in the selected currency.; max_price: optional; min: 1; max: 21474836471
ratingintegerMinimum guest rating: 7 means 3.5+, 8 means 4.0+, 9 means 4.5+.; rating: optional; 7, 8, 97
hotel_classstringComma-separated hotel classes from 2 through 5 stars.; hotel_class: optional; UTF-8 bytes: 7-
amenitiesstringComma-separated amenity IDs. Hotels and vacation rentals use different catalogs; for hotels, 6 means pool and 1 means free parking.; amenities: optional; UTF-8 bytes: 300; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$-
free_cancellationbooleanRestrict to offers with free cancellation.; free_cancellation: optionaltrue
special_offersbooleanRestrict to properties with special offers.; special_offers: optionaltrue
eco_certifiedbooleanRestrict to eco-certified properties.; eco_certified: optionaltrue
property_typesstringComma-separated property type IDs. Hotels and vacation rentals use different catalogs.; property_types: optional; UTF-8 bytes: 100; ^[1-9][0-9]*(?:,[1-9][0-9]*)*$-
brandsstringComma-separated hotel brand or group IDs. Unavailable for vacation rentals.; brands: optional; UTF-8 bytes: 300; ^[1-9][0-9]{0,5}(?:,[1-9][0-9]{0,5})*$-
vacation_rentalsbooleanSearch vacation rentals instead of hotels.; vacation_rentals: optionaltrue
bedroomsintegerMinimum bedrooms. Requires vacation_rentals=true.; bedrooms: optional; min: 0; max: 21474836470
bathroomsintegerMinimum bathrooms. Requires vacation_rentals=true.; bathrooms: optional; min: 0; max: 21474836470
property_tokenstringGoogle Hotels property entity token. Returns one property with stay prices and details; query is optional in this mode.; property_token: optional; UTF-8 bytes: 256; ^[A-Za-z0-9_-]{16,256}$-

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • min_price <= max_price
  • check_in_date AND check_out_date: supply both or neither; valid YYYY-MM-DD dates; check_out_date > check_in_date
  • query OR property_token OR next_page_token: required
  • adults (default 2) + children <= 100; children_ages: comma-separated ages 0..17; count = children
  • bedrooms OR bathrooms => vacation_rentals = true; vacation_rentals = true => NOT brands
  • Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request

Examples

bash
curl --get "https://api.apihop.ai/v1/google-hotels/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "currency=USD" \
  --data-urlencode "query=hotels in New York"

Google Hotels: Get hotel suggestions

GET https://api.apihop.ai/v1/google-hotels/autocomplete

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIREDNew York
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1001
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
currencystringThree-letter currency code, such as USD.; currency: optional; 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; ^[A-Z]{3}$ALL

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/

Examples

bash
curl --get "https://api.apihop.ai/v1/google-hotels/autocomplete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=New York"

Google Hotels: Get hotel photos

GET https://api.apihop.ai/v1/google-hotels/photos

Request parameters

FieldTypeConstraintsExample
idstringThe provider's identifier, as returned by its search results.; id: REQUIREDChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1001
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
next_page_tokenstringCopy 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.; next_page_token: optional; UTF-8 bytes: 24576-

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request

Examples

bash
curl --get "https://api.apihop.ai/v1/google-hotels/photos" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ"

Google Hotels: Get hotel reviews

GET https://api.apihop.ai/v1/google-hotels/reviews

Request parameters

FieldTypeConstraintsExample
idstringThe provider's identifier, as returned by its search results.; id: REQUIREDChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ
next_page_tokenstringCopy 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.; next_page_token: optional; UTF-8 bytes: 24576-
sort_bystringThe provider's supported sort order.; sort_by: optional; relevance, newest, highest_rating, lowest_ratingrelevance
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1010
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
category_tokenstringReview topic token from the property details reviews_breakdown. Bound to the property and language.; category_token: optional; UTF-8 bytes: 2800; ^[A-Za-z0-9_-]+$-
source_numberintegerReview source: 0 for all (default), -1 for Google, or a source_number from the property details other_reviews list. A source with no reviews returns an empty list.; source_number: optional; min: -1; max: 2147483647-1

Validation rules

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. Only JSON responses are supported. No automatic pagination or retry is performed. The rules below use AND, OR, XOR (exactly one), NOT and => (requires).

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens; each page or token lookup is a separate billable successful request

Examples

bash
curl --get "https://api.apihop.ai/v1/google-hotels/reviews" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "id=ChgI-N6n0Nnyw_K2ARoLL2cvMXRqZGgzMjkQAQ" \
  --data-urlencode "limit=10"

Responses and errors

The native JSON response and numeric precision are preserved. The example below illustrates an empty successful result, not a live call. HTTP 400 means invalid input; 401 authentication required; 402 insufficient credit; 403 unavailable or unauthorized; 405 unsupported method; 429 rate limit; 5xx service or upstream failure. Keep X-Request-Id for diagnosis.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}