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.
Query parameters
Parameter | Description | Default Value |
---|---|---|
source | Data source. More info. |
|
| Domain localization for Google. The full list of available domains can be found here. | com |
query | UTF-encoded keyword.
| - |
| Starting page number |
|
|
| - |
| 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 | - |
| Device type and browser. The full list can be found here. |
|
render | Enables JavaScript rendering. More info. | - |
| URL to your callback endpoint. More info. | - |
| Number of adult guests |
|
| Number of children guests | - |
| Filter results by # of hotel stars. You may specify one or more values between | - |
| Dates for staying at the hotel, from - to. Example: | - |
- required parameter
NOTE: "geo_location": "United States"
and other wide-area locations are not supported. Use city-level geo_location
, e.g., Seattle,Washington,United States
Code examples
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
.
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.
Output example
HTML example
Last updated