Google Hotels

SERP API Google Query Parameters

Configure Google Hotel queries using Thordata’s SERP API, including localization parameters and "advanced parameter" output options.

q ,Search Query(Required)

Define the search query used for data scraping (Default value: q=pizza). Any keywords in any language are supported.

Example Request: Example using the parameter q: pizza

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "json=1"

Localization

google_domain,Domain(Optional)

Define the search engine domain name for data crawling (default value: google.com).

You can modify this parameter in the system or refer to the Google domain page to obtain the complete list of supported domain names.

Example Request:

Example results for q : pizza ,google_domain: google.co.ao

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "google_domain=google.co.ao" \
 -d "json=1"
gl ,Country(Optional)

Specify the target country/region for search results (default value: us). Use two-letter country codes(e.g., us, ru, uk).

For the complete list of supported country codes, please refer to: Google’s Country List.

Example Request:

Example results for q : pizza,gl: ru

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "gl=ru" \
 -d "json=1"
hl ,Language(Optional)

Set the interface language for search results (default value: en). Adopt standard language code formats (e.g., en, es, zh-CN).

For the complete list of supported language codes, please refer to: Google Language Codes.

Example Request:

Example results for q : pizza,hl: es

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=pizza" \
 -d "json=1" \
 -d "hl=es"

Advanced Parameters

check_in_date,Check-in Date(Optional)

The parameter defines the check-in date. The format is YYYY-MM-DD. For example, 2025-08-22

Example Request:

Example results for q : pizza,check_in_date:2025-08-22

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=Bali Resorts" \
 -d "json=1" \
 -d "check_in_date=2025-08-22"
check_out_date ,Check-out Date(Optional)

The parameter defines the check-out date. The format is YYYY-MM-DD. For example, 2025-08-23

Example Request:

Example results for q : pizza,check_out_date:2025-08-23

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=Bali Resorts" \
 -d "json=1" \
 -d "check_in_date=2025-08-22" \
 -d "check_out_date=2025-08-23"
adults ,Number of Adults(Optional)

The parameter defines the number of adults. The default is2.

Code Example:

Example results for q : pizza,adults:2

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_hotels" \
 -d "q=Bali Resorts" \
 -d "json=1" \
 -d "adults=2"

For further assistance, contact us at [email protected].

Last updated

Was this helpful?