Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApi > countProducts
ProductsApi.countProducts() method
In the response header, the "x-total-count" indicates the total number of products satisfying a query. Get a header with total number of products.
Signature:
countProducts(baseSiteId: string, query?: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
query | string | Serialized query, free text search, facets. The format of a serialized query: freeTextSearch:sort:facetKey1:facetValue1:facetKey2:facetValue2 |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<void>>
Exceptions
{RequiredError} ProductsApi