docs
  1. Resources
  2. Search
  3. Typeahead V1

Typeahead v1

{{version}}
OpenAPI 3.1.0

Storefront API Documentation

SCAYLE Storefront API is a REST API used to access your product data in any customer-facing application. Some common scenarios include retrieving campaigns, promotions, categories or configuration. You can also use it to save baskets or wishlists for individual customers and filter and search products.

Core concepts of the Storefront API are: Variant: Any distinct sellable item, for example: a blue colored shirt in size L. Available quantity/stock information is always on variant level. Product: A product is a collection of one or more variants with some shared attributes, for example: A blue colored shirt (product) available in different sizes (variants). A product will be sold out when all its variants are sold out. Sibling: A product closely related to another product, for example, the same shirt by the same brand, but in another color. Category: Each product can be assigned to one or more category nodes in the category tree. Attribute: Attributes are, for example, size, material, color. Attributes can be assigned to product level or variant level. Filter: Any criteria available to filter a list of products, for example: an attribute or a category. Basket: The basket holds variants that a customer intends to buy and has added to his shopping cart. Wishlist: Customers can add variants to a wishlist to remember them or buy them later.

Requests Base URL: https://{{tenant-space}}.storefront.api.scayle.cloud

Authentication

  1. Generate access token in the SCAYLE Panel > Shops > Storefront > API Keys.
  2. Provide the generated access token in the X-Access-Token Header

Note: After the token is generated in the SCAYLE Panel, it can take some time for changes to take effect.

Rate-Limiting Headers

SCAYLE Storefront API enforces a rate-limiting policy to manage the number of requests a client can make within a defined time window. Each response may include the following headers to provide users with their current rate-limit status:

  • X-RateLimit-Limit: Indicates the maximum number of allowed API requests for the current period, specific to the tenant's rate limit.
  • X-RateLimit-Remaining: Shows the remaining number of API requests allowed within the current period, specific to the tenant's rate limit.
  • X-RateLimit-Reset: The date and time when the current rate-limit window will reset.
  • X-RateLimit-Scope: Specifies the scope of the rate limit as it applies to the tenant, e.g., global.

If a tenant exceeds its allowed limit, the response status code will be 429 Too Many Requests.

Server:https://{tenant-space}.storefront.api.scayle.cloud
Client Libraries

search-v1

​

Deprecated Search Endpoints

search-v1 Operations

Typeahead v1

​

The endpoint searches and returns:

  • brands by their name
  • categories by their name or their synonyms
  • products by their name, brand, and attributes (or attribute synonyms)

When there is an exact one-to-one match present in the results, it is placed under the topMatch property. The rest of the results are sorted by relevancy and placed under the suggestions property. Sorting gives more weight to categories and brands, so products are generally placed below categories and brands.

The suggestions array has two types of objects:

  • BrandOrCategory object, which is either a brand or category. Whether it is a brand or category can be identified by the property primaryMatch. The brand suggestions will also include the most relevant category under the category property.
  • product object

When the search term finds a matching attribute, the attribute is then applied as a filter to the brand and category searches, adjusting the product count. Applied filters can be found under the attributeFilters property.

Please use the ?fullAttributeValue=true parameter for all searches. The old response that returns only attribute IDs is deprecated. The response will default to full attribute values in the future.

Query Parameters

  • The term parameter specifies the search term.

  • Changes the values within the attributeFilters array to following format: {"id": 1, "name": "black"}

  • The limit parameter allows limiting the number of suggested products returned.

  • The with parameter can be applied to include related resources, for example, the attributes of a product can be attached using with=product.attributes. It is also possible to filter product attributes by key with=product.attributes:key(plusSize), by type with=product.attributes:type(material_care) or exclude specific keys with=product.attributes:exclude(plusSize). Nested includes can also be attached when available with=product.variants.attributes and multiple combinations are likewise accepted with=product.siblings,product.variants,category.children. When using with=category.children, you can provide categoryDepth parameter to increase child depth. In the following table, there is more information about possible includes.

    Include includes Available Filters
    category.parents
    category.children
    category.countryLevelCustomData key
    category.shopLevelCustomData key
    category.properties:name(property_name)
    product.attributes key, type, exclude
    product.advancedAttributes key, type, exclude
    product.images (default) images.attributes
    product.categories hidden(true)
    product.categories.countryLevelCustomData key
    product.categories.shopLevelCustomData key
    product.customData key
    product.definingAttributes
    product.siblings
    product.siblings.attributes key, type, exclude
    product.siblings.advancedAttributes key, type, exclude
    product.siblings.variants.attributes key, type, exclude
    product.siblings.variants.advancedAttributes key, type, exclude
    product.siblings.customData `key
    product.siblings.categories.countryLevelCustomData key
    product.siblings.categories.shopLevelCustomData key
    product.siblings.variants.customData key
    product.siblings.variants.price.customData Include custom data of sibling product variant prices. key
    product.siblings.priceRange.customData Include custom data of the sibling product price range. key
    product.siblings.reductionRange.customData Include custom data of the sibling product reduction range. key
    product.variants See available includes for variants at variants endpoint
    product.variants.customData key
    product.variants.price.customData Include custom data of product variant prices. key
    product.variants.merchant Include merchant data
    product.variants.merchant.customData Include custom data of the variant merchant key
    product.variants.merchant.customData:key() Include the merchant custom data as an empty object
    product.variants.merchant.customData:key(keyA|...) Include the merchant custom data, filtered by the provided key(s)
    product.variants.relatedVariants Include the resolved components of a composite product variant. Always an array once requested, even if the variant isn't composite.
    product.variants.relatedVariants.attributes Include attributes of related-variant components key, type, exclude
    product.variants.relatedVariants.advancedAttributes Include advanced attributes of related-variant components key, type, exclude
    product.variants.relatedVariants.lowestPriorPrice Include the lowest prior price of related-variant components
    product.variants.relatedVariants.customData Include custom data of related-variant components key
    product.variants.relatedVariants.price.customData Include custom data of related-variant component prices key
    product.priceRange
    product.priceRange.customData Include custom data of the product price range. key
    product.reductionRange
    product.reductionRange.customData Include custom data of the product reduction range. key
    product.lowestPriorPrice
    product.searchCategoryIds
    product.baseCategories (deprecated)
    product.masterCategories
  • Defines the number of nested child categories to include in the response.

  • The categoryId parameter is used to filter the results and limit the returned data to items that belong to the specified category or its child categories.

Body·

application/json
  • The categoryId parameter can filter by category ID.

  • The fuzziness parameter can enable some typo tolerance. Available values are 0, 1, 2, and auto. Defaults to auto. Note: The value set in the SCAYLE Panel will not impact this search.

  • The limit parameter allows limiting the number of suggested products returned.

  • The term parameter allows you to query for any entity with a full or partial match with the given term.

Responses

  • application/json
  • required query parameter missing / query parameter invalid

  • authentication failed

Request Example for post/v1/typeahead
curl 'https://TENANT_SPACE.storefront.api.scayle.cloud/v1/typeahead?term=&fullAttributeValue=false&categoryDepth=3' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "fuzziness": 0,
  "categoryId": 20201,
  "limit": 10,
  "term": ""
}'
{
"suggestions": {
"brandOrCategorySuggestion": {
"attributeFilters": [
{
"id": 550,
"name": "brand",
"slug": "brand",
"values": [
53709

Models

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​

Last updated: December 02, 2026