Home > @vsf-enterprise/bigcommerce-api > Endpoints > getProductsByCategory
# Endpoints.getProductsByCategory() method
Returns a list of Products by Category
Signature:
getProductsByCategory(context: BigcommerceIntegrationContext, params: GetProductsByCategoryParameters): Promise<ProductsResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
context | BigcommerceIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
params | GetProductsByCategoryParameters | An object containing the category id for products |
Returns:
Promise<ProductsResponse>