iOSNoob
iOSNoob

Reputation: 1420

iOS: Is it possible to get iTunes app link from iOS application programmatically?

Is there any way of getting own iTunes app link programmatically from application itself. I am aware of getting app identifier, but unsure of app link. If yes then how can I ?

Upvotes: 2

Views: 623

Answers (2)

Jayprakash Dubey
Jayprakash Dubey

Reputation: 36447

Use this :

https://itunes.apple.com/lookup?id=<appid>

This will return JSON response containing app details such as supported device, app description, user rating etc.

Filter JSON and fetch trackViewUrl key in results JSON

Upvotes: 1

Juraj Antas
Juraj Antas

Reputation: 2712

You may use this:

https://itunes.apple.com/lookup?id=<appid>

<appid> is id of app. Result of this is JSON with info about the app.

Upvotes: 4

Related Questions