Skip to main content

Documentation Index

Fetch the complete documentation index at: https://help.decodo.com/llms.txt

Use this file to discover all available pages before exploring further.

The google_travel_hotels template is built to obtain Google Travel service’s hotel search results.

Input Parameters

Request parameters available for the Google Travel Hotels template:
ParameterTypeRequiredDescription
targetstringTarget type must be set to google_travel_hotels.
querystringSearch query.
geostringSet the country to use when submitting the query. Read more.
localestringSet the value to change your Google search page web interface language. Read more.
device_typestringSpecify device type and browser. Read more.
page_fromstringCustomize the starting page number within the range of 1 to 10.
Default value is 1.
date_rangestringDates from and to. Example: "2022-11-10,2022-11-20".
starsarray<int>Filter for hotels that have the provided star rating. Example: [4,5]. Values must be between 2 and 5.
adultsintegerNumber of adults staying.
Default value is 2.
childrenintegerNumber of children staying.
markdownbooleanSet to true to receive a Markdown response. Read more.
Default value is false.
When using the geo parameter, you must use the Google’s location name format described here. Single country strings (eg. United States) may perform poorly, while more specific locations (e.g., San Francisco,California,United States) will work better.

Request Examples

# update 'TOKEN VALUE' with your authorization token
curl --request 'POST' \
        --url 'https://scraper-api.decodo.com/v2/scrape' \
        --header 'Accept: application/json' \
        --header 'Authorization: Basic TOKEN VALUE' \
        --header 'Content-Type: application/json' \
        --data '
    {
      "target": "google_travel_hotels",
      "query": "trivago",
      "page_from": "1",
      "stars": [4,5],
      "adults": 2
    }
'

Support

Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.

Feedback

Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.