Hi team!
I would like to know if there is any REST API request / saved GraphiQL query that will allow me to fetch the tracking app usage metrics with the Partner Dashboard data → https://shopify.dev/apps/store/success/tracking-usage (I need to integrate with the https://shopify.dev/apps/store/success/tracking-usage#earnings and https://shopify.dev/apps/store/success/tracking-usage#app-history reports).
Just to make it clear again, my goal is to understand how I can fetch the reports available in the partner dashboard via an API request, and I need some assistance with the graphiQL query itself, so I am reaching out to understand if there is an existing query that will allow me to fetch the two reports mentioned above.
Let me know if any additional details are required!
Jonathan.
Hi @JonathanRivery - thanks for reaching out. I was able to do a bit of digging into this for you and while there’s no specific endpoint in REST or queries in GraphQL that will allow you to obtain those reports directly through the API, you can query some relevant data through GraphQL specifically that may work in this case. I’ve got a few decent starting points for us here:
Hope this helps and provides you with some insight/next steps toward building those queries. I can’t confirm anything in the moment but I do know our Partners team is looking at making some improvements to how the Partner API works in the future, so keep an eye on our developer changelog in the meantime which will keep you up to date with any changes to our APIs.
Cheers!
1 Like
Ty @Alan_19 !! Really appreciate your assistance (: I will take a look over the docs you have shared and will update 
Thanks again,
Jonathan.
Hey @Alan_19 , is there a way I can fetch the list of shops which have installed my app or can i check if a given shop has installed my app or not ?
Any help out here will be highly appreciated
1 Like
Hey Alan. I am trying to do the same thing, but I am not getting the “Query” syntax right. Can you help me with the query syntax?
I need to fetch the number of install count from my partner’s dashboard.
Hey @ameyacharya ,
The App.events connection takes a types argument so you can just look for installs and un-installs that way.
The same store could also have uninstalled and re-installed the app multiple times leading to duplicate events so make sure to keep that in mind if you try using the app events:
query appInstallsAndUninstalls {
app(id: "gid://partners/App/
Cheers
1 Like
This is awesome! I am really thankful for that.
Can you further help me with getting another field like App revenue ( earnings) and other possible fields?
Hi @ameyacharya 
I’d recommend reviewing the AppEvent interface here and selecting the types that are most appropriate for your use-case. For revenue, the types with charge in the name is likely most relevant.
Hope that helps!