Expand my Community achievements bar.

SOLVED

download audience list

Avatar

Level 1

Hi,

I want to fetch Name of all audiences from API response. I have written the python code but it gives me only 200 names, I have total 445 audiences.

Please suggest.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hey @MeenalBo 

 

First query, do you have any limit parameter set in your script which is restricting the retrieval of all definitions ? Might be worth checking that.

Did you try to use pagination or may be use the start parameter to retrieve segment definitions from 201 onwards ?

Ideally the endpoint should have given you all the definitions in one go but if not then try using the start parameter which would tell the endpoint to fetch definitions from the ones which have not been fetched yet.

 

Link to the documentation: https://experienceleague.adobe.com/docs/experience-platform/segmentation/api/segment-definitions.htm...

 

Cheers,

Abhinav

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hey @MeenalBo 

 

First query, do you have any limit parameter set in your script which is restricting the retrieval of all definitions ? Might be worth checking that.

Did you try to use pagination or may be use the start parameter to retrieve segment definitions from 201 onwards ?

Ideally the endpoint should have given you all the definitions in one go but if not then try using the start parameter which would tell the endpoint to fetch definitions from the ones which have not been fetched yet.

 

Link to the documentation: https://experienceleague.adobe.com/docs/experience-platform/segmentation/api/segment-definitions.htm...

 

Cheers,

Abhinav