The google_travel_hotels data source is designed to retrieve Google Travel service's hotel search results.
To ensure optimal utilization of this service, include the "render": "html" parameter in your request.
Request samples
In this example, we make a request to retrieve the 2nd results page for hotel availability for 2 adult guests between 2023-10-01 and 2023-10-10 for 2 to 4-star hotels in Paris from google.com.
Basic setup and customization options for scraping Google Travel: Hotels results.
Parameter
Description
Default Value
source
Sets the scraper.
google_travel_hotels
query
UTF-encoded keyword.
"query": "hotels" will result in a list of hotels in a given geo_location.
"query": "hotels in <Location>" will result in a list of hotels for <Location>. For example, "query": "hotels in Paris" will list hotels in Paris, regardless of the given geo_location.
-
render
-
callback_url
-
user_agent_type
desktop
- mandatory parameter
Localization
Adapt search results to specific geographical locations, domains, and languages.
Parameter
Description
Default Value
geo_location
-
domain
com
locale
-
NOTE:"geo_location": "United States" and other wide-area locations are not supported. Use city-level geo_location, e.g., Seattle,Washington,United States
Pagination
Controls for managing the pagination.
Parameter
Description
Default Value
start_page
Starting page number.
1
Filtering
Advanced options for tailoring and refining the search context.
Parameter
Description
Default Value
context:adults
Number of adult guests
2
context:children
Number of children guests
-
context:
hotel_classes
Filter results by # of hotel stars. You may specify one or more values between 2 and 5. Example: [3,4]
-
context:
hotel_dates
Dates for staying at the hotel, from - to. Example: 2023-07-12,2023-07-13
Device type and browser. The full list can be found .
The geographical location that the result should be adapted for. Using this parameter correctly is extremely important to get the right data. Please note that this source can accept a limited number of geo_location values - please check to see geo_location values that don't yield accurate results.
Domain localization for Google. The full list of available domains can be found .
Accept-Language header value which changes your Google search page web interface language. .