Programmatically determine if the application is paid or free

I would like to determine if the application is paid or free; programmatically, at runtime.

To talk about the context I'm working on, I am developing an SDK that can be used by various third-party applications. I would like to determine if a paid or free application using my SDK is being paid.

Any suggestions to find this?

+4
source share
3 answers

You need to get them to configure the SDK by writing their app ID somewhere, and then your SDK should check out app store web services like this

https://itunes.apple.com/lookup?id=theAppID 

There you can check the price

+6
source

One thing you can do is

https://itunes.apple.com/lookup?id=YOUR_APP_ID

and then select the price and currency values ​​from the returned JSON

+2
source

There is a way in my mind

Add logic to get the name of the application, which with the help of your SDK also adds some logic to send this name to you through the API or in any other way that you prefer.

Once you get a new name in your server database, you can open the AppStore in iTunes and find the application there, and yes, you will find out if they pay or for free!

I know it tough if your SDK will fly with many applications, but not difficult.

An alternative way, if there is a way to find out if the application is paid or free, you can do the same, send the name of the application and its price data.

+1
source

All Articles