Solved

Segement Export via API doesnt include all field

  • 13 March 2024
  • 2 replies
  • 10 views

Badge
  • 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

icon

Best answer by HSW 13 March 2024, 23:38

View original

2 replies

Badge

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

Userlevel 4
Badge +25

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.  

Reply