Home > @shopware-pwa/shopware-6-client > getCategoryProducts
# getCategoryProducts() function
Get default amount of products and listing configuration for given category
Signature:
export declare function getCategoryProducts(categoryId: string, criteria?: ShopwareSearchParams, contextInstance?: ShopwareApiInstance): Promise<ProductListingResult>;
# Parameters
Parameter | Type | Description |
---|---|---|
categoryId | string | |
criteria | ShopwareSearchParams | |
contextInstance | ShopwareApiInstance |
Returns:
Promise<ProductListingResult>
# Exceptions
ClientApiError