Skip to main content
POST
Fetch Auto-Suggest Data
Before calling this endpoint, make sure you’ve generated an API token and picked the correct domain. See Authentication & Base URLs.

Headers

x-customer-group-id
string

Optional customer group identifier for segment-specific responses.

x-ecomm-provider
string

eCommerce provider for contextualizing the API call (e.g., shopify, magento, etc.).

Query Parameters

fields
string
required

Comma-separated list of fields to include in the response

locale
string
required

Specifies the language or region for the response data

store_id
string

Identifier of the store within the eCommerce platform.

channel_id
string

Sales or distribution channel identifier.

location_id
string

Identifier for the regional location from the BigCommerce admin panel.

currency
string

Currency code for price displays.

include_fields_meta
boolean

Whether to include metadata about the fields in the response. If true, returns metadata for each filterable field.

content_fields
string

Comma-separated list of fields to include for content pages

Body

application/json

Request body

show_auto_suggester_term
boolean

Whether to show the auto-suggester term

auto_suggester_term_limit
integer

Limit for the number of auto-suggester terms to return.

show_category
boolean

Whether to show product category name suggestions.

include_category_count
boolean

Whether to include the number of products per category

category_limit
integer

Max number of categories to return.

Whether to Include popular search phrases.

Max number of popular searches to return.

show_recent_searches
boolean

Whether to show user’s recent search history.

recent_searches_limit
integer

Max number of recent searches to return.

show_content_pages
boolean

Whether to show matching content pages in the result.

content_pages_limit
integer

Max number of content pages to return.

show_products
boolean

Whether to show products in the result.

products_limit
integer

Max number of product suggestions to return.

search_term
string

Partial search input for which suggestions are requested.

filter
object[]

Query filter expression to narrow results

is_auto_spellcheck
boolean

Whether to auto-correct misspellings in the search term.

out_of_stock
string

Whether to include/ exclude/ bury out-of-stock items

user_id
string

Unique identifier for the user ID or user email.

session_id
string

Identifier for the user's session id.

preview
boolean

Whether this is a preview mode request. If true, the suggestions returns in preview mode.

Response

Auto-suggest payload containing terms, categories, products, pages, and more.

Status
string
Example:

"success"

Data
object