younifyd
Menu

Retrieve groups

Retrieve groups

GET/browse/groups

Use it in a workflow

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

Request

Query parameters

sectionstring

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

filtersany

A filter to apply to browse groups requests, so that only results that have that filter are returned.

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 {{retrieveGroups.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
responseobject
result_sourcesanyrequired

Summary of result sources.

groupsarray<object>6 fields

An array of groups within the section.

refined_contentarray<object>required

Arbitrary content attached to the search query via [content rule](#). Constructor doesn't enforce any restrictions on the attached data except for a size limit of 200kB, and just returns it as-is when there is a query match. There can be several rules attached to the same query, so the `refined_content` itself is an array of objects.

json
{
  "request": {},
  "response": {
    "result_sources": null,
    "refined_content": [
      {}
    ],
    "groups": [
      {
        "group_id": "string",
        "count": 0,
        "children": [
          {}
        ],
        "parents": [
          {
            "group_id": "string",
            "display_name": "string"
          }
        ],
        "display_name": "string",
        "data": {}
      }
    ]
  },
  "result_id": "string"
}

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

Retrieve groups — Constructor — Documentation