I’m using this dashboard REST API to export a data table. The endpoint returns the values and the row labels but not the column labels (ie. the event names and segment names). It instead contains a 'valuesMetadata' entry that’s a list of objects with ‘metricIndex’, ‘segmentIndex’ which have integer values 0, 1, …
Is there a way to get the metric name and segment name from these indexes. The indexes don’t seem related to any global ID as they always start from 0 irrespective of the events chosen in the data table.
Hey,
thank you for your patience! I just got an update on this:
Hi @zhenia ,
metricIndex
,segmentIndex
corresponds to the index of the metric, segment in the table, respectively:
Hope this helps!
Best,
Zhenia
Thanks for the update Zhenia. I understand that the index are in the same order as seen in the table/chart, but is there a way to get these names through the API? Given a chart ID the API returns the data inside the table but there’s no way of programatically finding the event and segment names - the table headers.
Is there any other API I can use to get the names “All Users”, “United States”, “Any Event”, “New User”, “Any Active Event”?
Reply
Welcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.