Get product categories with performance

Use the productCategoriesWithPerformance query to retrieve product categories with aggregated performance metrics rolled up from all products in each category.

query CategoriesWithPerformance {
  productCategoriesWithPerformance(first: 10) {
    pageInfo { hasNextPage count }
    edges {
      node {
        categoryId
        categoryName
        performanceMetrics {
          metrics {
            totalRevenue
            productCount
          }
        }
      }
    }
  }
}

Supports a productFilter parameter to scope the rollup to a subset of products inside each category.

Date ranges

Date range inputs are optional. If omitted, the query defaults to the last 30 days. Max range: 60 days, no future dates, start and end must be supplied together. See Get product performance summary for the full date range model.

Authentication

This API uses API Key authentication. See Using the Connect API for instructions on how to get and use your API key.