younifyd
Menu

Retrieve items

Retrieve items

GET/v2/items

Use it in a workflow

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

Request

Query parameters

sectionstring

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

idarray<string>

The ID(s) of the items to return.

next_page_cursorstring

Pagination cursor from which to start returning results. Cannot be used together with `page` or `offset`.

num_results_per_pageinteger

The number of results per page to return.

Default 100

pageinteger

The page of results to return.

offsetinteger

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

cstring

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

Response

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

total_countinteger

Total number of items. Omitted when using cursor-based pagination (`next_page_cursor`).

itemsarray<object>
idstringrequired

The ID of the item, must be unique.

namestringrequired

The name of the item, as it will appear in the results. Contains at least one alphanumeric character.

suggested_scoreinteger

A number that will influence the item's initial ranking relative to other item scores (the higher the score, the higher in the list of suggestions the item will appear).

dataany

Object containing additional data attached to this item.

updated_atstring (date-time)required

A date when the item or any of item's variations were updated.

next_page_cursorstring

Pagination cursor to use to receive the next page of results. The value is returned by the previous page response. Cannot be used together with `page` or `offset`.

json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "updated_at": "2025-01-01T00:00:00Z",
      "suggested_score": 0,
      "data": null
    }
  ],
  "total_count": 0,
  "next_page_cursor": "string"
}

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

Was this page helpful?