Amazon Product Details and Pricing API
Overview
The Amazon Product Details and Pricing API offers powerful business opportunities by enabling real-time extraction of product details, pricing, ratings, and more from Amazon. By providing a product ASIN as input, businesses can access up-to-date information on products, allowing them to monitor competitors, optimize pricing strategies, analyze market trends, and enhance their e-commerce offerings.
Authentication
Visit our Authentication Docs on learning how to get started on integrating this API in your application.
Endpoint
GET https://get.scrapehero.com/amz/product-details/?x-api-key=xxxxxxxxxxxxxx&asin=B079Y45KTJ&country_code=US
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
asin | string | Yes | Product ASIN |
country_code | string | No | ISO Aplha2 Country Code |
ASIN must be present. API supports country_code's US, UK and CA
Response Format
The API returns data in JSON format. Here's an example of the response structure:
{
"asin": "B098XP1Y38",
"name": "Noctua NH-U12A chromax.Black, 120mm Single-Tower CPU Cooler (Black) For Desktop",
"brand": "Noctua",
"price": "$129.95",
"regular_price": "$139.95",
"total_reviews": "2,239",
"average_rating": 4.9,
"rating_histogram": {
"five_star": "92%",
"four_star": "5%",
"three_star": "2%",
"two_star": "1%",
"one_star": "1%"
},
"seller": "Noctua Cooling Solutions",
"seller_url": "https://www.amazon.com/gp/help/seller/at-a-glance.html/ref=dp_merchant_link?ie=UTF8&seller=A1Z5H6ZGWCMTNX&asin=B098XP1Y38&ref_=dp_merchant_link&isAmazonFulfilled=1",
"availability_status": null,
"availability_quantity": null,
"shipping_charge": null,
"is_prime": true,
"author": null,
"available_book_formats": null,
"is_aplus_page": true,
"small_description": "Proven premium heatsink (more than 100 awards and recommendations from international hardware websites), now available in an all-black design that goes great with many colour schemes and RGB LEDs - Top-tier performance in 120mm size for excellent compatibility: fits most tower cases (158mm height), doesn’t overhang the RAM slots, doesn’t block the PCIe on most ATX & Micro-ATX motherboards - Dual state-of-the-art NF-A12x25 120mm fans with Low-Noise Adaptors and PWM for automatic speed control: full cooling performance under load, whisper quiet at idle! - Includes high-end NT-H1 thermal paste and SecuFirm2 mounting system for easy installation on Intel LGA1851, LGA1700, LGA1200, LGA115x and AMD AM5 & AM4 (offset mounting option for best efficiency) - Renowned Noctua quality backed up by 6-year manufacturer’s warranty, deluxe choice for Intel Core i9, i7, i5, i3 (e.g. 14900K, 14700K, 14600K) and AMD Ryzen (e.g. 9950X, 9900X, 9700X, 9600X)",
"full_description": "The NH-U12A chromax.black is an all-black version of Noctua’s NH-U12A premium-quality quiet CPU cooler. Thanks to the same asymmetrical single-tower heatsink design and state-of-the-art NF-A12x25 PWM fans, it stays true to the NH-U12A’s successful formula of fusing ultimate cooling performance with superb quietness of operation and outstanding RAM, case and PCIe compatibility. At the same time, the chromax.black version with its black fans and black coated heatsink combines these assets with a sleek stealth look. Topped off with the renowned SecuFirm2 multi-socket mounting system and Noctua’s enthusiast-grade NT-H1 thermal compound, the NH-U12A chromax.black is a deluxe choice for customers who seek a highly compatible 120mm heatsink that can rival the performance of 140mm units and looks just as great as it cools.",
"images": [
"https://m.media-amazon.com/images/I/81Ww6xZa1aL._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/81ZXpj5W7KL._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/81sKd4ibSfL._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/81yr2hPRSDL._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/71VhiHAS7+L._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/71qEStdJm0L._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/71uNK1d+f+L._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/71DZtWVynzL._AC_SL1500_.jpg",
"https://m.media-amazon.com/images/I/81PREGMN6pL._AC_SL1500_.jpg"
],
"video_count": 10,
"productCategory": "Electronics > Computers & Accessories > Computer Components > Internal Components > Fans & Cooling > CPU Cooling Fans",
"url": "https://www.amazon.com/-/dp/B098XP1Y38?_encoding=UTF8&th=1&psc=1&pf_rd_i=desktop&ref_=pd_gw_unk",
"attributes": null,
"size": null,
"color": null,
"model": "NH-U12Achromaxblac",
"product_information": {
"Product Dimensions": "4.92\"L x 4.41\"W x 6.22\"H",
"Brand": "Noctua",
"Power Connector Type": "4-Pin",
"Voltage": "12 Volts",
"Cooling Method": "Air",
"Compatible Devices": "Desktop",
"Noise Level": "22.6 dB",
"Material": "Copper (base and heat-pipes), aluminium (cooling fins), soldered joints & nickel plating",
"Maximum Rotational Speed": "2000 RPM",
"Air Flow Capacity": "102.1 Cubic Feet Per Minute",
"UPC": "768645700722",
"Manufacturer": "Noctua",
"Number of Items": "1",
"Item Weight": "2.64 pounds",
"ASIN": "B098XP1Y38",
"Item model number": "NH-U12Achromaxblac",
"Date First Available": "October 11, 2021",
"Language": "English",
"Country of Origin": "Taiwan",
"Amazon Best Sellers Rank": "#48 in Computer CPU Cooling Fans"
},
"parent_asin": "B098XP1Y38",
"variation_asin": [],
"product_variations": {},
"product_condition": "new",
"frequently_bought_together": [
{
"title": "AMD Ryzen 7 7800X3D 8-Core, 16-Thread Desktop Processor",
"link": "https://www.amazon.com/AMD-Ryzen-7800X3D-16-Thread-Processor/dp/B0BTZB7F88/ref=pd_bxgy_d_sccl_1/000-0000000-0000000?pd_rd_w=ZtCTx&content-id=amzn1.sym.3858a394-39a9-4946-90e6-86a3153d2546&pf_rd_p=3858a394-39a9-4946-90e6-86a3153d2546&pf_rd_r=YP2DPAB0M5JC2VVBQRP5&pd_rd_wg=yoGJ6&pd_rd_r=7c18596c-59f6-4a3f-aa80-8fe53dfc203f&pd_rd_i=B0BTZB7F88&psc=1",
"price": "$419.00"
},
{
"title": "Noctua NF-A12x25 PWM chromax.Black.swap, Premium Quiet Fan, 4-Pin (120mm, Black)",
"link": "https://www.amazon.com/Noctua-NF-A12x25-chromax-Black-swap-Premium-Quiet/dp/B09C6DQDNT/ref=pd_bxgy_d_sccl_2/000-0000000-0000000?pd_rd_w=ZtCTx&content-id=amzn1.sym.3858a394-39a9-4946-90e6-86a3153d2546&pf_rd_p=3858a394-39a9-4946-90e6-86a3153d2546&pf_rd_r=YP2DPAB0M5JC2VVBQRP5&pd_rd_wg=yoGJ6&pd_rd_r=7c18596c-59f6-4a3f-aa80-8fe53dfc203f&pd_rd_i=B09C6DQDNT&psc=1",
"price": "$34.95"
}
],
"product_badges": []
}
Response Fields
Field | Type | Description |
---|---|---|
asin | string | asin |
name | string | name |
brand | string | brand name |
price | string | current price |
regular_price | string | regular price |
total_reviews | int | total review count |
average_rating | float | average rating |
rating_histogram | dict | rating histogram |
seller | string | seller |
seller_url | string | seller url |
availability_status | string | availability status |
availability_quantity | string | availability quantity |
shipping_charge | string | shipping charge |
is_prime | bool | is prime |
author | string | author |
available_book_formats | dict | available book formats |
is_aplus_page | string | is_aplus_page |
small_description | string | small description |
full_description | string | full description |
images | list | list of images |
video_count | int | video_count |
productCategory | string | product Category |
url | string | url |
attributes | string | attributes |
size | string | size |
color | string | color |
model | string | model |
product_information | dict | product_information |
parent_asin | string | parent asin |
variation_asin | list | variation asin |
product_variations | dict | product variations |
product_condition | string | product condition |
frequently_bought_together | list | frequently bought together |
product_badges | list | product badges |
Usage Example
Here's an example of how to use the API with Python:
- JavaScript
- Python
- Java
- Ruby
const http = require("https");
const options = {
"method": "GET",
"hostname": "get.scrapehero.com",
"port": null,
"path": "/amz/product-details/?x-api-key=XXXXXXXXXXXXXX&asin=B079Y45KTJ&country_code=US",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
import http.client
conn = http.client.HTTPSConnection("get.scrapehero.com")
conn.request("GET", "/amz/product-details/?x-api-key=XXXXXXXXXXXXXX&asin=B079Y45KTJ&country_code=US")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
HttpResponse<String> response = Unirest.get("https://get.scrapehero.com/amz/product-details/?x-api-key=XXXXXXXXXXXXXX&asin=B079Y45KTJ&country_code=US")
.asString();
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://get.scrapehero.com/amz/product-details/?x-api-key=XXXXXXXXXXXXXX&asin=B079Y45KTJ&country_code=US")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
This API uses 10 data credit per API call. Learn more about data credits.
Rate Limits
Rate limits are based off the plan that you have subscribed to. To learn more about the plan specification vist our Plans page.
Response Codes
Check out the response codes here.
Best Practices
- Use appropriate error handling in your code.
- Implement exponential backoff for rate limiting.
- Cache results when possible to minimize API calls.
Support
If you encounter any issues or have questions, please contact our API support team at cloud-support@scrapehero.com or visit our API documentation at https://app.scrapehero.com/docs/api_intro.