MetricKit API Documentation

Hi!

I'm desperately looking for the documentation on using MetricKit REST API, and download diagnostics and metrics data on my server for analysis and visualisations.

At the moment, there's very little of documentation on MetricKit, and it's limited to the usage on device.

Please, help me to find the documentation on how to use REST API for it 🙏

There's awesome video from WWDC2020 about it (https://developer.apple.com/wwdc20/10057), but the promised documentation can not be found 😅

Answered by osxd in 682768022

Hi! Want to share what I've found in a week of struggle :)

MetricKit REST API is actually a part of AppStore Connect API, and it's called there "Power and Performance" → https://developer.apple.com/documentation/appstoreconnectapi/power_and_performance_metrics_and_logs

– Most interesting endpoint is general app metrics: → https://developer.apple.com/documentation/appstoreconnectapi/get_power_and_performance_metrics_for_an_app

– Understanding Data seeds of knowledge are planted in another section → iOS documentation: → https://developer.apple.com/documentation/metrickit/

– Know how to actually access REST API → the best description so far is this blog post:

https://www.andyibanez.com/posts/getting-started-app-store-connect-api/

→ ⚠️ you use the Key to generate JWT Tokens, they expire in ca 20 minutes!

Hope that helps to unify the image of what is possible! Still will appreciate any good additions to the knowledge!

Accepted Answer

Hi! Want to share what I've found in a week of struggle :)

MetricKit REST API is actually a part of AppStore Connect API, and it's called there "Power and Performance" → https://developer.apple.com/documentation/appstoreconnectapi/power_and_performance_metrics_and_logs

– Most interesting endpoint is general app metrics: → https://developer.apple.com/documentation/appstoreconnectapi/get_power_and_performance_metrics_for_an_app

– Understanding Data seeds of knowledge are planted in another section → iOS documentation: → https://developer.apple.com/documentation/metrickit/

– Know how to actually access REST API → the best description so far is this blog post:

https://www.andyibanez.com/posts/getting-started-app-store-connect-api/

→ ⚠️ you use the Key to generate JWT Tokens, they expire in ca 20 minutes!

Hope that helps to unify the image of what is possible! Still will appreciate any good additions to the knowledge!

MetricKit API Documentation
 
 
Q