Google Hotels Autocomplete API

Google Hotels Autocomplete API uses the /api/v1/search?engine=google_hotels_autocomplete endpoint to provide suggestions based on partial user input.

It returns detailed information for each suggestion, including the hotel title, street address (location), and Knowledge Graph ID (kgmid).

API Parameters

Search Query

  • Name
    q
    Required
    Required
    Description

    Search query that would produce autocomplete suggestions.

Localization

  • Name
    hl
    Required
    Optional
    Description

    The default parameter en defines the interface language of the search. Check the full list of supported Google Travel hl languages.

Engine

  • Name
    engine
    Required
    Required
    Description

    Parameter defines an engine that will be used to retrieve real-time data. It must be set to google_hotels_autocomplete.

API key

  • Name
    api_key
    Required
    Required
    Description

    The api_key authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).

API Examples

Locations

Locations
GET
https://www.searchapi.io/api/v1/search?engine=google_hotels_autocomplete&q=Hilton+Hawaii
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "google_hotels_autocomplete",
  "q": "Hilton Hawaii"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "suggestions": [
    {
      "type": "hotel",
      "kgmid": "/m/03cmsg",
      "ludocid": "12777359080708391472",
      "title": "Hilton Hawaiian Village Waikiki Beach Resort",
      "subtitle": "2005 Kālia Rd, Honolulu",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQWHhgORb8uNeOCN_6nLF8VeIaqsJo6L0XaNyjMM1ACS80V3JNp"
    },
    {
      "type": "query",
      "title": "hilton hawaiian village fireworks"
    },
    {
      "type": "query",
      "title": "hilton hawaiian village lagoon"
    },
    {
      "type": "query",
      "title": "hilton hawaiian hotels"
    },
    ...
  ]
}