Skip to Content
Bhakti BaazarDevelopers
API referenceProducts

Count products

GET
/products/count

Scope: catalog:read

How many products (and variants) match a status, using the same rule as GET /products?status=. Deleted products are never counted.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Query Parameters

status?string

Count only products in this status, as GET /products?status= lists them.

Response Body

application/json
  1. response
products*number

Products matching the filter, deleted ones never counted.

variants*number

Their variants, deleted ones never counted.

publishedVariants*number

Of those variants, the ones you have published.

Example Request
curl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/products/count'
Example Response
{  "products": 0,  "variants": 0,  "publishedVariants": 0}