KuikCodeDocs
APIReferenceAnalytics

Scans over time

GET
/analytics/timeseries

Scan counts per bucket across the window, zero-filled. Buckets are hourly for windows up to 48 hours, daily beyond.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Query Parameters

from?string

ISO 8601 start, inclusive. Omit for the start of the plan's history.

Formatdate-time
to?string

ISO 8601 end, exclusive. Omit for now.

Formatdate-time
codeId?string

One code (its id).

folderId?string

Codes in this folder and its subfolders.

tag?string

Response Body

application/json

application/json

curl -X GET "https://example.com/analytics/timeseries"
{  "granularity": "hour",  "rows": [    {      "bucket": "string",      "scans": 0,      "uniques": 0    }  ],  "window": {    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z",    "clamped": true  }}