The find profiles functionality is not currently available in our cloud service. The way you would do this with our on premise API would be something like
var profiles = provider.findProfiles("HardwareModel", modelToSearchFor);
foreach (var profile in profiles)
var match = provider.getMatchForDeviceId(profile.deviceId);
// do something with the match object here.
depending on the language used.
The cloud API does do matching for device IDs. For example, the iPhone 7 Plus has multiple models, so the code above gives the profile ID 68512 for the model A1661 which can be used in the cloud service like https://cloud.51degrees.com/api/v1/
to return all the values for the iPhone 7 Plus device (the values will likely be the same for other 7 Plus model numbers as they are usually just different regions/carriers).
The searching part cannot be done via the cloud API currently, so my suggestion would be to try the on premise API. If for some reason you cannot switch from the cloud API, we are going to be working on the cloud API in the near future so I can keep you updated on what will be included.