Marketplace API / Queries

products

Browses products with search, filters, sorting, facets, and pagination.

products(
  after: String
  context: ProductSearchContextInput
  facets: [ProductFacetRequestInput!]
  first: Int
  offset: Int
  query: String
  sort: [ProductSortInput!]
  where: ProductSearchWhereInput
): ProductConnection!

Arguments

ArgumentTypeDescription
afterStringForward cursor. Mutually exclusive with offset.
contextProductSearchContextInputBaseline product set. Completed and cancelled auctions are excluded by default, and so are products with no image.
facets[ProductFacetRequestInput!]Facets to compute for the matching products.
firstIntMaximum number of products to return. Defaults to 20. Values above 100 are reduced to 100.
offsetIntZero-based offset for page-based pagination. Providing it with after is rejected. Only the first 10,000 matches can be paged; pages are shortened at the boundary, and offsets of 10,000 or more return an empty page.
queryStringFree-text query.
sort[ProductSortInput!]Sort order. Applied left to right.
whereProductSearchWhereInputFilters to apply. Populated fields combine with AND, and values within a list combine with OR.

Return type

ProductConnection!