---
title: "GET /search/autocomplete/{in}"
method: GET
path: "/search/autocomplete/{in}"
tags: ["search"]
---

# GET /search/autocomplete/{in}

`GET /search/autocomplete/{in}`

Autocomplete search feature for supported database entities (`location`). It has the same options as a regular `search` operation, with an extra **required** `in` parameter indicating the entity type to search.

## Path parameters

- `in` 'location', required

## Query parameters

- `q` string
- `page` integer
- `per_page` integer

## Response `200`

Success

- AutocompleteResults
  - `total_count` integer, required
  - `items` AutocompleteResult[], required
    - `id` string, required
    - `name` string, required

## Other responses

- `default` — Error

---

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