Returns results for a funnel in the given date range and with optional filters.
Method
POST
Path
/v1/funnels/{id}
This endpoint returns funnel results for a specific funnel in your project.
You can use the list endpoint to get available funnels and pick the funnel id you want to query.
Examples
Copy the JSON body of any of these examples, and use it in a POST request to https://api.vemetric.com/v1/funnels/{id} (replace {id} with your funnel id) with your API key.
Further down this page, you can find a detailed reference of all the available options you can pass.
Be sure to also check out the filter values endpoint to see which values you can use in the filters field.
Headers
Authorization
required
Project or organization API key (starts with vem_), created in the project or organization settings on the API tab. Organization keys name the project of each request in the X-Vemetric-Project header.
Example: Bearer vem_xxxxxxxxxxxx
X-Vemetric-Project
optional
ID of the project the request is about. Required for organization keys; optional for project keys (must be the key's project if sent).
Example: 1234567890123456
Path Parameters
id
string
Unique funnel id.
Example: 550e8400-e29b-41d4-a716-446655440000
Request Body (required)
application/json object
dateRange
* required
Description
Can be either one of the preset strings below, or an array with two date strings [start, end]. Date strings can be either in YYYY-MM-DD format or UTC ISO-8601 format with second precision.
Filter based on the page origin (protocol + host). For example, "https://example.com".
Type
object
Show nested properties (2)
value
* required
Description
Value to filter by
Type
string
operator
* required
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page path. For example, "/blog".
Type
object
Show nested properties (2)
value
* required
Description
Value to filter by
Type
string
operator
* required
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page hash. For example, "#section1".
Type
object
Show nested properties (2)
value
* required
Description
Value to filter by
Type
string
operator
* required
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Ability to filter for either anonymous or identified users. This is useful when you want to include only known users (for example, for a retention analysis) or only anonymous users (for example, to analyze new visitor behavior).
Type
object
Default
"user"
Example
{"type":"user","anonymous":true}
Show nested properties (1)
anonymous
* required
Description
Filter for anonymous (true) or identified (false) users.
Filter by one or more country codes (ISO-3166 alpha-2, e.g. "US").
Type
object
Show nested properties (2)
value
* required
Description
List of values to filter by
Type
array<string>
operator
* required
Description
Operator to apply for the list filter. The "any" operator means that any value is accepted and effectively disables the filter. To require a value, use "noneOf" with [""].
Operator to apply for the list filter. The "any" operator means that any value is accepted and effectively disables the filter. To require a value, use "noneOf" with [""].
Referrer value to match, as returned when grouping by referrer (e.g. "Google"). An empty string matches visits without a referrer and visits from the project's own domain (referrer type direct).
List of referrer types to match: search, social, llm, email, paid, direct (a page on the project's own domain, e.g. a link from your app to your website; not visits without a referrer) or unknown (no referrer, or a website that isn't in Vemetric's list of known sources).
Type
array<string>
Example
["search","social"]
operator
* required
Description
List matching operator for value. To require a value, use "noneOf" with [""].
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page origin (protocol + host). For example, "https://example.com".
Type
object
Show nested properties (2)
value
Description
Value to filter by
Type
string
operator
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page path. For example, "/blog".
Type
object
Show nested properties (2)
value
Description
Value to filter by
Type
string
operator
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page hash. For example, "#section1".
Type
object
Show nested properties (2)
value
Description
Value to filter by
Type
string
operator
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Ability to filter for either anonymous or identified users. This is useful when you want to include only known users (for example, for a retention analysis) or only anonymous users (for example, to analyze new visitor behavior).
Type
object
Default
"user"
Example
{"type":"user","anonymous":true}
Show nested properties (1)
anonymous
Description
Filter for anonymous (true) or identified (false) users.
Filter by one or more country codes (ISO-3166 alpha-2, e.g. "US").
Type
object
Show nested properties (2)
value
Description
List of values to filter by
Type
array<string>
operator
Description
Operator to apply for the list filter. The "any" operator means that any value is accepted and effectively disables the filter. To require a value, use "noneOf" with [""].
Operator to apply for the list filter. The "any" operator means that any value is accepted and effectively disables the filter. To require a value, use "noneOf" with [""].
Referrer value to match, as returned when grouping by referrer (e.g. "Google"). An empty string matches visits without a referrer and visits from the project's own domain (referrer type direct).
List of referrer types to match: search, social, llm, email, paid, direct (a page on the project's own domain, e.g. a link from your app to your website; not visits without a referrer) or unknown (no referrer, or a website that isn't in Vemetric's list of known sources).
Type
array<string>
Example
["search","social"]
operator
Description
List matching operator for value. To require a value, use "noneOf" with [""].
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page origin (protocol + host). For example, "https://example.com".
Type
object
Show nested properties (2)
value
Description
Value to filter by
Type
string
operator
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page path. For example, "/blog".
Type
object
Show nested properties (2)
value
Description
Value to filter by
Type
string
operator
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Filter based on the page hash. For example, "#section1".
Type
object
Show nested properties (2)
value
Description
Value to filter by
Type
string
operator
Description
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Operator to apply for the string filter. "eq" means equals, "notEq" means not equals. "any" means no restriction and also matches users without a value; to require a value, use "notEq" with an empty string.
Step-to-step conversion rate in percent. First step is always 100 (or 0 if empty).
Type
number
Example
65.3
conversionRate
Description
Conversion rate from first funnel step to last funnel step, in percent.
Type
number
Example
32.81
activeUserConversionRate
Description
Conversion rate from active users to last funnel step, in percent.
Type
number
Example
18.26
400 Bad request - invalid request payload or parameters, or an organization key without the X-Vemetric-Project header
application/json
error
Description
Error details.
Type
object
code
Description
Machine-readable error code. HTTP_ERROR is returned for a malformed JSON body, PROJECT_REQUIRED for an organization key without the X-Vemetric-Project header.