Registry / aws / python-amazon-paapi

python-amazon-paapi

JSON →
library6.2.0pypypi✓ verified 34d ago

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.

awshttp-networking
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)
Debug
Known footguns
breakingVersion 6.0.0 deprecated the amazon_paapi module in favor of amazon_creatorsapi for new projects. Old Amazon Product Advertising API 5.0 still works but is deprecated.
breakingExceptions renamed in 5.0.0. For example, NoResultsException was renamed to NoResultsError.
gotchaThe old amazon module (before amazon_paapi) was removed in 5.0.0. Code relying on from amazon import ... will break.
gotchaAsync support requires installing with [async] extra (pip install python-amazon-paapi[async]) and using amazon_creatorsapi.aio subpackage.
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.

Agent activity
13 hits · last 30 days
gptbot
3
ahrefsbot
3
claudebot
2
bingbot
1
mj12bot
1
amazonbot
1
Resources