We are trying to fetch list of all the `Lists` and `Segments` we have and then fetch members in all the `Lists` and `Segments` using the `Group` API. We are able to do this successfully for `Lists`, we couldn’t find any API to GET details of all our `Segments`.
Is there any way we can achieve this?
Or is there any way we can directly get list of all Members in all `Lists` and `Segments`?
Best answer by jallain
You should be able to get all of the List and Segment IDs using this URL:
Then, using a Segment ID, you can get the members of that segment with this URL:
Make sure to replace the SEGMENT_ID and use the Klaviyo private API key in the requests.