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

# Get Analyzer Analytics

> Chart data for one analyzer

Totals and breakdowns over the last 7, 30 or 90 days: per day, by kind, by source and by person.

> [!NOTE]
>
> Needs `view` on the analyzer.

## Request

### Headers

**Authorization** `string` *required*

Bearer token with your API key: `Bearer sk_...`

### Path

**agentId** `string` *required*

Analyzer ID (UUID)

### Query

**days** `integer` (default: 30)

`7`, `30` or `90`

## Response

**200** `daily`, `by_kind`, `by_source` and `by_person` are arrays of breakdown rows.

```json theme={null}
{
  "success": true,
  "data": {
    "days": 30,
    "tz": "UTC",
    "totals": {
      "analyzed": 40,
      "with_problems": 7
    },
    "daily": [],
    "by_kind": [],
    "by_source": [],
    "by_person": []
  }
}
```

## Errors

Errors use `{ "success": false, "message": "...", "code": "..." }`. See the [overview](https://docs.60db.ai/api-reference/call-analysis/overview.md#errors) for the codes every route can return.

### This endpoint

| Status | Code | When |
| - | - | - |
| 400 | `VALIDATION_ERROR` | `days` is not 7, 30 or 90 |

## Example

```bash cURL theme={null}
curl 'https://api.60db.ai/deep-analytics/analysis-agents/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f/analytics?days=30' \
  -H "Authorization: Bearer your-api-key"
```

```javascript JavaScript theme={null}
const res = await fetch('https://api.60db.ai/deep-analytics/analysis-agents/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f/analytics?days=30', {
  headers: { Authorization: 'Bearer your-api-key' },
});
const { success, data, message, code } = await res.json();
if (!success) throw new Error(`${code}: ${message}`);
```


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