viakite
Dashboard

API/Reports/A saved funnel's numbers for a range, with filters and a split

A saved funnel's numbers for a range, with filters and a split

POST/v1/projects/{project}/funnels/{funnel}/results

Event steps match on the event name and every property condition. Each step after the first has median_seconds, the median time from the step before.

Secret keyNeeds analytics.viewus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).
funnelstringrequired
The funnel's id.

Body

filtersFilter[]
A dimension matching any of up to 20 values, or or, a list of such filters (not nested). Filters in a list are ANDed; up to 20 in all. goal matches the names of the project's saved goals an event reaches (is_not: none of them); page_group matches the name of the first of the project's saved page groups whose pattern the event's path matches (empty when none does); new_returning is New or Returning.
Show 4 fields
dimensionstring
A dimension's name; keyed ones take a key: props.plan.
operatorstring
isis_notcontainsnot_containsstarts_withregex
valuesstring[]1–20 items
orFilter[]
splitstring
A dimension to split the results by, or new_returning: Returning is a visitor whose user id (identify) was seen before; everyone else is New.
date_rangeobjectrequired
A preset, or from and to as dates (2026-11-01, whole days in the project's time zone, to included) or RFC 3339 times (to excluded). Empty means the last 30 days. A range starting before the first day the plan keeps (retention_days of F47: the last N days, today included, in the project's time zone) starts on that day instead: the answer's date_range shows where it starts, and F1, F2 and the public queries add a range_clamped warning. A range wholly before it is empty.
Show 3 fields
presetstring
todayyesterday7d30d90dthis_monthlast_monththis_yearall
fromstring
tostring
count_bystring
What to count: visitors (the default; within a day) or users, identified people (identify) within 30 days across days and devices. Visitors that never identified are left out of users.
visitorsusers
compareobject
previous_period, previous_year, or from and to.
Show 3 fields
presetstring
previous_periodprevious_year
fromstring
tostring
compare_filtersFilter[]up to 20 items
A second segment: the comparison (compare) runs these filters instead of filters, over the same range, or over compare's range when both are given. An empty list is every visitor.
Show 4 fields
dimensionstring
A dimension's name; keyed ones take a key: props.plan.
operatorstring
isis_notcontainsnot_containsstarts_withregex
valuesstring[]1–20 items
orFilter[]

Responses

How many visitors reached each step.

stepsFunnelStepResult[]required
One step's visitors.
Show 5 fields
stepobjectrequired
A page (exact, or with * for any part) or a custom event, with optional property conditions.
Show 3 fields
typestringrequired
pageevent
valuestringrequiredup to 255 chars
conditionsPropertyCondition[]up to 20 items
With type event, property tests the event must pass, all of them.
Show 3 fields
propertystringrequiredup to 255 chars
operatorstringrequired
isis_notcontainsstarts_with
valuestringrequiredup to 255 chars
visitorsintegerrequired
Visitors who reached this step.
conversionnumberrequired
Percent of the first step's visitors.
dropnumberrequired
Percent lost from the step before.
median_secondsnumber
The median time from the step before, in seconds, among those who reached this step. Absent on the first step, on splits, and when nobody reached it.
splitsFunnelSplit[]
The result for one value of the split dimension.
Show 2 fields
valuestringrequired
stepsFunnelStepResult[]required
One step's visitors.
Show 5 fields
stepobjectrequired
A page (exact, or with * for any part) or a custom event, with optional property conditions.
Show 3 fields
typestringrequired
pageevent
valuestringrequiredup to 255 chars
conditionsPropertyCondition[]up to 20 items
With type event, property tests the event must pass, all of them.
Show 3 fields
propertystringrequiredup to 255 chars
operatorstringrequired
isis_notcontainsstarts_with
valuestringrequiredup to 255 chars
visitorsintegerrequired
Visitors who reached this step.
conversionnumberrequired
Percent of the first step's visitors.
dropnumberrequired
Percent lost from the step before.
median_secondsnumber
The median time from the step before, in seconds, among those who reached this step. Absent on the first step, on splits, and when nobody reached it.
date_rangeobjectrequired
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
windowstringrequired
count_bystringrequired
What the steps' visitors count: visitors, or identified users.
visitorsusers
compareFunnelStepResult[]
The steps over the comparison, counted the same way, without split or median times; only when the request has compare or compare_filters.
Show 5 fields
stepobjectrequired
A page (exact, or with * for any part) or a custom event, with optional property conditions.
Show 3 fields
typestringrequired
pageevent
valuestringrequiredup to 255 chars
conditionsPropertyCondition[]up to 20 items
With type event, property tests the event must pass, all of them.
Show 3 fields
propertystringrequiredup to 255 chars
operatorstringrequired
isis_notcontainsstarts_with
valuestringrequiredup to 255 chars
visitorsintegerrequired
Visitors who reached this step.
conversionnumberrequired
Percent of the first step's visitors.
dropnumberrequired
Percent lost from the step before.
median_secondsnumber
The median time from the step before, in seconds, among those who reached this step. Absent on the first step, on splits, and when nobody reached it.
compare_rangeobject
A resolved range [from, to) in UTC.
Show 2 fields
fromstring · date-timerequired
A time in UTC, ISO 8601.
tostring · date-timerequired
A time in UTC, ISO 8601.
Example response
1{
2 "steps": [
3 {
4 "step": {
5 "type": "page",
6 "value": "string",
7 "conditions": [
8 {
9 "property": "plan",
10 "operator": "is",
11 "value": "pro"
12 }
13 ]
14 },
15 "visitors": 1,
16 "conversion": 1.5,
17 "drop": 1.5,
18 "median_seconds": 1.5
19 }
20 ],
21 "splits": [
22 {
23 "value": "string",
24 "steps": [
25 {
26 "step": {
27 "type": "page",
28 "value": "string",
29 "conditions": [
30 {
31 "property": "plan",
32 "operator": "is",
33 "value": "pro"
34 }
35 ]
36 },
37 "visitors": 1,
38 "conversion": 1.5,
39 "drop": 1.5,
40 "median_seconds": 1.5
41 }
42 ]
43 }
44 ],
45 "date_range": {
46 "from": "2026-11-21T09:30:00Z",
47 "to": "2026-11-21T09:30:00Z"
48 },
49 "window": "1 day",
50 "count_by": "visitors",
51 "compare": [
52 {
53 "step": {
54 "type": "page",
55 "value": "string",
56 "conditions": [
57 {
58 "property": "plan",
59 "operator": "is",
60 "value": "pro"
61 }
62 ]
63 },
64 "visitors": 1,
65 "conversion": 1.5,
66 "drop": 1.5,
67 "median_seconds": 1.5
68 }
69 ],
70 "compare_range": {
71 "from": "2026-11-21T09:30:00Z",
72 "to": "2026-11-21T09:30:00Z"
73 }
74}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
422validation_error
404not_found
503clickhouse_not_configured