Solved

Can I use API to get selected fields from a segment as csv?

  • 21 September 2022
  • 1 reply
  • 69 views

Badge +1

Hi -

 

Currently, I am downloading certain fields (properties) from a segment as csv. Is there an API that I can use to retreive the same fields and download them as csv file without doing it manually? 

 

Current manual proccess to export:

 

icon

Best answer by Taylor Tarpley 22 September 2022, 22:22

View original

1 reply

Userlevel 7
Badge +60

Hi @katnissJW,

 

Thanks for sharing your question with us! 

 

Yes there is a way to do this that’s not manual, however, it does take some setting up. You would need to use the Membership endpoint, explained in our dev portal documentation, and shown below. However, you would need to follow our additional documentation , explaining how to export the profile data to a 3rd party data warehouse to get download the profile information, like properties, that you’re looking for.


GET https://a.klaviyo.com/api/v2/group/{LIST_ID or SEGMENT_ID}/members/all

 

Finally, it seems like someone asked a similar question in the Community as well, I’d check this convo out for additional insight. 

 

Thanks for participating in the Community!

-Taylor 

Reply