younifyd
Menu

Retrieve facets with their options (values)

Retrieve facets with their options (values)

GET/browse/facets_with_options

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve facets with their options (values) action (under Browse).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveFacetsWithTheirOptionsValues.response.data}}.

Request

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

num_results_per_pageinteger

The number of results per page to return.

Default 10

pageinteger

The page of results to return.

offsetinteger

The number of results to skip from the beginning. Cannot be used together with `page`.

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.

fmt_optionsany

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

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.

Response

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

responseobject
facetsarray<oneOf>required

An array of facets within the section.

total_num_resultsintegerrequired

Total count of facets within the section.

result_idstring
json
{
  "response": {
    "facets": [
      null
    ],
    "total_num_results": 0
  },
  "result_id": "string"
}

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