Skip to main content

List funnels

Endpoint

/o?method=get_funnels

Enterprise Only
This API is available exclusively in Countly Enterprise.

Overview

Returns funnel definitions for the app, with optional group filtering and DataTable pagination/search parameters.

Authentication

Countly API supports three authentication methods:

  1. API key query parameter: api_key=YOUR_API_KEY
  2. Auth token query parameter: auth_token=YOUR_AUTH_TOKEN
  3. Auth token header: countly-token: YOUR_AUTH_TOKEN

Permissions

Requires funnels Read permission.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be get_funnels.
app_idStringYesTarget app ID.
groupStringNoOptional group filter. Use fav for current member favorites.
iDisplayStartNumberNoPagination offset (DataTable).
iDisplayLengthNumberNoPage size (DataTable).
iSortCol_0NumberNoSort column index (DataTable).
sSortDir_0StringNoSort direction (asc or desc).
sSearchStringNoSearch value for funnel name.
outputFormatStringNorows (default) or full.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Response

Success Response

Default (outputFormat=rows) response:

[
{
"_id": "67bd31c92e7f0b0012ab4567",
"name": "Purchase Funnel",
"description": "Product view to purchase",
"type": "session-independent",
"steps": ["Product View", "Add to Cart", "Purchase"],
"created": 1739558400000
}
]

outputFormat=full response:

{
"sEcho": "0",
"iTotalRecords": 1,
"iTotalDisplayRecords": 1,
"aaData": [
{
"_id": "67bd31c92e7f0b0012ab4567",
"name": "Purchase Funnel",
"description": "Product view to purchase",
"type": "session-independent",
"steps": ["Product View", "Add to Cart", "Purchase"],
"groups": {
"fav_64f5c0d8f4f7ac0012ab9999": 1
},
"created": 1739558400000
}
],
"favTotal": [
{
"value": 1
}
]
}

Response Fields

FieldTypeDescription
[]ArrayDefault rows output (outputFormat=rows).
sEchoStringDataTable echo value (outputFormat=full).
iTotalRecordsNumberTotal rows before filtering (outputFormat=full).
iTotalDisplayRecordsNumberTotal rows after filtering (outputFormat=full).
aaDataArrayPaged rows (outputFormat=full).
favTotalArrayFavorite count facet for current member.

Error Responses

  • 200
false

Behavior/Processing

  • Uses DataTable pipeline for sorting, searching, and pagination.
  • Supports group filtering; for favorites it uses groups.fav_<member_id>.
  • Removes other users' favorite keys before returning rows (hideGroupValues).

Database Collections

CollectionUsed forData touched by this endpoint
countly.funnelsEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.

Examples

/o?
method=get_funnels&
app_id=64f5c0d8f4f7ac0012ab3456
/o?
method=get_funnels&
app_id=64f5c0d8f4f7ac0012ab3456&
group=fav&
iDisplayStart=0&
iDisplayLength=10&
sSearch=purchase


Last Updated

2026-02-16