The Shopify store marketing automation list contains data, but it cannot be obtained through the API. How should I handle this?

Hey @user290, this was actually answered in your previous thread - the short answer is that Marketing Automation data isn’t available via any API.

The marketingEvents query you’re using is for tracking campaigns created by marketing apps (like Facebook ads or Mailchimp campaigns), not Shopify’s built-in automations like abandoned checkout recovery.

If you need to track abandoned checkout metrics yourself, you could use the abandoned checkout webhooks to build your own tracking, but the native automation analytics aren’t exposed via the API currently.

1 Like

May I ask why “marketingEvents” can be successfully called but no data can be obtained

Marketing events are only created when a marketing app creates them via the API, and each app only sees events it created itself. The marketingEvents query returns “a list of marketing events associated with the marketing app” - meaning your app specifically, not all events on the store.

Shopify’s built-in automations (the abandoned checkout recovery, cart abandonment emails you’re seeing in the admin) don’t create marketing events at all. They’re a completely separate system - the data in Admin > Marketing > Automations isn’t exposed through any API.

1 Like

Basic data acquisition, including email type, number of email envelopes, number of senders, number of openers, number of clickers, number of orders, number of unsubscribers, number of bounce-outs, and number of spam complaints
Can I obtain these values through the API?

Those email metrics (sends, opens, clicks, orders, unsubscribes, bounces, spam complaints) aren’t available for reading via the API either.

There is a MarketingEngagement object that has exactly those fields - but it’s write-only. It’s designed for marketing apps to push their engagement data to Shopify via marketingEngagementCreate, not for reading Shopify’s native email data back out.

1 Like