Hi, I am trying to get the query used to create a segment on a dashboard via API. I have looked at the available endpoints and it does not seem like there is a way to do this, but wanted to confirm!
Best answer by Saish Redkar
View originalHi, I am trying to get the query used to create a segment on a dashboard via API. I have looked at the available endpoints and it does not seem like there is a way to do this, but wanted to confirm!
Best answer by Saish Redkar
View originalHi
Are you trying to replicate a chart via a API call which uses a user segment? You can replicate your chart’s user segment in your api call using this segment definition construct.
Or do you want to just get results from a existing chart which uses a user segment?
Hi
I’d like to get the segment definition used in a chart - I don’t need the results of the segment.
If you are looking to pull a segment like this applied to a chart, then I don’t think it’s possible.
You can either query the results of a saved chart using this segment or build this segment definition using the API parameters as shown.
What format are you expecting your segment definition to look like if at all there was a way to extract just that?
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 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.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.