Automatically extract pricing, product specs, images, and more from an e-commerce product page.
Request
| Authentication | |
|---|---|
token | Cache and insert token into example requests (15d expiry) |
| Query parameters | |
|---|---|
url | Target URL to extract |
fields | Specify optional fields to be returned from any fully-extracted pages (e.g. One of: |
timeout | Sets a value in milliseconds to wait for the retrieval/fetch of content from the requested URL. The default timeout for the third-party response is 30 seconds (30000). |
callback | Use for jsonp requests. Needed for cross-domain ajax. |
proxy | Specify an IP address of a custom proxy that will be used to fetch the target page. (Ex: |
proxyAuth | Used to specify the authentication parameters that will be used with a custom proxy specified in the &proxy parameter. (Ex: |
useProxy | Set to |
discussion | Pass |
Example request
curl --request GET \
--url 'https://api.diffbot.com/v3/product?url=https%3A%2F%2Fwww.microcenter.com%2Fproduct%2F628738%2Fevga-nvidia-geforce-rtx-3090-ftw3-ultra-triple-fan-24gb-gddr6x-pcie-40-graphics-card&token=<DIFFBOT_TOKEN>' \
--header 'Accept: application/json'
Response
| 200Successful API Response | |
|---|---|
request | |
pageUrl | |
api | |
version | |
humanLanguage | |
objects | |
images | |
xpath | |
naturalHeight | |
width | |
diffbotUri | |
title | |
url | |
naturalWidth | |
primary | |
height | |
offerPrice | |
productId | |
diffbotUri | |
upc | |
productOrigin | |
mpn | |
gs1Code | |
multipleProducts | |
availability | |
type | |
title | |
offerPriceDetails | |
symbol | |
amount | |
text | |
specs | |
mfr_part_ | |
upc | |
sku | |
normalizedSpecs | |
sku | |
cleanLiteral | |
humanLanguage | |
pageUrl | |
text | |
category | |
sku | |
brand | |
type | |
title |
{
"request": {
"pageUrl": "https://www.microcenter.com/product/628738/evga-nvidia-geforce-rtx-3090-ftw3-ultra-triple-fan-24gb-gddr6x-pcie-40-graphics-card",
"api": "product",
"version": 3
},
"humanLanguage": "en",
"objects": [
{
"images": [
{
"xpath": "/html[1]/body[1]/main[1]/article[1]/div[3]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/a[1]/img[1]",
"naturalHeight": 200,
"width": 260,
"diffbotUri": "image|3|735477840",
"title": "Product Image View 2",
"url": "https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/628738_177923_01_front_thumbnail.jpg",
"naturalWidth": 200,
"primary": true,
"height": 260
}
],
"offerPrice": "$1,919.99",
"productId": "843368067137",
"diffbotUri": "product|3|-1003574237",
"upc": "843368067137",
"productOrigin": "us",
"mpn": "24G-P5-3987-KR",
"gs1Code": "U.S. and Canada",
"multipleProducts": true,
"availability": true,
"type": "product",
"title": "EVGA NVIDIA GeForce RTX 3090 FTW3 Ultra Triple-Fan 24GB GDDR6X PCIe 4.0 Graphics Card",
"offerPriceDetails": {
"symbol": "$",
"amount": 1919.99,
"text": "$1,919.99"
},
"specs": {
"mfr_part_": "24G-P5-3987-KR",
"upc": "843368067137",
"sku": "177923"
},
"normalizedSpecs": {
"sku": [
{
"cleanLiteral": "843368067137"
}
]
},
"humanLanguage": "en",
"pageUrl": "https://www.microcenter.com/product/628738/evga-nvidia-geforce-rtx-3090-ftw3-ultra-triple-fan-24gb-gddr6x-pcie-40-graphics-card",
"text": "The EVGA GeForce RTX 3090 is colossally powerful in every way imaginable, giving you a whole new tier of performance at 8K resolution. It's powered by the NVIDIA Ampere architecture, which doubles down on ray tracing and AI performance with enhanced RT Cores, Tensor Cores, and new streaming multiprocessors. Combined with the next generation of design, cooling, and overclocking with EVGA Precision X1, the EVGA GeForce RTX 3090 Series redefines the definition of ultimate performance.",
"category": "Computers",
"sku": "177923",
"brand": "EVGA"
}
],
"type": "product",
"title": "EVGA NVIDIA GeForce RTX 3090 FTW3 Ultra Triple-Fan 24GB GDDR6X PCIe 4.0 Graphics Card - Micro Center"
}
| 500Internal Server Error | |
|---|---|
errorCode | |
error |
{
"errorCode": 500,
"error": "Internal Server Error"
}