Retrieve All Segments using API
Hello to everyone,
I cannot find a way to retrieve all segments using the Endpoint Segment API. The request returns only a few segments without any particular reason.
For example, given two segments (from the same Report Suite, created by the same person (me) and containing the same dimensions) one is extracted and the other is not.
Can anyone help me with this? What other characteristic of the segment could affect the API response?
Thank you in advance!
This is the request:
headers = {
'Accept': 'application/json',
'Authorization': f'Bearer {access_token}',
'Content-Type': 'application/json',
'x-api-key': CLIENT_ID,
'x-proxy-global-company-id': global_company_id,
}
params_seg1 = {
'expansion':'reportSuiteName,ownerFullName,modified,tags,compatibility,definition,publishingStatus,definitionLastModified,categories'
}
url = f"https://analytics.adobe.io/api/{global_company_id}/segments"
response = requests.get(url, params=params_seg1, headers=headers)