---
title: "Autosuggest API"
method: GET
path: "/api/locations/LocationContent/autosuggest"
tags: ["LocationContent"]
---

# Autosuggest API

`GET /api/locations/LocationContent/autosuggest`

## Query parameters

- `term` string
- `culture` string
- `accountId` string
- `locationTypes` string
- `countries` string
- `strictFilterForCountries` boolean
- `size` integer
- `isGoogleAutoCompleteEnabled` boolean

## Headers

- `accountId` string, required
- `apiKey` string, required

## Response `200`

Success

- LocationContentCoreContractsAutosuggestResponse
  - `status` 'success' | 'failure'
  - `locationSuggestions` LocationContentCoreContractsLocationSuggestion[], nullable
    - `predictions` LocationContentCoreContractsPrediction[], nullable
      - `description` string, nullable
      - `matched_substrings` LocationContentCoreContractsMatchedSubstring[], nullable
        - `length` integer
        - `offset` integer
      - `place_id` string, nullable
      - `reference` string, nullable
      - `structured_formatting` LocationContentCoreContractsStructuredFormatting
        - `main_text` string, nullable
        - `main_text_matched_substrings` LocationContentCoreContractsMainTextMatchedSubstring[], nullable
          - `length` integer
          - `offset` integer
        - `secondary_text` string, nullable
      - `terms` LocationContentCoreContractsTerm[], nullable
        - `offset` integer
        - `value` string, nullable
      - `types` string[], nullable
    - `status` string, nullable
    - `id` string, nullable
    - `name` string, nullable
    - `code` string, nullable
    - `fullName` string, nullable
    - `type` 'Airport' | 'Country' | 'State' | 'MultiCity' | 'City' | 'Region' | 'PointOfInterest' | 'Neighborhood' | 'Hotel' | 'TrainStation' | 'BusStation' | 'Area' | 'Undefined'
    - `city` string, nullable
    - `state` string, nullable
    - `country` string, nullable
    - `coordinates` LocationContentCoreContractsGeoCode
      - `lat` number, double
      - `long` number, double
    - `referenceId` string, nullable
    - `referenceScore` number, double
    - `isTermMatch` boolean

---

[API](https://skmtc.net/zentrumhub/apis/hotelcontent-api.md) · [All operations](https://skmtc.net/zentrumhub/apis/hotelcontent-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zentrumhub/hotelcontent-api/revisions/9fa4830db488/schema)
