Amazon Product Advertising API 5.0 rewrited for Python.
- Multiple platforms supports and includes asyncio
- support
requestsas sync mode - support
httpxas async/sync mode - support
tornadoas async mode - very easy to extend to another platform
- support
- Type hints for every interface
- Support ALL data models for PAAPI to help you coding.
- Object oriented interface for simple usage.
- Get information about a product through its ASIN or URL.
- Get item variations or search for products on Amazon.
- Get browse nodes information.
- Get multiple results at once without the 10 items limitation from Amazon.
- Support for all available countries.
You can install or upgrade the module with:
pip install amazon-paapi-python-sdk --upgrade
# example code use requests as transport in sync mode
# please install requests dependencies first
from amazon_paapi_python_sdk import PaapiClient
from amazon_paapi_python_sdk import UseRequestsTransport
client = PaapiClient(ACCESS_KEY, SECRET_KEY, PARTNER_TAG, transport=UseRequestsTransport())
items = client.get_items(['B01N5IB20Q', 'B01F9G43WU'])
for items in items:
print(item.images.primary.large.url) # primary image url
print(item.offers.listings[0].price.amount) # current price
# example code use httpx as transport in async mode
# please install httpx dependencies first
from amazon_paapi_python_sdk import AsyncPaapiClient
from amazon_paapi_python_sdk import UseHttpxTransport
client = AsyncPaapiClient(ACCESS_KEY, SECRET_KEY, PARTNER_TAG, transport=UseHttpxTransport())
items = await client.get_items(['B01N5IB20Q', 'B01F9G43WU'])
for items in items:
print(item.images.primary.large.url) # primary image url
print(item.offers.listings[0].price.amount) # current price