> ## Documentation Index
> Fetch the complete documentation index at: https://docs.msu.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Suggest Keywords

> Retrieve autocomplete keyword suggestions based on a search keyword.

<Note>
  Keywords shorter than 2 characters return an empty list without error. Keywords are case-insensitive (normalized to lowercase internally). Results are cached for 10 seconds per unique `(keyword, type, tokenType)` combination.
</Note>

## Query parameters

<ParamField query="keyword" type="string">
  Search keyword (minimum 2 characters)
</ParamField>

<ParamField query="type" type="string" required>
  Autocomplete type (`item`, `character`, `user`). Returns `400 INVALID_ARGUMENT` if not provided.
</ParamField>

<ParamField query="tokenType" type="string">
  Token type filter (`all`, `nft`, `ft`)
</ParamField>

<ParamField query="size" type="integer">
  Number of results to return
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="suggestions" type="array">
      List of autocomplete suggestions
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://openapi.msu.io/v1rc1/search/suggest?keyword=sword&type=item' \
    --header 'Content-Type: application/json' \
    --header 'x-nxopen-api-key: YOUR_API_KEY'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://openapi.msu.io/v1rc1/search/suggest?keyword=sword&type=item', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
      'x-nxopen-api-key': 'YOUR_API_KEY'
    }
  });
  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  url = "https://openapi.msu.io/v1rc1/search/suggest"
  params = {
    "keyword": "sword",
    "type": "item"
  }
  headers = {
    "x-nxopen-api-key": "YOUR_API_KEY"
  }

  response = requests.get(url, params=params, headers=headers)
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "suggestions": []
    }
  }
  ```
</ResponseExample>
