Analytics API
Time series
One metric per day over a period.
GET /api/v1/stats/chartDaily values of one metric for the whole account, for a chart or to aggregate by week or month on your side.
Query
| Param | Notes |
|---|---|
metric | revenue (default), orders, conversations, cost, delivered, read, roas, conversion_rate. |
time_range, start_date, end_date, compared_to | See Period. |
Request
curl "https://api.getkanal.com/api/v1/stats/chart?metric=revenue&time_range=last_7_days" \
-H "Authorization: Bearer 8fK2pX9mWq4Ld7Vb3Nc6Ts1Z"Response 200 OK
{
"granularity": "day",
"data": [
{ "date": "2026-11-03", "value": 412.5 },
{ "date": "2026-11-04", "value": 980 },
{ "date": "2026-11-06", "value": 1000 }
],
"compare_data": null
}date is a day in your account timezone. Days without data may be missing
from data: treat a missing day as 0. With compared_to, compare_data
holds the series of the compared period in the same shape.