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
| Argument | Type | Description |
|---|---|---|
after | String | Forward cursor. Mutually exclusive with offset. |
context | ProductSearchContextInput | Baseline 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. |
first | Int | Maximum number of products to return. Defaults to 20. Values above 100 are reduced to 100. |
offset | Int | Zero-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. |
query | String | Free-text query. |
sort | [ProductSortInput!] | Sort order. Applied left to right. |
where | ProductSearchWhereInput | Filters to apply. Populated fields combine with AND, and values within a list combine with OR. |