GraphQL Partner API

I want to get the total number of customers who install the app, uninstall the app, the total number of app reviews over a period of time. Is there any API Partner that supports that?

I try use partner API ( https://shopify.dev/api/partner ) but i can’t find what i need.

Please give me a exemple.

Hi @Beae-Duy

You are on the right path, Partner API is the one to use but I must admit, it’s not very clean and not the most complete

You can use the App events to get the information you want but you will have to do a bit of work at your end to summarise data because shopify, from what I know, doesn’t yet provide a direct api where you can just get the summary data of what you are after

However, if you use a query like the one attached below, you should be able to receive a list various events that have happened to your app and you can then summarise things as you see fit

PS: remember you will need to have partner access token to be able to use the api.

Hope this helps!

Thank you very much, it helped me. However I have a problem with pagination again, do you have any ideas

Hi @Beae-Duy

So as I mentioned earlier, at this very moment, the partner API is not the most complete. I don’t think it’s a priority for the Shopify team at the moment because even the unstable version of the API still accepts ID as the only argument for the app api. You can’t query, you can’t filter results. You will only get x number of recent events.

For me, the more realistic way to capture and measure this type of information is by using webhooks. You need to set which ones to listen to at the time of registering your app.

The more webhooks you listen to, the busier your server will be so it’s important to use them with care and possibly implement AWS eventbridge as the middle

It becomes a little more involved as you dig in but webhooks is probably your very best bet at this stage.

Hope this helps and Good luck!