Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically identify if an app is paid or free

I would like to identify whether an app is paid or free; programmatically, at runtime.

To brief on the context I'm working on, I'm developing an SDK which can be used by various third-party apps. I would like to identify if the app that is using my SDK is paid or free.

Any suggestions to find this?

like image 240
Adithya Avatar asked Jan 14 '23 14:01

Adithya


2 Answers

You should make them configure your SDK writing their app id somewhere, and then your SDK have to check the app store webservices like this

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

There you can check the price

like image 140
jcesarmobile Avatar answered Jan 16 '23 02:01

jcesarmobile


One thing you can do is this

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

and then fetch price & currency values from the returned JSON

like image 29
Desdenova Avatar answered Jan 16 '23 04:01

Desdenova