Skip to main content

Read user funnels

Endpoint

/o?method=user_funnels

Enterprise Only
This API is available exclusively in Countly Enterprise.

Overview

Returns funnels where a specific user appears, along with calculated progression data for that user context.

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 user_funnels.
app_idStringYesTarget app ID.
uidStringYesUser ID to evaluate.
periodString or JSON String (Array/Object)NoAnalysis period.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Configuration Impact

SettingDefaultAffectsUser-visible impact
api.*Server API defaultsShared API execution controls (for example processing thresholds/limits).Changes to API-level controls can affect runtime behavior, limits, or response timing for this endpoint.

Response

Success Response

[
{
"_id": "67f1c22912df5acb8f8d5caaf0f89a31",
"name": "Purchase Funnel",
"steps": ["Product View", "Add to Cart", "Purchase"],
"step": 2,
"data": {
"total_users": 1,
"success_users": 0,
"success_rate": 0,
"steps": [
{"step": "Product View", "users": 1},
{"step": "Add to Cart", "users": 1},
{"step": "Purchase", "users": 0}
]
}
}
]

Response Fields

FieldTypeDescription
[]ArrayFunnels in which user appeared in at least first step.
[].stepNumberNumber of contiguous steps the user progressed through.
[].dataObjectPer-funnel calculated data payload for the user filter.

Error Responses

No explicit error response path; on calculation/query failures endpoint returns an empty array.

Behavior/Processing

  • Loads all funnels for the app.
  • Runs funnel calculation for each funnel with { uid: <uid> } filter.
  • Returns only funnels where computed user progression is greater than zero.

Database Collections

CollectionUsed forData touched by this endpoint
countly.funnelsEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly_drill.drill_eventsDrill event recordsStores granular event rows queried or updated by this endpoint.
countly.app_users{appId}Per-app user profilesStores user-level properties and profile fields affected by this endpoint.

Examples

/o?
method=user_funnels&
app_id=64f5c0d8f4f7ac0012ab3456&
uid=1234567890abcdef&
period=30days


Last Updated

2026-02-16