Skip to main content
Version: 25.03

Read property value count

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint​

/o/data-manager/property-values-count

Overview​

Returns the number of known values of a user property.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires data_manager Read permission.

Request Parameters​

ParameterTypeRequiredDescription
app_idStringYesTarget app ID.
propStringYesUser property key.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

Count values of a user property​

/o/data-manager/property-values-count?
app_id=64f5c0d8f4f7ac0012ab3456&
api_key=YOUR_API_KEY&
prop=subscription_tier

Response​

Success Response​

{
"count": 12
}

Response Fields​

FieldTypeDescription
countNumberNumber of known values of the property. 0 if none are recorded.

Error Responses​

  • 400
{
"result": "Error: <validation errors>"
}
  • 500
{
"result": "Error"
}

Behavior​

  • Counts the values stored in the Drill metadata of the user property.