Hi, How’’s everyone doing?
I was wondering if there’s any way to check if a profile has an event attached to them with a specific property set, via the api.
For example
Profile ID: xxxx
Metric_ID: xxxx
Property: { Product_id: 114 }
Ultimately I’m trying to query the API to check if a customer has purchased a product. (BigCommerce doesn’t have this functionality, which seems insane).
Thanks, Toby
Is there a way to see if a profile has an event with a specific property via the API

Best answer by alex.hong
Hi
Thanks for your follow up and other questions. You are on the right track with the timeline endpoint callout. “https://a.klaviyo.com/api/v1/metric/(metric_ID)/timeline?count=XXX&sort=desc&api_key=XXX.” That will yield all of the information about people for a certain metric that you can then sort by any property pulled (example:ID of the person, email address, event data pertaining to the event, etc.). I am not sure what you mean by “this one doesn’t provide a way to filter the events by a property within it.” Could you clarify?
I would use that call to pull all event data and profile info and then follow up with errors afterwards.
Thank you!
Alex
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.