> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khaime.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get product performance

> Views, adds to cart, orders and revenue for each product.

Views, adds to cart, orders and revenue for each product. For price and stock, use [List products](https://docs.khaime.com/api-reference/products/list-products.md). Needs Store Pulse on the business's plan. Without it, the response is `403` with `BUSINESS_FEATURE_UNAVAILABLE`.

Call this from your server with a `pk_` key. See [Store data overview](https://docs.khaime.com/api-reference/store-data/overview.md) for keys, errors and how to read empty values.

## Parameters

| Name | Type | Required | Description |
| - | - | - | - |
| `range` | string | No | `today`, `7d`, `30d` or `90d`. Default `30d`. |
| `limit` | integer | No | How many rows, 1 to 50. Default 10. |

## Request

```bash theme={null}
curl -H "X-API-Key: $KHAIME_API_KEY" \
  "https://api.khaime.com/api/v1/analytics/products?range=30d&limit=5"
```

## Response

```json theme={null}
{
  "message": "Product performance retrieved",
  "success": true,
  "status": true,
  "data": {
    "environment": "live",
    "range": "30d",
    "currency": "USD",
    "tracked": true,
    "items": [
      {
        "product_id": 412,
        "title": "North Core Hoodie",
        "thumbnail": "https://cdn.example.com/hoodie.jpg",
        "views": 540,
        "sessions": 410,
        "add_to_carts": 62,
        "orders": 11,
        "revenue": 66000
      }
    ]
  }
}
```

## Read it correctly

* `revenue` is in hundredths of `currency`.
* `tracked: false` with no `items` means no tracker is running.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.