Amazon Parser
Using the ScrapeOps Parser API you can scrape Amazon Pages without having to maintain your own product parsers.
Simply send the HTML of the Amazon Pages to the Parser API endpoint, and receive the data in structured JSON format.
Amazon Parser API Endpoint:
"https://parser.scrapeops.io/v1/amazon"
The Amazon Parser supports the following page types:
Authorisation - API Key
To use the ScrapeOps Parser API, you first need an API key which you can get by signing up for a free account here.
Your API key must be included with every request using the api_key
query parameter otherwise the API will return a 403 Forbidden Access
status code.
Amazon Product Page Parser
To use the Parser API without the ScrapeOps Proxy Aggregator, you first need to retrieve the HTML of the page you want to extract the data from.
For example, here we retrieve the HTML from the following Amazon Product Page with a very simple GET request:
import requests
response = requests.get('https://www.amazon.com/dp/B08WM3LMJF')
if response.status_code == 200:
html = response.text
print(html)
Next, we send this HTML to the ScrapeOps Parser API for data extraction using a POST
request:
import requests
response = requests.get('https://www.amazon.com/dp/B08WM3LMJF')
if response.status_code == 200:
html = response.text
data = {
'url': 'https://www.amazon.com/dp/B08WM3LMJF',
'html': html,
}
response = requests.post(
url='https://parser.scrapeops.io/v1/amazon',
params={'api_key': 'YOUR_API_KEY'},
json=data
)
print(response.json())
The API will return a JSON response with the following data (status
, data
, url
):
{
"data": {
"categories": [
{
"name": "Electronics",
"url": "https://www.amazon.com/electronics-store/b/ref=dp_bc_aui_C_1?ie=UTF8&node=172282"
},
{
"name": "Headphones, Earbuds & Accessories",
"url": "https://www.amazon.com/b/ref=dp_bc_aui_C_2?ie=UTF8&node=24046923011"
},
{
"name": "Headphones & Earbuds",
"url": "https://www.amazon.com/Headphones-Accessories-Supplies/b/ref=dp_bc_aui_C_3?ie=UTF8&node=172541"
},
{
"name": "On-Ear Headphones",
"url": "https://www.amazon.com/On-Ear-Headphones/b/ref=dp_bc_aui_C_4?ie=UTF8&node=12097480011"
}
],
"description": "The JBL Tune 510BT headphones let you stream powerful JBL Pure Bass sound with no strings attached. Easy to use, with up to 40 hours of battery life and speed charge, they are super lightweight and comfortable. Grab them and fill your day with music!",
"feature_bullets": [
"The Tune 510BT wireless headphones feature renowned JBL Pure Bass sound, which can be found in the most famous venues all around the world.Specific uses for product : Personal",
"With Wireless Bluetooth 5.0 Streaming, you can stream wirelessly from your device and even switch between two devices so that you don 't miss a call. Dynamic frequency response range (Hz) 20 Hz – 20 kHz"
...
],
"images": [
{
"images": [
"https://m.media-amazon.com/images/I/31Ae50UocjL._AC_.jpg",
"https://m.media-amazon.com/images/I/417pumnhthL._AC_.jpg",
"https://m.media-amazon.com/images/I/41WxVkVNamL._AC_.jpg",
"https://m.media-amazon.com/images/I/31lkUs2705L._AC_.jpg",
"https://m.media-amazon.com/images/I/41ydatyCquL._AC_.jpg",
"https://m.media-amazon.com/images/I/51RgY2In3-L._AC_.jpg",
"https://m.media-amazon.com/images/I/41kIwqsDs8L._AC_.jpg"
],
"variant": "Black headphones + Speaker, White"
},
{
"images": [
"https://m.media-amazon.com/images/I/31bCPm6G7EL._AC_.jpg",
"https://m.media-amazon.com/images/I/41W7hBXfR2L._AC_.jpg",
"https://m.media-amazon.com/images/I/21AfSg2p9mL._AC_.jpg",
"https://m.media-amazon.com/images/I/31WDLQ34cfL._AC_.jpg",
"https://m.media-amazon.com/images/I/51UOJGYy68L._AC_.jpg",
"https://m.media-amazon.com/images/I/51Rgx4uCnPL._AC_.jpg",
"https://m.media-amazon.com/images/I/518Kse3CkDL._AC_.jpg",
"https://m.media-amazon.com/images/I/31PHZj9qBQL._AC_.jpg"
],
"variant": "White headphones"
}
...
],
"name": "JBL Tune 510BT: Wireless On-Ear Headphones with Purebass Sound - Black",
"price": 29.95,
"price_basis": "List Price: $39.95",
"price_currency": "$",
"price_savings": "-25%",
"price_string": "$29.95",
"product_information": [
{
"label": "Noise Control",
"value": "Active Noise Cancellation"
},
{
"label": "Frequency Response",
"value": "20 KHz"
}
...
],
"product_overview": [
{
"label": "Brand",
"value": "JBL"
},
{
"label": "Color",
"value": "Black"
}
...
],
"rating_average": 4.6,
"recommended_item": {
"image": "https://m.media-amazon.com/images/I/712wyKsNmML._SS100_.jpg",
"name": "Amazon Basics Bluetooth Wireless On Ear Headphones with Microphone, 35 Hour Playtime, Foldable, One Size, Black",
"price": 12,
"price_string": "-12%",
"review_count": 310,
"url": "https://www.amazon.com/dp/B0BVM1PSYN/ref=vp_d_pbcpt2_TIER3_cmlr_lp_B08WM3LMJF_pd?_encoding=UTF8&pf_rd_p=3d765682-9a71-4d59-933c-fe0816ad9baf&pf_rd_r=KKW0SP47NMQTN1N16F97&pd_rd_wg=L9bmt&pd_rd_i=B0BVM1PSYN&pd_rd_w=PqpvQ&content-id=amzn1.sym.3d765682-9a71-4d59-933c-fe0816ad9baf&pd_rd_r=42d41e01-ea0d-4855-a1be-5097a4a2402a&psc=1"
},
"related_products": [
{
"heading": "More from frequently bought brands",
"products": [
{
"image": "https://m.media-amazon.com/images/I/31xaqtCQrsL._AC_UF480,480_SR480,480_.jpg",
"is_prime": true,
"name": "Skullcandy Hesh ANC Over-Ear Noise Cancelling Wireless Headphones with Charging Cable, 22 Hr Battery, Microphone, Works with iPhone Android and Bluetooth Devices - True Black",
"review_count": 874,
"url": "https://www.amazon.com/dp/B0CBLKS51N/ref=sspa_dk_detail_0?psc=1"
},
{
"image": "https://m.media-amazon.com/images/I/31XkN9hfhfL._AC_UF480,480_SR480,480_.jpg",
"is_prime": true,
"name": "JBL Tune 720BT - Wireless Over-Ear Headphones with JBL Pure Bass Sound, Bluetooth 5.3, Up to 76H Battery Life and Speed Charge, Lightweight, Comfortable and Foldable Design (Black)",
"review_count": 612,
"url": "https://www.amazon.com/dp/B0CTBCDD6D/ref=sspa_dk_detail_1?psc=1"
}
...
]
}
],
"review_count": 64031,
"store_name": "JBL Store",
"store_url": "https://www.amazon.com/stores/JBL/page/17575AD5-FBC3-4ACB-8002-79EF7CF1DE1E?ref_=ast_bln&store_ref=bl_ast_dp_brandLogo_sto",
"variations": [
{
"name": "Color",
"value_selected": "Black",
"values": [
{
"current": true,
"image": "https://m.media-amazon.com/images/I/31zCVBXUgHL._SS36_.jpg",
"text": "Black"
},
{
"image": "https://m.media-amazon.com/images/I/31iN3Y8q4nL._SS36_.jpg",
"text": "Blue",
"url": "https://www.amazon.com/dp/B08WM1V5P1/ref=twister_B095J3HLGN?_encoding=UTF8&psc=1"
}
...
]
},
{
"name": "Style",
"value_selected": "headphones",
"values": [
{
"text": "headphones + Clip 3, Gray",
"url": "https://www.amazon.com/dp/B0CTKTRHBV/ref=twister_B095J3HLGN?_encoding=UTF8&psc=1"
},
{
"text": "headphones+ FLIP 5 Speaker, Black",
"url": "https://www.amazon.com/dp/B0CXF83V9Y/ref=twister_B095J3HLGN"
}
...
]
}
],
"videos": [
{
"duration": 17,
"duration_string": "00:17",
"thumbnail": "https://m.media-amazon.com/images/I/513n4TpbHgL.SX522_.jpg",
"title": "JBL Tune 510BT - Product Video",
"url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/dde903d9-f3d3-401e-818d-b849656cf08a/default.jobtemplate.hls.m3u8"
},
{
"duration": 777,
"duration_string": "12:57",
"thumbnail": "https://m.media-amazon.com/images/I/A1WO-92pHZL.SX522_.png",
"title": "COMPARING - JBL Tune 660NC VS JBL Tune 510BT",
"url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/6f6db5a3-401f-4095-bca0-c16107a60dc3/default.jobtemplate.hls.m3u8"
}
...
]
},
"status": "parse_successful",
"url": "https://www.amazon.com/JBL-Tune-510BT-Ear-Headphones/dp/B08WM3LMJF"
}
A full example JSON response can be found here.
Amazon Search Page Parser
To use the Parser API without the ScrapeOps Proxy Aggregator, you first need to retrieve the HTML of the page you want to extract the data from.
For example, here we retrieve the HTML from the following Amazon Search Page with a very simple GET request:
import requests
response = requests.get('https://www.amazon.com/s?k=headphones')
if response.status_code == 200:
html = response.text
print(html)
Next, we send this HTML to the ScrapeOps Parser API for data extraction using a POST
request:
import requests
response = requests.get('https://www.amazon.com/s?k=headphones')
if response.status_code == 200:
html = response.text
data = {
'url': 'https://www.amazon.com/s?k=headphones',
'html': html,
}
response = requests.post(
url='https://parser.scrapeops.io/v1/amazon',
params={'api_key': 'YOUR_API_KEY'},
json=data
)
print(response.json())
The API will return a JSON response with the following data (status
, data
, url
):
{
"data": {
"ads": [
{
"heading": "Customers frequently viewed",
"items": [
{
"asin": "B09NNBBY8F",
"bought_count": "2K+",
"image": "https://m.media-amazon.com/images/I/61-ZTbzw6oL._AC_UL320_.jpg",
"name": "Uliptz Wireless Bluetooth Headphones, 65H Playtime, 6 EQ Sound Modes, HiFi Stereo Over Ear Headphones with Microphone, Foldable Lightweight Bluetooth 5.3 Headphones for Travel/Office/Cellphone/PC",
"price": 16.99,
"price_basis": "$28.99",
"price_currency": "$",
"price_string": "$16.99",
"rating_star": 4.5,
"reviews_count": 9146,
"url": "https://www.amazon.com/Uliptz-Bluetooth-Headphones-Microphone-Lightweight/dp/B09NNBBY8F/ref=sxin_13_pa_sp_search_thematic_sspa"
},
{
"asin": "B09BF64J55",
"bought_count": "8K+",
"image": "https://m.media-amazon.com/images/I/71Hx8b6HGbL._AC_UL320_.jpg",
"name": "KVIDIO [Updated Bluetooth Headphones Over Ear, 65 Hours Playtime Wireless Headphones with Microphone,Foldable Lightweight Headset with Deep Bass,HiFi Stereo Sound for Travel Work Cellphone",
"price": 26.99,
"price_basis": "$28.99",
"price_currency": "$",
"price_string": "$26.99",
"rating_star": 4.4,
"reviews_count": 23936,
"url": "https://www.amazon.com/Bluetooth-Headphones-KVIDIO-Microphone-Lightweight/dp/B09BF64J55/ref=sxin_13_pa_sp_search_thematic_sspa"
}
...
]
}
],
"pagination": [
{
"current": true,
"number": 1,
"url": "https://www.amazon.com/s?k=headphones&page=1&qid=1725100444&ref=sr_pg_1"
},
{
"number": 2,
"url": "https://www.amazon.com/s?k=headphones&page=2&qid=1725100444&ref=sr_pg_2"
}
...
],
"search_results": [
{
"asin": "B07K5214NZ",
"bought_count": "6K+",
"delivery": "FREE delivery Thu, Sep 5 on $35 of items shipped by Amazon Or fastest delivery Tomorrow, Sep 1",
"image": "https://m.media-amazon.com/images/I/51eAhFCg5mL._AC_UY218_.jpg",
"is_amazon_choice": true,
"is_best_seller": false,
"is_limited_deal": false,
"name": "ZIHNIC Bluetooth Headphones Over-Ear, Foldable Wireless and Wired Stereo Headset Micro SD/TF, FM for Cell Phone,PC,Soft Earmuffs &Light Weight for Prolonged Wearing(Rose Gold)",
"position": 1,
"price": 26.99,
"price_basis": "$36.99",
"price_currency": "$",
"price_string": "$26.99",
"rating_star": 4.4,
"reviews_count": 79848,
"url": "https://www.amazon.com/Bluetooth-Over-Ear-Headphones-Foldable-Prolonged/dp/B07K5214NZ/ref=sr_1_1_sspa"
},
{
"asin": "B08XZ57TGM",
"delivery": "FREE delivery Thu, Sep 5 on $35 of items shipped by Amazon Or fastest delivery Tomorrow, Sep 1",
"image": "https://m.media-amazon.com/images/I/61UFUYzh+IL._AC_UY218_.jpg",
"is_amazon_choice": true,
"is_best_seller": false,
"is_limited_deal": false,
"name": "Black Cat Cartoon Headphone Wireles FM Headset Music ereo Headphones Kid 's Headphone Over Ear for The udy(Black cat),YLFS-09BT",
"position": 2,
"price": 18.99,
"price_basis": "$19.99",
"price_currency": "$",
"price_string": "$18.99",
"rating_star": 4,
"reviews_count": 243,
"url": "https://www.amazon.com/Cartoon-Headphone-Wireles-Headset-Headphones/dp/B08XZ57TGM/ref=sr_1_2_sspa"
}
...
]
},
"status": "parse_successful",
"url": "https://www.amazon.com/s?k=headphones"
}
A full example JSON response can be found here.
Amazon Reviews Page Parser
To use the Parser API without the ScrapeOps Proxy Aggregator, you first need to retrieve the HTML of the page you want to extract the data from.
For example, here we retrieve the HTML from the following Amazon Reviews Page with a very simple GET request:
import requests
response = requests.get('https://www.amazon.com/product-reviews/B08WM3LMJF')
if response.status_code == 200:
html = response.text
print(html)
Next, we send this HTML to the ScrapeOps Parser API for data extraction using a POST
request:
import requests
response = requests.get('https://www.amazon.com/product-reviews/B08WM3LMJF')
if response.status_code == 200:
html = response.text
data = {
'url': 'https://www.amazon.com/product-reviews/B08WM3LMJF',
'html': html,
}
response = requests.post(
url='https://parser.scrapeops.io/v1/amazon',
params={'api_key': 'YOUR_API_KEY'},
json=data
)
print(response.json())
The API will return a JSON response with the following data (status
, data
, url
):
{
"data": {
"pagination": [
"https://www.amazon.com/JBL-Tune-510BT-Ear-Headphones/product-reviews/B08WM3LMJF/ref=cm_cr_arp_d_paging_btm_2?ie=UTF8&pageNumber=2"
],
"product": {
"brand": "JBL",
"image": "https://m.media-amazon.com/images/G/01/gno/sprites/nav-sprite-global-1x-reorg-privacy._CB587940754_.png",
"name": "JBL Tune 510BT: Wireless On-Ear Headphones with Purebass Sound - Black",
"url": "https://www.amazon.com/JBL-Tune-510BT-Ear-Headphones/dp/B08WM3LMJF/ref=cm_cr_arp_d_product_top?ie=UTF8",
"variant": "Color: Black Style: headphones"
},
"review_overview": {
"1_star_percent": 0.03,
"1_star_rating": 1923,
"2_star_percent": 0.02,
"2_star_rating": 1282,
"3_star_percent": 0.05,
"3_star_rating": 3206,
"4_star_percent": 0.14,
"4_star_rating": 8977,
"5_star_percent": 0.75,
"5_star_rating": 48096,
"rating_average": 4.6,
"reviews_count": 64128
},
"reviews": [
{
"date": "August 18, 2024",
"helpful": 13,
"is_verified_purchase": true,
"location": "the United States",
"rating": 5,
"text": "13+! These headphones are very high quality! I use them everyday! Very comfy dont pinch ur head and u can adust the head size on it! The sound quality is outstanding! Its worth the price! Their is not cord outlet to put the aux cord in its only bluetooth! I use these on my iphone 4s and it really works well! I highly recommend for 13+!",
"title": "I highly recommend these for teens!",
"url": "https://www.amazon.com/gp/customer-reviews/R2YEY0T2NW345O/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08WM3LMJF",
"user_name": "KatyPerryMEGAFAN",
"user_url": "https://www.amazon.com/gp/profile/amzn1.account.AFCFIF7U7JBTW6O4HIEWW4HDFYDQ/ref=cm_cr_arp_d_gw_btm?ie=UTF8",
"variant": "Color: Black Style: headphones"
},
{
"date": "August 1, 2024",
"helpful": 12,
"is_verified_purchase": true,
"location": "the United States",
"rating": 5,
"text": "This was one of my best purchases. They are super comfortable with great fit (don’t slip off), audio quality and noise cancellation are both great, and the battery life lasts very long, and I love most of all that it has hands-free calling, which allows me to multi-task throughout my day while being able to speak with family and business. Not to mention they are very cute and sleek, especially the pink color. 10/10 recommend these",
"title": "Very cute and good quality!",
"url": "https://www.amazon.com/gp/customer-reviews/R1JWEWHZGHGP4J/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B08WM3LMJF",
"user_name": "Elizabeth",
"user_url": "https://www.amazon.com/gp/profile/amzn1.account.AEZQWPSEFAINMSWYPTL2GO4SRQWQ/ref=cm_cr_arp_d_gw_btm?ie=UTF8",
"variant": "Color: Rose Style: headphones"
}
...
],
"top_critical_review": {
"content": "overall: for the price, good headphones if you are not using them for the mic and/or calls. there’s some connection issues (but that may not happen with every pair, it may just be mine!) i bought these headphones november 2023 and as of today, august 2024, they won’t connect to my phone anymore. the audio still works and it’s a decent audio, but it definitely is not the same as it used to be. the audio was the best for the first 4-5 months of having them. now, they do not have as clear or loud of a sound and the bass is nowhere near as good. they still connect to my laptop, but i’ve tried everything possible and they will not connect to my phone anymore. ever since i got them, ive had random small issues with connections, audio, and the built in mic. i’m gonna make a list of the random things that have happened off and on ever since ive bought these headphones (just cause lists are easier!): - when in a call (specifically when watching someone screen share), the audio will randomly become extremely static and distorted and i can’t understand a single word. i have figured out no way to fix this other than waiting for it to stop. - the mic is just not good at all and never has been good. either no one can hear me or im breaking up. the only way people can hear me is if i take the headphones off and speak directly into the tiny hole where the mic is. - when i’m in a call with someone and trying to watch something in the background, the audio of the video or the music is HORRIBLE. i don’t know how to describe it other than a muffled deep fried distortion (if you know what i mean.) this is possibly normal but i’ve not experienced this with other headphones/earbuds. - the headphones occasionally will say they’re connected to my phone and/or laptop, yet they’ll actually be connected to neither. i’ll turn them on and the blue light will stay solid (indicating it’s connected) and on my laptop and phone it’ll say the headphones are connected via bluetooth, but when i go to play something, it doesn’t play through my headphones. it will either play through my devices’ speakers or play nothing at all. to fix this i turn off my bluetooth and turn off the headphones, then turn both back on and it will usually connect and play correctly - lastly, there have been a few times where i just couldn’t get my headphones to connect to anything at all. i’ve figured out that this only happens when the headphones are around 15-30% charged. on top of this, i will have to say that i feel like the battery life has diminished a LOT since i first bought them. i wanna add that ive done research and tried lots of things and troubleshooted lots to figure out if this was a device issue or headphones issue, and it is indeed a headphones issue. specifically these connection issues have never happened with any of my other bluetooth headphones or earbuds. i DO recommend these if you only need them for music or maybe streaming shows, movies, youtube. but these headphones are not the best option if you are looking for a good mic.",
"date": "August 7, 2024",
"helpful": 1,
"location": "the United States",
"rating": 3,
"title": "good headphones for sound only",
"user_name": "wormyh2o",
"user_url": "https://www.amazon.com/gp/profile/amzn1.account.AFBTDGY75ULHML262H7WIJNVO6ZA/ref=cm_cr_arp_d_gw_rgt?ie=UTF8"
},
"top_positive_review": {
"content": "13+! These headphones are very high quality! I use them everyday! Very comfy dont pinch ur head and u can adust the head size on it! The sound quality is outstanding! Its worth the price! Their is not cord outlet to put the aux cord in its only bluetooth! I use these on my iphone 4s and it really works well! I highly recommend for 13+!",
"date": "August 18, 2024",
"helpful": 13,
"location": "the United States",
"rating": 5,
"title": "I highly recommend these for teens!",
"user_name": "KatyPerryMEGAFAN",
"user_url": "https://www.amazon.com/gp/profile/amzn1.account.AFCFIF7U7JBTW6O4HIEWW4HDFYDQ/ref=cm_cr_arp_d_gw_lft?ie=UTF8"
}
},
"status": "parse_successful",
"url": "https://www.amazon.com/JBL-Tune-510BT-Ear-Headphones/product-reviews/B08WM3LMJF"
}
A full example JSON response can be found here.
Proxy API Integration
The ScrapeOps Parser API is integrated into the ScrapeOps Proxy API Aggregator and can be used for free by using the Auto Extract functionality.
So if you already have a Proxy API Aggregator plan then use the Parser API for no extra charge.
The following example shows you how to use the Parser API via a Python Requests based scraper using the Proxy API Aggregator:
import requests
response = requests.get(
url='https://proxy.scrapeops.io/v1/',
params={
'api_key': 'YOUR_API_KEY',
'url': 'https://www.amazon.com/dp/B08WM3LMJF',
'auto_extract': 'amazon'
}
)
print(response.json())