Types of links and base URLs
You have two options for providing a deep link to an Amazon client within your app. Each of these options requires a slightly different format for the link’s base URL. The following table describes the two link options and gives the base URL for each for the US-based Amazon website:Link configuration
Both link formats accept parameters to customize the final URL. The following table lists and describes the available parameters for linking to Amazon.| Parameter | Description |
|---|---|
asin= | All apps in the catalog have a unique identifier known as an ASIN. Use this identifier to link directly to an app by its ASIN. The ASIN for an app can be found on its detail page. You can use this parameter by itself. |
p= | Link to the detail page for a specific application ID. For more information, see Set the application ID in the Android developer documentation. You can use this parameter by itself. |
s= | Add a search term. Use URL Encoding for special characters, such as spaces. You can use this parameter by itself. |
initiatePurchaseFlow=true | Open the purchase dialog of another app (without opening the app’s detail page). An advantage of this method is that the user stays within the current app. To use this parameter, you must include the asin or p parameter. |
intent=app_update | Show the latest information for an app on the app detail page, including any pending app update. Can be used to support force updates. To use this parameter, you must include the asin or p parameter. Use this parameter for Fire TV; it’s not required for Fire tablets. |
showAll=1 | Show all apps by the developer associated with the specified application ID or ASIN. To use this parameter, you must include the asin or p parameter. |
| asin= | |
|---|---|
| Amazon Appstore | amzn://apps/android?asin=B004FRX0MY |
| Amazon Retail Web | http://www.amazon.com/gp/mas/dl/android?asin=B004FRX0MY |
| p= | |
| Amazon Appstore | amzn://apps/android?p=com.amazon.mp3 |
| Amazon Retail Web | http://www.amazon.com/gp/mas/dl/android?p=com.amazon.mp3 |
| s= | |
| Amazon Appstore | amzn://apps/android?s=amazon%20mp3 |
| Amazon Retail Web | http://www.amazon.com/gp/mas/dl/android?s=amazon%20mp3 |
| initiatePurchaseFlow=true | |
| Amazon Appstore | amzn://apps/android?initiatePurchaseFlow=true&asin=B004FRX0MY |
| Amazon Retail Web | http://www.amazon.com/gp/mas/dl/android?initiatePurchaseFlow=true&asin=B004FRX0MY |
| intent=app_update | |
| Amazon Appstore | amzn://apps/android?asin=B004FRX0MY&intent=app_update |
| Amazon Retail Web | Not an applicable use case. The parameter is meant to redirect a user from within an app to the Amazon Appstore installed on the device. |
| showAll=1 | |
| Amazon Appstore | amzn://apps/android?p=com.amazon.mp3 &showAll=1 |
| Amazon Retail Web | http://www.amazon.com/gp/mas/dl/android?p=com.amazon.mp3&showAll=1 |

