Amazon Product
Scrape Amazon products in real time with the Amazon API.
To enable this feature, set the
type=product
parameter.The Amazon Product feature returns a JSON object containing data related to the scraped Amazon product. Among others, you will get an overview of:
search_information
keywords
price
categories
images
attributes
The Amazon Product feature only takes one specific parameter:
Parameter | Type | Description |
---|---|---|
product_id
Required | string |
Your full GET request should then be sent to the following address:
https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=<PRODUCT_ID>
Amazon identifies products by the ASIN (or the Amazon Standard Identifier Number). Our API uses the same identifier to scrape an Amazon product. For convenience, we will refer to this identifier as ID.
To get the ID of an Amazon product, first navigate to its page. From here, there are mainly two options of finding the ID:
The ID of a product can be extracted straight from the URL. The structure of an Amazons product's URL is:
https://<AMAZON_DOMAIN>/<PRODUCT_NAME>/dp/<PRODUCT_ID>
Check the Aditional Information or the Product Information section (depending on which Amazon domain you are searching on):

Find Amazon ID in Product Information

Find Amazon ID in Additional Information
cURL
NodeJS
Python
PHP
Go
Java
.NET
Ruby
curl --request GET --url "https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6"
const http = require("https");
const options = {
"method": "GET",
"hostname": "ecom.webscrapingapi.com",
"port": null,
"path": "/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6",
"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 requests
API_KEY = '<YOUR_API_KEY>'
SCRAPER_URL = 'https://ecom.webscrapingapi.com/v1'
PARAMS = {
"api_key":API_KEY,
"engine":"amazon",
"type":"product",
"product_id":"B09FQ35SW6"
}
response = requests.get(SCRAPER_URL, params=PARAMS)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6")
.asString();
var client = new RestClient("https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://ecom.webscrapingapi.com/v1?engine=amazon&api_key=<YOUR_API_KEY>&type=product&product_id=B09FQ35SW6")
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
{
"search_parameters": {
"amazon_url": "https://www.amazon.com/dp/B09FQ35SW6",
"engine": "amazon",
"amazon_domain": "amazon.com",
"device": "desktop",
"type": "product",
"product_id": "B09FQ35SW6"
},
"search_information": {
"organic_results_state": "Results for exact spelling",
"total_results": null,
"query_displayed": ""
},
"product_results": {
"position": 1,
"product_id": "B09FQ35SW6",
"title": "Micro SD Card 512GB High Speed SD Card Class 10 Memory Card with Adapter for Smartphone Surveillance Camera Tachograph Tablet Computers",
"keywords": [
"Micro",
"Card",
"512GB",
"High",
"Speed",
"Card",
"Class",
"Memory",
"Card",
"with",
"Adapter",
"for",
"Smartphone",
"Surveillance",
"Camera",
"Tachograph",
"Tablet",
"Computers"
],
"subtitle": {
"text": "Brand: HUNYEIZ",
"link": "https://www.amazon.com/s/ref=bl_dp_s_web_0?ie=UTF8&search-alias=aps&field-keywords=HUNYEIZ"
},
"description": "Protection: Waterproof Temperature Proof Shock Proof X-ray Radiation Proof Warm Tips: 1.Our Store offers 100% genuine memory card with 1 years warranty 2.Please use quaity card reader to verify all memory card on PC。 3.Please don't use cheap card reader to test memory card, speed of memory card will be reduced by low quality card reader. 4.Memory card speed is greatly affected by card reader, adapter, USB port etc. Low quality device will 100% slow down card speed.",
"price": "$19.99",
"brand": "HUNYEIZ",
"categories": [
{
"name": "Electronics",
"link": "https://www.amazon.com/electronics-store/b/ref=dp_bc_aui_C_1/139-3506267-5844968?ie=UTF8&node=172282",
"category_id": "172282"
},
{
"name": "Computers & Accessories",
"link": "https://www.amazon.com/computer-pc-hardware-accessories-add-ons/b/ref=dp_bc_aui_C_2/139-3506267-5844968?ie=UTF8&node=541966",
"category_id": "541966"
},
{
"name": "Computer Accessories & Peripherals",
"link": "https://www.amazon.com/Computer-Accessories-Supplies/b/ref=dp_bc_aui_C_3/139-3506267-5844968?ie=UTF8&node=172456",
"category_id": "172456"
},
{
"name": "Memory Cards",
"link": "https://www.amazon.com/Memory-Cards-Computer-Add-Ons-Computers/b/ref=dp_bc_aui_C_4/139-3506267-5844968?ie=UTF8&node=516866",
"category_id": "516866"
},
{
"name": "Micro SD Cards",
"link": "https://www.amazon.com/Micro-SD-Memory-Cards/b/ref=dp_bc_aui_C_5/139-3506267-5844968?ie=UTF8&node=3015433011",
"category_id": "3015433011"
}
],
"search_alias": {
"name": "Electronics",
"value": "electronics"
},
"link": "https://www.amazon.com/Adapter-Smartphone-Surveillance-Tachograph-Computers/dp/B09FQ35SW6",
"feature_bullets": [
"【Micro SD card with SD card adapter】This micro sd card 512GB comes with an SD card adapter, you can put the micro sd card into the adapter, and then you can use it on any SD card interface.",
"【Stable and never worry about data loss】 Micro sd card 512GB includes SD adapter, 512GB SD Card is made of high-quality chips, providing reliable performance, making it ideal for write-intensive applications and ensuring clear recording Evidence HD without dropped frames.",
"【Protection】The HUNYEIZ SD Card 512GB memory card for camera has been tested and can withstand extreme conditions. They are resistant to high temperature, waterproof, shockproof, X-ray and anti-static.",
"【large capacity and high speed】SD Card 512GB fast reading rate, can be viewed and transferred instantly, the maximum capacity of 512GB TF card is 512GB, there is enough space to store thousands of snapshots and hours of full HD Video, which saves you from worrying about insufficient storage space.",
"【3-year warranty】Customer satisfaction is the greatest motivation to pursue higher quality. The product quality is very high. We always strive to provide the best products and services to our valuable customers, and we have an industry-leading one-year warranty. If you have any questions about our products, welcome to contact us!"
],
"main_image": "https://m.media-amazon.com/images/I/51i2zzSuiAS._AC_SL1200_.jpg",
"images": [
{
"link": "https://m.media-amazon.com/images/I/31qhVgQVALS._AC_US1500_.jpg"
},
{
"link": "https://m.media-amazon.com/images/I/31128DynPkS._AC_US1500_.jpg"
},
{
"link": "https://m.media-amazon.com/images/I/518tJ5WG8XS._AC_US1500_.jpg"
},
{
"link": "https://m.media-amazon.com/images/I/51qe2yJ2eNS._AC_US1500_.jpg"
},
{
"link": "https://m.media-amazon.com/images/I/41hE9cNBj+S._AC_US1500_.jpg"
},
{
"link": "https://m.media-amazon.com/images/I/51PYgIp7cGS._AC_US1500_.jpg"
},
{
"link": "https://m.media-amazon.com/images/I/51l+9rMAnIS._AC_US1500_.jpg"
}
],
"has_360_view": true,
"attributes": [
{
"name": "Brand",
"value": "HUNYEIZ"
},
{
"name": "Flash Memory Type",
"value": "Micro SD"
},
{
"name": "Hardware Interface",
"value": "MicroSDXC"
},
{
"name": "Secure Digital Association Speed Class",
"value": "Class 10"
},
{
"name": "Memory Storage Capacity",
"value": "512 GB"
}
],
"dimensions": "4.84 x 2.87 x 0.55 inches",
"weight": "0.634 ounces",
"origin": "China",
"ratings_total": 2,
"rating": 5,
"bestseller_rank": [
{
"rank": 421,
"category": "Micro SD Memory Cards",
"link": "https://www.amazon.com/gp/bestsellers/pc/3015433011/ref=pd_zg_hrsr_pc"
}
],
"first_available": "September 8, 2021"
}
}

Scraping Amazon Products Page
Last modified 7mo ago