PA-API will be deprecated on April 30th, 2026. Please migrate to Creators API. See documentation at https://affiliate-program.amazon.com/creatorsapi/docs/en-us/introduction.
This documentation site is no longer maintained, and contains outdated information. Please refer to Creators API documentation.
Offers is deprecated. Use OffersV2 instead.
Using SDK
Product Advertising API has several parameters/headers which depend on the target Amazon Locale. These common parameters are listed here: Common Request Parameters. The examples provided in this section are for US locale and hence all locale specific values like host, region, etc. are for US locale.
PHP
- Download paapi5-php-sdk-and-samples archive file and unzip it. The project has all the required dependencies already present in the
vendor/folder. - Open the PHP project in any editor of your preference.
- Add your Access Key, Secret Key in sample code snippet files.
- Add valid Partner Tag for the requested marketplace in sample code snippet files.
- Run code sample like SampleGetItemsApi.php using the command
php SampleGetItemsApi.php.
Java
- Download paapi5-java-sdk-and-samples archive and unzip it.
- Open the project in any editor of your preference.
- Add all jars present in dependencies folder to the build path.
- Add your Access Key, Secret Key in sample code snippet files.
- Add valid Partner Tag for the requested marketplace in sample code snippet files.
- Run code samples like SampleGetItemsApi.java.
Node.js
- Download paapi5-nodejs-sdk-and-samples archive and unzip it.
- Run
npm installto install all dependencies in thenode_modules/folder. - Open the Node.js project in any editor of your preference.
- Add your Access Key, Secret Key in sample code snippet files.
- Add valid Partner Tag for the requested marketplace in sample code snippet files.
- Run code sample like sampleGetItemsApi.js using the command
node sampleGetItemsApi.js.
Python
- Download paapi5-python-sdk-and-samples archive and unzip it.
- Install all the dependencies locally using
sudo python setup.py install - Open the project in any editor of your preference.
- Add your Access Key, Secret Key in sample code snippet files.
- Add valid Partner Tag for the requested marketplace in sample code snippet files.
- Run code sample like sample_get_items_api.py using the command
python sample_get_items_api.py.
For more information on SDK and support in other languages, move to the Sending a Request > With SDK section.