> ## 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 live visitors

> Who is on the website now, and what is in their carts.

Who was active on the website in the last 75 seconds. Available on every plan.

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.

## Request

```bash theme={null}
curl -H "X-API-Key: $KHAIME_API_KEY" \
  "https://api.khaime.com/api/v1/analytics/live"
```

## Response

```json theme={null}
{
  "message": "Live visitors retrieved",
  "success": true,
  "status": true,
  "data": {
    "environment": "live",
    "currency": "USD",
    "tracked": true,
    "active_visitors": 1,
    "in_checkout": 0,
    "cart_value": 4500,
    "visitors": [
      {
        "current_page": "/products/hoodie",
        "country_code": "NG",
        "region": "Lagos",
        "city": "Ikeja",
        "device_type": "mobile",
        "page_views": 4,
        "cart_value": 4500,
        "in_checkout": false,
        "last_activity_at": "2026-11-05T21:14:02.000Z",
        "seconds_on_site": 185
      }
    ]
  }
}
```

## Read it correctly

* `cart_value` is in hundredths of `currency`.
* It lists up to 25 visitors. `active_visitors` counts all of them.
* `tracked: false` means no tracker is running, and the counts are `null`.
* This is not split into live and sandbox: a sandbox key sees the same visitors.


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