Skip to main content
Version: 25.03

Drill - Read Big Metadata 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 event segment or user property. Use it to look up values of properties that have too many values to be returned in full by Query Metadata - Read. The values can be narrowed down with a search term.

Authentication​

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

Permissions​

Requires Read permission as evaluated by FEATURE_DEPENDENCIES (funnels, cohorts, users, drill, formulas).

Request Parameters​

ParameterTypeRequiredDescription
methodStringYesMust be segmentation_big_meta.
app_idStringYesTarget app ID.
propStringYesProperty to read values of. A name starting with sg. is an event segment of event; any other name is a user property. If missing, an empty array is returned.
eventStringConditionalEvent key. Required when prop starts with sg..
searchStringNoOnly values matching this text (case-insensitive, used as a regular expression) are returned. A value that equals the text exactly is returned even if the value list limit is reached.
searchArrJSON String (Array)NoList of texts. Values equal to, or matching, any of them are returned in addition to the values matched by search.
optionsJSON String (Object)No{"filterValidSemver": true} returns only values that are valid semantic versions (for example app versions).
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

Read values of an event segment​

/o?method=segmentation_big_meta&
app_id=64f5c0d8f4f7ac0012ab3456&
api_key=YOUR_API_KEY&
event=purchase&
prop=sg.product

Search user property values​

/o?method=segmentation_big_meta&
app_id=64f5c0d8f4f7ac0012ab3456&
api_key=YOUR_API_KEY&
prop=email&
search=example

Response​

Success Response​

An array of values:

[
"shoes",
"hat",
"bag"
]

Response Fields​

FieldTypeDescription
(root)ArrayKnown values of the property, converted to numbers where possible. At most the configured Drill list_limit values are returned, apart from exact matches of search.

Behavior​

  • Without prop, an empty array is returned.
  • Values are read from the stored Drill metadata of the property.
  • An invalid options, searchArr or search expression is ignored.