1

I want to get version code and version number of an app via API from Google Play, but some apps don't have it via google play website. You have to enter via Google Play app and then you can get version number. I suppose it use device id to supply this info because version varies with device sometimes.

I know there are APIs like aptoide or 42matters to get this info but it's not updated in the moment, so it could be not real info.

Could anyone help me?

Thanks.

2

By reverse engineering Google Play Store app some projects has been created that support the unofficial protobuf based API that is also used by Google Play Store app itself. Using this API it is possible to retrieve meta data of an app not installed.

However as the API is designed for being used on a device you will get only get results "filtered" respectively adapted for that device: e.g. if an app is available in different variants for different types of devices (e.g. armv7/arm64 or one for older and one for newer Android versions) you will get only the data of the variant for your device.

See for example the following projects:

Note that Google permanently changes parts of this API, therefore older projects may not (fully) work. Also the supported protobuf data objects is different, depending on the focus of the project. But meta data calls for version code -/name should work on all projects once you managed to sign-in. Authentication got a bit problematic since about one year. Google is very restrictive which clients to accept to use the old authentication API.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.