How to Dynamically Obtain Device Models for App Store Users?

I'm currently pulling device-specific data for my app, and I'm manually listing 150 models like this:

device_models = [ "iPhone1_1", "iPhone1_2", "iPhone2_1", ... "iPad16_6"]

Is there an API endpoint or an automated method to dynamically retrieve a complete list of device models?

I'm specifically looking to connect this with the performance metrics API to monitor launch times per device type. Any suggestions on how to streamline or automate this list would be greatly appreciated. Thanks!

Apple does not publish a complete list of these model codes [1]. However, I’m not sure why that’d help you. You wrote:

I'm manually listing 150 models like this:

Why do you need that list? I mean, if you get a model code that’s not on the list, what are you going to do differently?

I'm specifically looking to connect this with the performance metrics API to monitor launch times per device type.

Right. But in that case you can group reports based on the model code without actually needing to have a complete list of model codes. Right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Although you’ll find plenty of third-party folks who do.

@DTS Engineer The reason I was looking for a full list is because I'm aiming to pull launch time metrics for each specific device model using the deviceType parameter in this endpoint: Get Power and Performance Metrics for an app. For my analysis, having the exact model codes to pass to the deviceType parameter to get performance metrics per model.

How to Dynamically Obtain Device Models for App Store Users?
 
 
Q