Skip to main content

User Profiles - Timeline Graph

Endpoint

/o?method=user_details&calculate=graph

Enterprise Only
This API is available exclusively in Countly Enterprise.

Overview

Returns user activity timeline graph data.

Authentication

Authentication methods:

  • API Key (parameter): api_key=YOUR_API_KEY
  • Auth Token (parameter): auth_token=YOUR_AUTH_TOKEN
  • Auth Token (header): countly-token: YOUR_AUTH_TOKEN

Permissions

  • User Profiles: Read permission.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication
app_idStringYesApp ID
methodStringYesMust be user_details
calculateStringYesMust be graph
uidStringNoUser ID
didStringNoDevice ID alternative
periodStringNoRequested period
bucketStringNodaily, weekly, monthly, hourly
dbOverrideStringNoQuery adapter override
comparisonModeBoolean/StringNoComparison mode flag

Configuration Impact

SettingDefaultAffectsUser-visible impact
users.*User profile feature defaultsUser-details retrieval behavior in profile endpoints.Changes to user feature settings can affect which profile-related fields/aggregations are returned.

Response

Success Response

{
"totals": {
"s": 12,
"e": 54,
"d": 9,
"ds": 3,
"tsd": 4210
},
"graph": {
"2026:2:14": { "s": 2, "e": 8 },
"2026:2:15": { "s": 1, "e": 5 }
}
}

Response Fields

FieldTypeDescription
totalsObjectAggregated user totals in selected period
graphObjectBucketed timeline points

Error Responses

  • HTTP 400 - Query execution issue:
{
"result": "Error. Please check logs."
}

Behavior/Processing

  • Resolves uid from did when needed.
  • Maps bucket aliases (daily, weekly, monthly, hourly) to internal bucket keys.
  • Returns {} when user cannot be resolved.

Database Collections

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

Examples

/o?api_key=YOUR_API_KEY&app_id=YOUR_APP_ID&method=user_details&calculate=graph&uid=u_102&period=30days&bucket=daily

Ⓔ Enterprise

This feature is part of Countly Enterprise.

Get Access:

Already a Customer? Use support portal if you have any questions.


Last Updated

2026-02-16