---
updatedAt: 2026-09-02T13:22:56.000Z
---

# 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.

```graphql
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](https://developer.goacoustic.com/acoustic-connect/reference/get-product-performance-summary) for the full date range model.

## Authentication

This API uses API Key authentication. See [Using the Connect API](https://developer.goacoustic.com/acoustic-connect/reference/use-connect-api) for instructions on how to get and use your API key.