Analytics
Read daily allow and deny counts for your workspace's evaluations.
Analytics give you your workspace's evaluation volume by day and result, across every benefit. Use them to watch trends, size alerts in your own monitoring, and confirm that a policy change moved results the way you expected. For a broader monitoring setup, see Monitor your integration.
The daily summary object
{
"object": "daily_summary",
"day": "2026-10-28",
"result": "deny",
"count": 37
}| Field | Type | Description |
|---|---|---|
object | "daily_summary" | The object type. |
day | string | The UTC day, as YYYY-MM-DD. |
result | allow or deny | The evaluation result being counted. |
count | integer | How many evaluations returned this result on this day, across every benefit. |
Read analytics
Returns one summary for each day and result that had evaluations, newest day first. Days without evaluations don't appear. Today's counts are refreshed through the day and can briefly trail live traffic.
| Method | Path | Scope | Idempotency-Key |
|---|---|---|---|
GET | /v1/analytics | analytics:read | Not used |
Also available as abusezero analytics get in the AbuseZero CLI, abusezero_get_analytics on the AbuseZero MCP server and analytics() in the AbuseZero Node.js SDK.
Query parameters
| Parameter | Type | Required | Limits | Description |
|---|---|---|---|---|
days | integer | No | 1 to 90, default 30 | How many recent UTC days to include, counting today. |
Example
import { AbuseZero } from "abusezero/server";
const abusezero = new AbuseZero({ key: process.env.ABUSEZERO_SECRET_KEY!, outage: "throw" });
const summaries = await abusezero.analytics(7);Response
Returns 200. The whole range comes back in one response, so next_cursor is always null.
{
"object": "list",
"data": [
{ "object": "daily_summary", "day": "2026-10-29", "result": "allow", "count": 412 },
{ "object": "daily_summary", "day": "2026-10-29", "result": "deny", "count": 21 },
{ "object": "daily_summary", "day": "2026-10-28", "result": "allow", "count": 958 },
{ "object": "daily_summary", "day": "2026-10-28", "result": "deny", "count": 37 }
],
"next_cursor": null
}Errors
| Code | Status | Meaning |
|---|---|---|
INVALID_FIELD | 422 | days isn't a whole number from 1 to 90. |
For every other code, see REST API errors.
Related
How is this guide?
Last updated on