---
search:
  tags:
    - Agent Behavior Insights
    - GET
seo:
  description: >-
    Top-N products (default 100) by summed agent request count over the range,
    with… Reference for the GET /insights/product_demand endpoint in the Sarvex
    V1 API.
sidebar:
  label: Top products by agent request count
  badge: GET
title: Top products by agent request count
type: openapi-operation
---
Top-N products (default 100) by summed agent request count over
the range, with a per-surface breakdown. Counts only —
reached_cart_count/completed_count are not represented (no
telemetry correlates a specific catalog request to a specific
later checkout; see this path group's top-level description).
Rows below the small-count suppression threshold (default 5) are
omitted. Max range 92 days.

`GET /insights/product_demand`

**Responses**

- `200` — Top products by request count for the range, request-count descending.
- `403` — Authenticated but not permitted (e.g. non-operator on an operator route).
- `422` — Request body failed validation.

Response example, 200:

```json
{
  "data": [
    {
      "product_id": "string",
      "request_count": 0,
      "surface_breakdown": {
        "property1": 0,
        "property2": 0
      }
    }
  ],
  "page": {
    "cursor": "string",
    "has_more": true
  }
}
```

Response example, 403:

```json
{
  "error": {
    "code": "forbidden",
    "message": "Operator role required.",
    "details": null
  }
}
```

Response example, 422:

```json
{
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "details": {
      "fields": {
        "email": "must be a valid email address"
      }
    }
  }
}
```
