Unlock Amazon Insights: Python Automation for Product Review Analysis
In today's dynamic e-commerce landscape, understanding customer sentiment is crucial for staying ahead. Amazon product reviews provide a goldmine of insights, but manually sifting through them is time-consuming and inefficient. Python automation, powered by SellerMagnet's enterprise-grade Amazon data API, offers a scalable solution for in-depth product review analysis, enabling businesses to make data-driven decisions and gain a competitive edge.
Why Automate Amazon Product Review Analysis?
For Amazon businesses and market analysts, automation delivers significant benefits:
- Competitive Analysis: Monitor competitor products, identify their strengths and weaknesses, and refine your product strategy.
- Inventory Management: Understand which product features resonate with customers and adjust inventory based on real-time feedback.
- Market Research: Identify emerging trends and unmet customer needs to develop innovative products and services.
Leveraging SellerMagnet's API for Review Analysis
SellerMagnet’s Amazon data API provides a suite of endpoints tailored for extracting and analyzing Amazon product data. Here’s how you can use it to automate your review analysis process:
1. Gathering Product Data with the Amazon Product Statistics Endpoint
The Amazon Product Statistics endpoint allows you to retrieve essential product information, including review counts and sales rank. This is your starting point for identifying products with a high volume of reviews for deeper analysis.
Endpoint: /amazon-product-statistics
Method: GET
Parameters:
asin
(required): Product ASIN (e.g., "B08N5WRWNW")marketplaceId
(required): Marketplace ID (e.g., "A1PA6795UKMFR9")api_key
(required): Your API keygraphs
(optional): Generate visually graphs for history data
Code Example:
curl --location --request GET 'https://sellermagnet-api.com/amazon-product-statistics?asin=B08N5WRWNW&marketplaceId=A1PA6795UKMFR9&api_key=YOUR_API_KEY'
Response Example:
{
"success": true,
"data": {
"asin": "B0CLTBHXWQ",
"productTitle": "Playstation 5 Console Edizione Digital Slim",
"buyBoxPrice": 41800,
"buyBoxFulfillment": "FBM",
"buyBoxSellerIdHistory": [
[
"2025-06-14 17:08:00",
"A2I59UVTUWUFH0"
]
],
"categoryTree": [
{
"catId": 412603031,
"name": "Videogiochi"
},
{
"catId": 20904349031,
"name": "PlayStation 5"
},
{
"catId": 20904364031,
"name": "Console"
}
],
"graphs": {
"amazonAsSellerPriceHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913774/B0CLTBHXWQ_amazon_price_1749913773.png",
"lowestFBAPriceHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913776/B0CLTBHXWQ_fba_price_1749913773.png",
"lowestFBMPriceHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913775/B0CLTBHXWQ_fbm_price_1749913773.png",
"monthlySoldHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913778/B0CLTBHXWQ_monthly_sold_1749913773.png",
"productRatingHistory": "https://sellermagnet-api-webspace.s3.eu-central-1.amazonaws.com/amazon/api/charts/B0CLTBHXWQ/1749913777/B0CLTBHXWQ_rating_1749913773.png"
},
"listedSince": "2023-12-30 01:00:00",
"lowestFBAPrice": 44999,
"lowestFBMPrice": 41700,
"marketplaceId": "APJ6JRA9NG5V4",
"marketplaceNewPriceHistory": [
[
"2025-06-14",
41700
]
],
"offers": {
"A11IL2PNWYJU7H": {
"isFBA": true,
"lastUpdated": "2025-06-14 17:08:00",
"priceHistory": [
[
"2025-06-14 06:22:00",
44999,
0
]
],
"stockHistory": [
[
"2025-05-29 11:32:00",
1
]
]
},
"A12FLY25DT7QO0": {
"isFBA": false,
"lastUpdated": "2025-06-14 17:08:00",
"priceHistory": [
[
"2025-06-09 15:32:00",
41800,
0
]
],
"stockHistory": [
[
"2025-06-14 13:34:00",
49
]
]
},
"A18KSDUE00UP6J": {
"isFBA": false,
"lastUpdated": "2025-06-14 17:08:00",
"priceHistory": [
[
"2025-05-29 11:32:00",
42890,
0
]
],
"stockHistory": [
[
"2025-05-30 18:30:00",
3
]
]
}
},
"productReviewAverage": 4.7,
"productTotalReviews": 3129,
"rootCategory": {
"id": 412603031,
"name": "Videogiochi"
},
"stats": {
"amazonAsSellerPriceHistory": [
[
"2025-06-14",
44999
]
],
"buyBoxPriceHistory": [
[
"2025-06-13",
41700
]
],
"monthlySoldHistory": [
[
"2025-06",
1000
]
],
"productRatingCountHistory": [
[
"2025-06-14 15:28:00",
3129
]
],
"productRatingHistory": [
[
"2025-02-02 01:30:00",
4.7
]
],
"salesRankHistory": [
[
"2025-06-14 01:58:00",
15
]
]
}
}
}
2. Utilizing the Amazon Product Lookup Endpoint
For a deeper dive into product details, the Amazon Product Lookup endpoint provides comprehensive information, including descriptions, bullet points, and customer reviews.
Endpoint: /amazon-product-lookup
Method: GET
Parameters:
asin
(required): Product ASIN (e.g., 'B08N5WRWNW')marketplaceId
(required): Marketplace ID (e.g., 'A1PA6795UKMFR9')api_key
(required): Your API key
Code Example:
curl --location --request GET 'https://sellermagnet-api.com/amazon-product-lookup?asin=B08N5WRWNW&marketplaceId=A1PA6795UKMFR9&api_key=YOUR_API_KEY'
Response Example:
{
"data": {
"productInfo": {
"additionalDetails": {
"ASIN": "B0CL61F39H",
"Batteries": "1 Lithium Ion batteries required. (included)",
"Best Sellers Rank": "Nr. 31 in Video Games Nr. 1 in PlayStation 5 Consoles",
"Customer Rating": "4.7 out of 5 stars",
"Date First Available": "December 10, 2023",
"Item Weight": "10.6 pounds",
"Item model number": "CFI-2015",
"Manufacturer": "Sony",
"Number of Reviews": "7,092 ratings",
"Product Dimensions": "14 x 17 x 7 inches; 10.6 Pounds",
"Release date": "December 10, 2023",
"Type of item": "Video Game"
},
"asin": "B0CL61F39H",
"bestsellerRanks": {
"main_category": {
"name": "Video Games",
"rank": 31
},
"subcategory": {
"name": "PlayStation",
"rank": 1
}
},
"bulletPoints": [
"Model Number CFI-2000",
"Includes DualSense Wireless Controller, 1TB SSD, Disc Drive, 2 Horizontal Stand Feet, HDMI Cable, AC power cord, USB cable, printed materials, ASTRO\u2019s PLAYROOM (Pre-installed game)",
"Vertical Stand sold separately"
],
"buyBoxInfo": {
"currencyCode": "USD",
"currencyName": "United States Dollar",
"currencySymbol": "$",
"price": 444.99,
"sellerId": "A3853PJW50SJG8"
},
"categories": {
"bestsellerCategory": [
{
"id": "20972781011",
"index": 1,
"name": "PlayStation 5",
"url": "https://www.amazon.com/b/ref=dp_bc_2?ie=UTF8&node=20972781011"
},
{
"id": "20972796011",
"index": 2,
"name": "Consoles",
"url": "https://www.amazon.com/b/ref=dp_bc_3?ie=UTF8&node=20972796011"
}
],
"rootCategory": {
"id": "468642",
"name": "Video Games",
"url": "https://www.amazon.com/computer-video-games-hardware-accessories/b/ref=dp_bc_1?ie=UTF8&node=468642"
}
},
"description": [
"Model Number CFI-2000",
"Includes DualSense Wireless Controller, 1TB SSD, Disc Drive, 2 Horizontal Stand Feet, HDMI Cable, AC power cord, USB cable, printed materials, ASTRO\u2019s PLAYROOM (Pre-installed game)",
"Vertical Stand sold separately",
"The PS5 console unleashes new gaming possibilities that you never anticipated. Experience lightning fast loading with an ultra-high speed SSD, deeper immersion with support for haptic feedback, adaptive triggers, and 3D Audio*, and an all-new generation of incredible PlayStation games. Lightning Speed - Harness the power of a custom CPU, GPU, and SSD with Integrated I/O that rewrite the rules of what a PlayStation console can do. Stunning Games - Marvel at incredible graphics and experience new PS5 features. Play a back catalog of supported PS4 games. Breathtaking Immersion - Discover a deeper gaming experience with support for haptic feedback, adaptive triggers, and 3D Audio technology. Vertical stand sold separately. *3D audio via built-in TV speakers or analog/USB stereo headphones. Set up and latest system software update required."
],
"details": {
"ASIN": "B0CL61F39H",
"Batteries": "1 Lithium Ion batteries required. (included)",
"Date First Available": "December 10, 2023",
"Item Weight": "10.6 pounds",
"Item model number": "CFI-2015",
"Manufacturer": "Sony",
"Platform": "PlayStation 5",
"Product Dimensions": "14 x 17 x 7 inches; 10.6 Pounds",
"Release date": "December 10, 2023",
"Type of item": "Video Game"
},
"hasAPlusContent": true,
"images": [
"https://m.media-amazon.com/images/I/41ECK5cY-2L._SL1000_.jpg",
"https://m.media-amazon.com/images/I/41srF-iY93L._SL1000_.jpg",
"https://m.media-amazon.com/images/I/41tVr19I3zL._SL1000_.jpg",
"https://m.media-amazon.com/images/I/41HMaO9jO3L._SL1000_.jpg",
"https://m.media-amazon.com/images/I/61e8hPmeoYL._SL1000_.jpg",
"https://m.media-amazon.com/images/I/61Gj1Kc5R5L._SL1000_.jpg",
"https://m.media-amazon.com/images/I/61r6PutKGwL._SL1000_.jpg",
"https://m.media-amazon.com/images/I/717Id5h1fhL._SL1000_.jpg"
],
"link": "https://www.amazon.com/dp/B0CL61F39H",
"listedSinceDate": "2023-12-10",
"mainImage": "https://m.media-amazon.com/images/I/31kTNmpm6vL.jpg",
"marketplaceId": "ATVPDKIKX0DER",
"reviews": {
"averageRating": 4.7,
"reviewSummary": "4.7 out of 5 stars",
"totalReviews": 7092
},
"title": "PlayStation\u00ae5 console (slim)",
"variations": [
{
"asin": "B0F6968Y5G",
"attributes": {
"Pattern Name": "PS5 w/ Black Ops Bundle",
"Style": "PlayStation\u00ae5 Digital Edition (slim)"
}
},
{
"asin": "B0CL5KNB9M",
"attributes": {
"Pattern Name": "PS5 Only",
"Style": "PlayStation\u00ae5 Digital Edition (slim)"
}
},
{
"asin": "B0CL61F39H",
"attributes": {
"Pattern Name": "PS5 Only",
"Style": "PlayStation\u00ae5 console (slim)"
}
},
{
"asin": "B0F691TJTP",
"attributes": {
"Pattern Name": "PS5 w/ Black Ops Bundle",
"Style": "PlayStation\u00ae5 console (slim)"
}
},
{
"asin": "B0FD54CGQ8",
"attributes": {
"Pattern Name": "PS5 w/ $100 PlayStation Store GC",
"Style": "PlayStation\u00ae5 Digital Edition (slim)"
}
},
{
"asin": "B0FD4WGVH5",
"attributes": {
"Pattern Name": "PS5 w/ $100 PlayStation Store GC",
"Style": "PlayStation\u00ae5 console (slim)"
}
}
],
"videos": [
"https://m.media-amazon.com/S/vse-vms-transcoding-artifact-us-east-1-prod/8af0ddf1-55f5-4e71-9463-39602c3edbae/default.jobtemplate.hls.m3u8",
"https://m.media-amazon.com/S/vse-vms-transcoding-artifact-us-east-1-prod/50938d5c-2a9b-427a-b766-21b7cd63502e/default.jobtemplate.hls.m3u8"
]
}
},
"success": true
}
3. Gaining Insights from Seller Reviews Using the Amazon Seller Review Endpoint
The Amazon Seller Review endpoint enables you to gather feedback directed at specific sellers, which is essential for understanding the broader context influencing customer satisfaction. This insight helps in distinguishing between product-specific complaints and seller-related concerns.
Endpoint: /amazon-seller-review
Method: GET
Parameters:
sellerId
(required): Seller ID (e.g., "A1B2C3D4E5F6G7")marketplaceId
(required): Marketplace ID (e.g., "A1PA6795UKMFR9")api_key
(required): Your API key
Code Example:
curl --location --request GET 'https://sellermagnet-api.com/amazon-seller-review?sellerId=A1CWSGXIR635I6&marketplaceId=ATVPDKIKX0DER&api_key=YOUR_API_KEY'
Response Example:
{
"data": {
"marketplace": {
"ATVPDKIKX0DER": {
"last5Reviews": [
{
"dateRated": "By gary kraus on June 5, 2025.",
"reviewText": "great",
"starRating": "5 out of 5 stars"
},
{
"dateRated": "By Amazon Customer on June 5, 2025.",
"reviewText": "Ok",
"starRating": "5 out of 5 stars"
},
{
"dateRated": "By Graciela Casta\u00f1eda on May 21, 2025.",
"reviewText": "Excelente",
"starRating": "5 out of 5 stars"
}
],
"sellerFeedback": {
"30": {
"rating": "3.3",
"reviewsCount": "7"
},
"90": {
"rating": "3.6",
"reviewsCount": "30"
},
"365": {
"rating": "3.9",
"reviewsCount": "114"
},
"lifetime": {
"rating": "4.5",
"reviewsCount": "1,535"
}
}
}
},
"sellerId": "A1CWSGXIR635I6"
},
"success": true
}
Python Code Snippet for Automated Review Analysis
Here's a sample Python code snippet to automate the process of fetching product review data using SellerMagnet's API:
import requests
def get_product_reviews(asin, marketplace_id, api_key):
url = f"https://sellermagnet-api.com/amazon-product-statistics?asin={asin}&marketplaceId={marketplace_id}&api_key={api_key}"
response = requests.get(url)
if response.status_code == 200:
data = response.json()
if data['success']:
# Process the review data here
print(f"Total Reviews: {data['data']['productTotalReviews']}")
print(f"Average Rating: {data['data']['productReviewAverage']}")
else:
print("Error fetching data:", data.get('errors'))
else:
print("Request failed with status code:", response.status_code)
# Example usage
asin = "B08N5WRWNW" # Replace with the ASIN of the product you want to analyze
marketplace_id = "A1PA6795UKMFR9" # Replace with the appropriate Marketplace ID
api_key = "YOUR_API_KEY" # Replace with your SellerMagnet API key
get_product_reviews(asin, marketplace_id, api_key)
Advanced Analysis Techniques
Once you've gathered the review data, you can perform advanced analysis using Python libraries like:
- NLTK (Natural Language Toolkit): For sentiment analysis, topic modeling, and keyword extraction.
- spaCy: For advanced natural language processing tasks, including entity recognition and dependency parsing.
- TextBlob: For simple sentiment analysis and text processing.
Other Valuable SellerMagnet API Endpoints
Explore other SellerMagnet API endpoints for a comprehensive Amazon data strategy:
- Amazon Product Offers: Track pricing and seller information.
- Amazon Bestsellers: Identify top-selling products in any category.
- Amazon ASIN/ISBN/EAN Converter: Convert product identifiers for comprehensive data management.
- Amazon Product Estimate Sales: Estimate product sales volume.
Conclusion
Automating Amazon product review analysis with Python and SellerMagnet's API empowers businesses to gain actionable insights, improve product offerings, and stay competitive in the ever-evolving e-commerce market. By leveraging the power of data, you can transform customer feedback into a strategic asset and drive business growth. Try SellerMagnet for Free today!