<- Catalog API

Catalog API

All versions ->

Search catalog objects

POST

 /v2/catalog/search

Searches for CatalogObject of any type by matching supported search attribute values, excluding custom attribute values on items or item variations, against one or more of the specified query expressions.

This (SearchCatalogObjects) endpoint differs from the SearchCatalogItems endpoint in the following aspects:

  • SearchCatalogItems can only search for items or item variations, whereas SearchCatalogObjects can search for any type of catalog objects.
  • SearchCatalogItems supports the custom attribute query filters to return items or item variations that contain custom attribute values, where SearchCatalogObjects does not.
  • SearchCatalogItems does not support the include_deleted_objects filter to search for deleted items or item variations, whereas SearchCatalogObjects does.
  • The both endpoints have different call conventions, including the query filter formats.
Permissions:ITEMS_READ
Try in API Explorer
Link to section

Request body

Example code

Link to section

cursor

string

The pagination cursor returned in the previous response. Leave unset for an initial request. See Pagination for more information.

Link to section

object_types

The desired set of object types to appear in the search results.

Link to section

include_deleted_objects

boolean

If true, deleted objects will be included in the results. Deleted objects will have their is_deleted field set to true.

Link to section

include_related_objects

boolean

If true, the response will include additional objects that are related to the requested object, as follows:

If a CatalogItem is returned in the object field of the response, its associated CatalogCategory, CatalogTax objects, CatalogImage objects and CatalogModifierList objects will be included in the related_objects field of the response.

If a CatalogItemVariation is returned in the object field of the response, its parent CatalogItem will be included in the related_objects field of the response.

Link to section

begin_time

string

Return objects modified after this timestamp, in RFC 3339 format, e.g., 2016-09-04T23:59:33.123Z. The timestamp is exclusive - objects with a timestamp equal to begin_time will not be included in the response.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

query

A query to be used to filter or sort the results. If no query is specified, the entire catalog will be returned.

Link to section

limit

integer(32-bit)

A limit on the number of results to be returned in a single page. The limit is advisory - the implementation may return more or fewer results. If the supplied limit is negative, zero, or is higher than the maximum limit of 1,000, it will be ignored.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

cursor

string

The pagination cursor to be used in a subsequent request. If unset, this is the final response. See Pagination for more information.

Link to section

objects

The CatalogObjects returned.

Link to section

related_objects

A list of CatalogObjects referenced by the objects in the objects field.

Link to section

latest_time

string

Beta

When the associated product catalog was last updated. Will match the value for end_time or cursor if either field is included in the SearchCatalog request.