Wrapper for Amazon Product Advertising API 5.0 and Amazon Creators API. Current version 6.2.0, supports Python >=3.9. Active development with regular releases.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Incorrect path from older versions or custom modules
from amazon_paapi import AmazonApi
Models must be imported from models submodule
from amazon_paapi.models import AmazonProduct
Minimal usage: set environment variables AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOCIATE_TAG, then run.
from amazon_paapi import AmazonApi
from dotenv import load_dotenv
import os
load_dotenv()
api = AmazonApi(
access_key=os.environ.get('AMAZON_ACCESS_KEY', ''),
secret_key=os.environ.get('AMAZON_SECRET_KEY', ''),
associate_tag=os.environ.get('AMAZON_ASSOCIATE_TAG', ''),
country='US'
)
products = api.search_items(keywords='Python programming')
if products and products.items:
for item in products.items:
print(item.item_info.title.display_value)
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.