Skip to main content
Solved

Segement Export via API doesnt include all field

  • March 13, 2024
  • 2 replies
  • 20 views

Forum|alt.badge.img
  • Contributor I
  • 1 reply

Hi all! Hope you are doing great :)

Context: I am trying to integrate members from  Klaviyo to our ERP (Dynamics NAV). To achieve this, I need to export Klaviyo members on (at-most) daily basis.

 

Issue: When I export a segment of my members (Python), it ONLY exports ID and email address. If I export the segment via the UI, it lets me choose what information I need. How can i get all information of members when i export the segement, or selectively choose it?

 

url = "https://a.klaviyo.com/api/v2/group/SEGEMENT_ID_HEREmembers/all?api_key=API_KEY_HERE"
headers = {"accept": "application/json"}
response = requests.get(url, headers=headers)
print(response.text)
 

Many thanks,

Udit

Best answer by HSW

Solved- You need to use the newer version of API for this, can be found at - Get Segment Profiles (klaviyo.com)

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

2 replies

Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • March 13, 2024

Solved- You need to use the newer version of API for this, can be found at - Get Segment Profiles (klaviyo.com)


kaila.lawrence
Community Manager
Forum|alt.badge.img+31
  • Community Manager
  • 499 replies
  • March 14, 2024

Thanks for posting the solution, @HSW! In the future anything API related should go to our Developer Group. They’re the best equipped to advise on all things technical.