younifyd
Menu

Retrieve by group ID

Retrieve by group ID

GET/browse/group_id/{group_id_value}

Use it in a workflow

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

Request

Path parameters

group_id_valuestring (path)required

Query parameters

sectionstring

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

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.

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).

num_results_per_pageinteger

The number of results per page to return.

Default 20

pageinteger

The page of results to return.

offsetinteger

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

sort_bystring

The method to sort results by. The default value `relevance` sorts by Constructor's attractiveness & personalization algorithms and is reserved. Alternative sort criteria can be configured using the [Sort options API](/reference/v1-sort-options-create-or-replace-sort-options).

Default "relevance"

sort_orderany

The order by which results should be sorted. Only valid in conjunction with `sort_by`.

Default "descending"

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.

Response

Returns 200 with an object. Read it in later steps with {{retrieveByGroupId.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.

facetsarray<oneOf>required

An array of facets associated with the items returned by the search query.

groupsarray<object>required6 fields

An array of item groups and the number of results belonging to each group.

resultsarray<object>required8 fields
sort_optionsarray<object>required5 fields

Sort options configured for this index through the [Sort options API](https://docs.constructor.com/reference/v1-sort-options-create-or-replace-sort-options). It does not restrict the values accepted by `sort_by` or `sort_order`. Any sortable field can be used in ascending or descending order. Returns an empty array when no sort options are configured, in which case results default to sorting by relevance in descending order.

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.

total_num_resultsintegerrequired

Total count of results within the section

featuresarray<object>required4 fields

State of features for Affinity Engine, Searchandizing, Personalization and Learn To Rank

collectionany

Information on browsed collection. Present only for browse collection request `/browse/collection_id/<collection_id>`

related_searchesarray<object>required1 fields

An array of related queries.

related_browse_pagesarray<object>required4 fields

An array of related browse pages.

json
{
  "request": {},
  "response": {
    "result_sources": null,
    "facets": [
      null
    ],
    "groups": [
      {
        "group_id": "string",
        "count": 0,
        "children": [
          {}
        ],
        "parents": [
          {
            "group_id": "string",
            "display_name": "string"
          }
        ],
        "display_name": "string",
        "data": {}
      }
    ],
    "results": [
      {
        "value": "string",
        "matched_terms": [
          "string"
        ],
        "data": {
          "id": "string",
          "url": "string",
          "image_url": "string",
          "variation_id": "string",
          "facets": [
            {
              "name": null,
              "values": null
            }
          ],
          "groups": [
            {
              "group_id": null,
              "path": null,
              "path_list": null,
              "display_name": null
            }
          ]
        },
        "is_slotted": false,
        "labels": {},
        "variations": [
          {
            "data": {
              "id": null,
              "url": null,
              "image_url": null,
              "variation_id": null,
              "facets": null,
              "groups": null
            },
            "value": "string"
          }
        ],
        "variations_map": null,
        "variation_slice": {}
      }
    ],
    "sort_options": [
      {
        "display_name": "string",
        "status": "selected",
        "sort_by": "string",
        "sort_order": null,
        "hidden": false
      }
    ],
    "refined_content": [
      {}
    ],
    "total_num_results": 0,
    "features": [
      {
        "display_name": "string",
        "enabled": false,
        "feature_name": "string",
        "variant": null
      }
    ],
    "related_searches": [
      {
        "query": "string"
      }
    ],
    "related_browse_pages": [
      {
        "filter_name": "string",
        "filter_value": "string",
        "display_name": "string",
        "image_url": "string"
      }
    ],
    "collection": null
  },
  "result_id": "string"
}

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