Count products
Returns how many products match a filter, without returning them. Cheaper than paging through a listing when you only need the number.
Query Parameters
Only these products.
Only items imported from these sources.
Only items from these sales channels.
Only items that use these customizations.
Free-text search.
Match search only in the product name, product SKU and variant SKUs, not in the description or barcodes. Defaults to false.
Only items in these statuses.
Value in
- "draft"
- "active"
- "inactive"
- "outOfStock"
- "discontinued"
- "archived"
Leave out items in these statuses.
Value in
- "draft"
- "active"
- "inactive"
- "outOfStock"
- "discontinued"
- "archived"
Include archived items.
Only items in these categories.
Also match products in the subcategories of categoryIds, at any depth. Defaults to false.
Leave out items in these categories.
Only items of these brands.
Leave out items of these brands.
Only items of these stores.
Only items of these sellers.
Leave out items of these sellers.
Filter by variant identifiers.
Filter by SKU codes.
Only these product types.
Value in
- "product"
- "service"
- "bundle"
Leave out these product types.
Value in
- "product"
- "service"
- "bundle"
Only featured items.
Filter by EAN barcode.
Lowest price to include, in the store currency.
doubleHighest price to include, in the store currency.
doubleKeeps products whose price is at least this percent below their compare-at price, both taken from the cheapest active variant. Greater than 0 and at most 100.
doubleMinimum stock on hand.
int32Maximum stock on hand.
int32Stop counting at this number. Defaults to 10000.
int32Count every match, ignoring limit. Slower on large catalogs.
Header Parameters
Store the request acts on. Not needed when the token is bound to a store.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.ecomiq.pe/api/v1/catalog/products/count" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>"{ "total": 178, "precision": "exact", "limit": 25}