Expand my Community achievements bar.

SOLVED

Segmentation API- Can I retrieve profiles from a segment dynamically?

Avatar

Level 1

Using API, can I retrieve profiles qualifying in a segment? Basically I want to know the profiles that entered into a cart abandonment segment, on the fly. I already have destinations activated, but the span is 3 hours, and we feel this is long.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Its not possible unfortunately. 

However there is a Streaming HTTP API destination. You can activate you streaming audience there 

View solution in original post

3 Replies

Avatar

Level 3

Hi there

 

I guess you could use the Preview and Estimate endpoint for that, depends on what type of evaluation method your segment is. And you could do this also with query service, by write a query against your profile snapshot dataset, e.g.

SELECT count(1) AS count_of_profiles
FROM profile_snapshot_export_{your dataset}
WHERE segmentMembership['ups']['{your segment id}'].status = 'realized';

Avatar

Level 1

I need to this via api only.

Avatar

Correct answer by
Level 10

Its not possible unfortunately. 

However there is a Streaming HTTP API destination. You can activate you streaming audience there