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

# TikTok Shop Search Suggestions

> Sell tiktok_shop.search_suggestions on AnyAPI: the request your endpoint receives, the response it must return, and what the live trial grades.

Get TikTok Shop search autocomplete terms for a keyword: the long-tail queries shoppers actually type, for keyword and demand research.

This page is the seller-facing summary of one catalog API, `tiktok_shop.search_suggestions`. The transport rules that apply to every API a seller serves - signed requests, the response envelope, timeouts, and body limits - are on [the operator endpoint contract](https://getanyapi.com/docs/sell/operator-endpoint-contract.md).

## The price you compete with

AnyAPI publishes this API from **\$0.95 per 1,000 requests**. That is the price a buyer sees today, so it is the price your endpoint has to come in under to win traffic.

## The request your endpoint receives

| Field | Type | Required | What it means |
| - | - | - | - |
| `country` | string | no | Two-letter country code of the TikTok Shop market (e.g. US). Default `"US"`. |
| `language` | string | no | Language tag for the suggestions (e.g. en-US). Default `"en-US"`. |
| `query` | string | yes | Seed keyword to expand (e.g. ashwagandha gummies). |

> **Full input JSON Schema**
>
> ```json theme={"dark"}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "$id": "https://getanyapi.com/schemas/tiktok_shop.search_suggestions.input.json",
>   "example": {
>     "query": "ashwagandha gummies",
>     "country": "US"
>   },
>   "title": "TikTok Shop search suggestions input",
>   "type": "object",
>   "additionalProperties": false,
>   "required": [
>     "query"
>   ],
>   "properties": {
>     "query": {
>       "type": "string",
>       "description": "Seed keyword to expand (e.g. ashwagandha gummies)."
>     },
>     "country": {
>       "type": "string",
>       "default": "US",
>       "description": "Two-letter country code of the TikTok Shop market (e.g. US)."
>     },
>     "language": {
>       "type": "string",
>       "default": "en-US",
>       "description": "Language tag for the suggestions (e.g. en-US)."
>     }
>   }
> }
> ```

## The response your endpoint must return

| Field | Type | Always present | What it means |
| - | - | - | - |
| `data` | null or object | yes | |
| `data.suggestions` | array | yes | Autocomplete terms TikTok Shop suggests for the seed keyword, most relevant first. |
| `found` | boolean | yes | |

Extra fields are kept, missing declared fields fail.

> **Full output JSON Schema**
>
> ```json theme={"dark"}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "$id": "https://getanyapi.com/schemas/tiktok_shop.search_suggestions.output.json",
>   "title": "TikTok Shop search suggestions output",
>   "type": "object",
>   "additionalProperties": false,
>   "required": [
>     "found",
>     "data"
>   ],
>   "properties": {
>     "found": {
>       "type": "boolean"
>     },
>     "data": {
>       "oneOf": [
>         {
>           "type": "null"
>         },
>         {
>           "type": "object",
>           "required": [
>             "suggestions"
>           ],
>           "properties": {
>             "suggestions": {
>               "x-anyapi-must-populate": true,
>               "type": "array",
>               "description": "Autocomplete terms TikTok Shop suggests for the seed keyword, most relevant first.",
>               "items": {
>                 "type": "string"
>               }
>             }
>           }
>         }
>       ]
>     }
>   }
> }
> ```

## Fields that must never come back empty

* `suggestions`

The repository marks these fields as ones every source must be able to fill. An empty value is only correct when the entity itself genuinely has nothing there.

## Not found, and how it differs from empty

When the entity does not exist, answer 2xx with the not-found shape:

```json theme={"dark"}
{
  "found": false,
  "data": null
}
```

An empty list is not a not-found: when the entity exists and has nothing to return, answer 2xx with `found: true` and an empty `suggestions` array.

This output schema declares no `reason` field, so `found: false` is the whole not-found answer.

## Example request

```json theme={"dark"}
{
  "query": "ashwagandha gummies",
  "country": "US"
}
```

The compatibility checks fire the schema's example at your endpoint. After that, your answers are graded against what the currently serving source returned for the same real customer inputs.

## Next

* [The operator endpoint contract](https://getanyapi.com/docs/sell/operator-endpoint-contract.md) for signing, budgets, and the live trial.
* [Every API open to sellers](https://getanyapi.com/docs/sell/apis/index.md).
* Want to sell an API that is not on that list? Email [support@getanyapi.com](mailto:support@getanyapi.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.