Skip to main content
Solved

Replacement for v1/v2 {list_or_segment_id}/members/all in new API

  • March 27, 2024
  • 2 replies
  • 71 views

Forum|alt.badge.img+1

Hi!

We are currently using this endpoint to get all members of a list and segment “pretty” fast cause each request returns up to 1000 profiles with Email and Phone Number.

Now when this gets deprecated, we are very limited to this functionality, since in our own Web-App we are syncing the lists/segments from klaviyo to our CRM. When I use alternative endpoints, with only max. 100 profiles returned, the sync for a segment/list takes 10x the current time, which is already long (approx. 5 minutes for segment > 30k)

Does someone have a solution for this? Or any tips on how I can improve on my end? 

Best answer by KeviSunshine

Hi @chatarmin,

We have a similar use case (fetching all profiles in a segment), and we concluded that the `/segments/{segmentId}/profiles` and fetching 100 at a time was the best solution.

We run ours in a recursive loop and it takes about 10 seconds for every 2,000 records. I would expect 30,000 records to take about 2.5-3 minutes. 

I don’t have a solution for you, but I wanted to share my experience.

 

Best,

Kevin.

 

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

2 replies

KeviSunshine
Expert Problem Solver III
Forum|alt.badge.img+8
  • Expert Problem Solver III
  • 159 replies
  • Answer
  • March 27, 2024

Hi @chatarmin,

We have a similar use case (fetching all profiles in a segment), and we concluded that the `/segments/{segmentId}/profiles` and fetching 100 at a time was the best solution.

We run ours in a recursive loop and it takes about 10 seconds for every 2,000 records. I would expect 30,000 records to take about 2.5-3 minutes. 

I don’t have a solution for you, but I wanted to share my experience.

 

Best,

Kevin.

 


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 2 replies
  • March 27, 2024

Thanks very much! I am now using those endpoints too in a recursive loop. Thanks!