younifyd
Menu

Retrieve by prefix

Retrieve by prefix

GET/v1/autocomplete/{prefix}

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve by prefix action (under Autocomplete).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveByPrefix.response.data}}.

Request

Path parameters

prefixstring (path)required

Query parameters

num_section_results_per_pageobject

The number of section results per page to return.

Default {}

offset_per_sectionobject

The offset of section results to return.

Default {}

page_per_sectionobject

The page of section results to return.

Default {}

filtersany

Any number of filtering criteria (accessible to end users) used to narrow the result set, such as `color=blue` or `group_id=sandals` or `price=100-200`. Facets and Item Groups and Collections can be used as filters. If `filter_value` has the form `<min>-<max>`, it is interpreted as a range. Filters with the same key are ORed together and filters with different keys are ANDed together by default. Only results that match the filters are returned. Boolean values are serialized with the first letter capitalized (e.g., `True` / `False`) as a convention. Supports per-section format using bracket notation (e.g., `filters[Products][color]=blue`) to apply filters to a specific section only.

filter_match_typesobject

An object specifying whether results must match `all`, `any` or `none` of a given filter when multiple options of the same facet (e.g: color: yellow & blue) are selected.

pre_filter_expressionany

A JSON-encoded [filter expression](/reference/shared-filter-expressions) containing any number of filters (inaccessible to end users) used to narrow the result set. Applied before user-selected `filters`. Only items that match this expression are considered in facet counts. Only results that match the filters are returned. [Read more](/reference/shared-pre-filter-expressions). Supports per-section format using bracket notation (e.g., `pre_filter_expression[Products]={...}`) to apply to specific sections only.

num_resultsinteger
nowstring (date-time)

A date time representing the current moment in time when applying filtering by product age. Used to emulate "past/future" requests. Requires authentication.

variations_mapstring (json)

A JSON string containing a instructions on how to map item variation data in the response (typically used for swatches). More details, including the exact schema for this value can be found [here](/reference/shared-variations-mapping)

fmt_optionsany

An object containing options to format different aspect of the response.

qsstring (json)

A JSON-encoded query string. Any query parameters listed for this endpoint can be serialized into a JSON string and parsed thru the `qs` param.

origin_referrerstring

The url or app location where the request originated.

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

usarray<string>

A customer defined context (such as `vip-club-member`) used to evaluate redirect or refined tag rules. Pass multiple segments by passing multiple `us` arguments.

uistring

A customer generated anonymized identifier for a user on a customer website. It should only be sent for logged in customers and helps Constructor to tie multiple client and session IDs together to form a behavioral data profile across devices.

sinteger

An integer representing the users session number (starting with `1`), incremented after a 30 minute period of inactivity.

istring

A globally unique identifier for the user browser (or mobile application instance) making the request.

langstring

A specification of the user query language. When provided, this parameter enables language-specific processing such as stemming to improve relevance and recall.

One ofarcacsdadeeleneseteufifrgahehihuhyiditltlvnenlnoplptrorusksrsvtatryi

Response

Returns 200 with an object. Read it in later steps with {{retrieveByPrefix.response.data.<field>}}.

requestobject

The request arguments how they were interpreted by the API. This field is of arbitrary type, ie it doesn't have a guaranteed schema, and data from it shouldn't be used programmatically, it is for debugging purposes only.

result_idstring
sectionsobject
total_num_results_per_sectionobject
json
{
  "request": {},
  "sections": {},
  "result_id": "string",
  "total_num_results_per_section": {}
}

Need more? See the Constructor guide for connection setup and behaviour shared by every action.