Skip to content

Commit 6b3a209

Browse files
committed
updated changelog and documentation
1 parent 8620312 commit 6b3a209

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.2.0] - 2026-01-11
9+
10+
### Added
11+
12+
- Support for OffersV2 resources with new model classes ([#141](https://github.com/sergioteula/python-amazon-paapi/pull/141))
13+
814
## [5.1.0] - 2026-01-11
915

1016
### Added

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A simple Python wrapper for the [Amazon Product Advertising API 5.0](https://web
1414
- 🔍 **Product search** by keywords, categories, or browse nodes
1515
- 📦 **Product details** via ASIN or Amazon URL
1616
- 🔄 **Item variations** support (size, color, etc.)
17+
- 💰 **OffersV2 support** for enhanced pricing and offer details
1718
- 🌍 **20+ countries** supported ([full list](https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon_paapi/models/regions.py))
1819
-**Batch requests** to get multiple items without the 10-item limit
1920
- 🛡️ **Built-in throttling** to avoid API rate limits
@@ -40,6 +41,18 @@ print(item.item_info.title.display_value)
4041

4142
## Usage Examples
4243

44+
### Using OffersV2 resources
45+
46+
OffersV2 provides enhanced pricing and offer details. All resources are included by default, so OffersV2 data is available without any additional configuration:
47+
48+
```python
49+
item = amazon.get_items('B01N5IB20Q')[0]
50+
if item.offers_v2 and item.offers_v2.listings:
51+
listing = item.offers_v2.listings[0]
52+
print(listing.price.money.amount) # Price amount
53+
print(listing.merchant_info.name) # Merchant name
54+
```
55+
4356
### Get Multiple Products
4457

4558
```python

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "Sergio Abad"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "5.1.0"
26+
release = "5.2.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

docs/pages/usage-guide.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,18 @@ Throttling value represents the wait time in seconds between API calls, being th
6969
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=4) # Makes 1 request every 4 seconds
7070
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0) # No wait time between requests
7171
```
72+
73+
**Using OffersV2 resources:**
74+
75+
OffersV2 provides enhanced pricing and offer details. All resources are included by default, so OffersV2 data is available without any additional configuration:
76+
77+
```python
78+
items = amazon.get_items('B01N5IB20Q')
79+
80+
# Access OffersV2 data
81+
item = items[0]
82+
if item.offers_v2 and item.offers_v2.listings:
83+
listing = item.offers_v2.listings[0]
84+
print(listing.price.money.amount) # Price amount
85+
print(listing.merchant_info.name) # Merchant name
86+
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-amazon-paapi"
3-
version = "5.1.0"
3+
version = "5.2.0"
44
description = "Amazon Product Advertising API 5.0 wrapper for Python"
55
readme = "README.md"
66
requires-python = ">=3.9"

0 commit comments

Comments
 (0)