Travel: Hotels
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 2
nd 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
.
Request parameter values
Generic
Basic setup and customization options for scraping Google Travel: Hotels results.
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.
geo_location
-
domain
com
locale
-
Pagination
Controls for managing the pagination.
start_page
Starting page number.
1
Filtering
Advanced options for tailoring and refining the search context.
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
-
Context parameters
All context parameters should be added to the context
array as objects with key
and value
pairs, e.g.:
Output example
Last updated
Was this helpful?