Metadata queries
Metadata queries retrieve information about the fields, such as name, data type, and options (enumerated values or range-values in a scale). Issue a metadata query with a fields
element.
Filtering fields
Use filters to narrow the range of results.
ids
— returns info on the fields whose IDs are specified.dataType
— finds fields of a specific data type, where the types are: DATE, DATETIME, TIME, EMAIL, ENUM, STRING, UNIT, URL, INT, FLOAT.q
— finds fields whose names contain the specified string.filterable
— finds fields that are filterable in Query API.
ids
option has priority over dataType
and q
; they are ignored when ids
is included.ids
are provided.Example: Metadata query
This example retrieves the metadata for the field whose ID is e_bp_wm_client_aum_alt
. Notice the filter also include q
and dataType
filter options, but those are ignored because ids
is included.
Example: Retrieve metadata for specified fields
Sample response
Best practice: multiple fields
When the query has multiple fields, do not ask the field’s metadata inline with the fieldData
. The metadata is the same for all fields and asking it on each fieldData
, returns the same metadata for each returned record, which is a waste of resources and the query will be penalized with more cost.
Bad practice
Best practice
Instead, include another query in the same request, and only ask for the metadata for the needed fields.