Skip to main content
Version: 24.05

Read values of a property with many values

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?method=segmentation_big_meta

Overview​

Returns the known values of one user property or event segment. Use it for properties that have too many values to be listed by Query Metadata - Read, and search within them.

Authentication​

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

Permissions​

Requires Read permission on at least one of the funnels, cohorts, users, drill or formulas features.

Request Parameters​

ParameterTypeRequiredDescription
methodStringYesMust be segmentation_big_meta.
app_idStringYesTarget app ID.
propStringYesProperty to read. Prefix with sg. for an event segment (for example sg.plan); any other value is read as a user property (for example cc). When missing, an empty array is returned.
eventStringConditionalEvent key. Needed for sg. properties.
searchStringNoText to search for. Matching is case-insensitive and treats the text as a regular expression.
searchArrJSON String (Array)NoList of values or patterns to look for; matching values are always included in the result.
optionsJSON String (Object)NoSet {"filterValidSemver": true} to return only values that are valid semantic versions.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

Search app versions​

/o?method=segmentation_big_meta&
app_id=64f5c0d8f4f7ac0012ab3456&
prop=av&
search=2.1

Search event segment values​

/o?method=segmentation_big_meta&
app_id=64f5c0d8f4f7ac0012ab3456&
event=purchase&
prop=sg.plan

Response​

Success Response​

["2.1.0", "2.1.1", "2.10.0"]

Response Fields​

FieldTypeDescription
(root array)ArrayMatching values. Numbers and booleans are returned in their own type.

Behavior​

  • The number of values returned is limited by the Drill list_limit setting. When search is given, an exact match of the searched text is still returned once the limit is reached.
  • Returns an empty array when no metadata is stored for the property.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly_drill.drill_metaDrill metadata modelSource of the stored property values.