Skip to main content

Pulling List & Segments Members Via New Api

  • October 26, 2022
  • 1 reply
  • 118 views

Forum|alt.badge.img+7

I’ve done some work with the new API and are wondering what others are planning to do when pulling list or segment profiles via the https://a.klaviyo.com/api/lists/{list_id}/profiles/ endpoint.

The problem I have is each call only now returns 10 records, so for me to pull a list or segment with 100k profiles, that is 10,000 api calls. I know I can date limit them etc, but with one of the clients I am working with their original list was all uploaded at the same time, so the created date is the same for over 60k, and some of their other lists and segments are well north of 100k.

I am also worried that with this many calls, other scripts running on the same server and using the same API key  at the same time will get severely rate limited while I am trying to do 10k calls.

Under the previous V1/V2 apis, I could pull list members 1k at a time, which reduced api calls to a reasonable level, but with the “improved” api we are now limited to Max 10 results per call.

I want to use the new API as I can also pull names and created date, unlike the V1/V2 apis, plus of course it now supports segments, so while I can step back to the V1/V2 api I will need to update at some point as those are fully depreciated.



 

Did this topic or the replies in the thread help you find an answer to your question?

1 reply

stephen.trumble
Community Manager
Forum|alt.badge.img+60

Hey @Mineral-CR 

I am asking our engineers for more background info as to why the change was made to limit to only 10 records/second. I have an inkling the change was made to make the endpoints more stable as it handles more data at one point (inclusive of name and date created fields) where as in the v1/v2 endpoints you needed separate calls for them. This sort of reasoning would also boil down to alleviating any rate limiting issues. I will let you known what our engineers say as soon as I hear back from them on this!