@@ -100,6 +100,41 @@ api = AmazonCreatorsApi(ID, SECRET, VERSION, TAG, COUNTRY, throttling=4) # Make
100100api = AmazonCreatorsApi(ID , SECRET , VERSION , TAG , COUNTRY , throttling = 0 ) # No wait time between requests
101101```
102102
103+ ## Async Support
104+
105+ For async/await applications, install with async support:
106+
107+ ``` bash
108+ pip install python-amazon-paapi[async] --upgrade
109+ ```
110+
111+ The async API provides the same methods as the synchronous version:
112+
113+ ``` python
114+ from amazon_creatorsapi.aio import AsyncAmazonCreatorsApi
115+ from amazon_creatorsapi import Country
116+
117+ # Use as async context manager (recommended for connection pooling)
118+ async with AsyncAmazonCreatorsApi(
119+ credential_id = " your_credential_id" ,
120+ credential_secret = " your_credential_secret" ,
121+ version = " 2.2" ,
122+ tag = " your-affiliate-tag" ,
123+ country = Country.US ,
124+ ) as api:
125+ # All methods work identically, just use await
126+ items = await api.get_items([" B01N5IB20Q" ])
127+ results = await api.search_items(keywords = " laptop" )
128+ variations = await api.get_variations(" B01N5IB20Q" )
129+ nodes = await api.get_browse_nodes([" 667049031" ])
130+
131+ # Or use without context manager (creates new connection per request)
132+ api = AsyncAmazonCreatorsApi(ID , SECRET , VERSION , TAG , COUNTRY )
133+ items = await api.get_items([" B01N5IB20Q" ])
134+ ```
135+
136+ > ** Note:** All methods and parameters work identically in async mode. Use ` async with ` for better performance when making multiple requests.
137+
103138## Working with Models
104139
105140All SDK models are re-exported through ` amazon_creatorsapi.models ` for convenient access:
0 commit comments