I’m building a Shopify app and I want to find a reliable way to fetch all active apps installed in a merchant’s store, especially those that are embedded in the theme (like apps adding app blocks or script tags).
Let’s say a merchant installs multiple apps that inject theme code or add app blocks , I want to automatically detect which ones are active and possibly where they’re used in the theme.
Hey @Jaseem_V , you can use this query to pull installed applications:
You would need approval from us directly though (on a case by case basis) and would have to reach out to support for assistance with that. That said, there’s not an easy way to pull app blocks/theme code info without having direct access to the theme itself.
As long as you’re just reading theme information though, you could use the Asset API to retrieve some config info on theme embeds and compare it against the list of apps returned by the GraphQL query:
Hope this helps, let me know if I can clarify anything on our end here.