Extract product details
diffbot.x.extract-productExtracts product name, price, SKU, images, specs and reviews from an e-commerce page
- Price
- $0.001196/callZum Anbieterpreis
- Success rate
- 100 %Last 30 days · 30 calls
- Latency p50
- 7.3 sp95 41 s
- Last verified
- 28.07.2026Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.x.extract-product?url=http%3A%2F%2Fbooks.toscrape.com%2Fcatalogue%2Fa-light-in-the-attic_1000%2Findex.htmlPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
different HOST than base_url — api.diffbot.com, not kg.diffbot.com. The docs' own example URL (a Micro Center SKU) is dead (403, then 404) — retargeted to books.toscrape.com, a stable public scraping sandbox
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
url | Zeichenkette | Erforderlich | target URL to extract | http://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html |
proxy | Zeichenkette | Optional | ||
fields | Zeichenkette | Optional | comma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb | |
scroll | Zeichenkette | Optional | 'slow' or 'fast' — triggers lazy-loaded content | |
timeout | Ganzzahl | Optional | 30000 | |
callback | Zeichenkette | Optional | ||
useProxy | Zeichenkette | Optional | 'default' = datacenter proxy (2 credits/page); 'none' disables | |
proxyAuth | Zeichenkette | Optional | ||
discussion | Boolean | Optional | pass false to disable automatic extraction of product reviews | true |
renderDelay | Ganzzahl | Optional | extra rendering ms before DOM extraction, max 180000 | |
- Abfrageparameter
urlZeichenketteErforderlichtarget URL to extract
Beispiel:
http://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.htmlproxyZeichenketteOptionalfieldsZeichenketteOptionalcomma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb
scrollZeichenketteOptional'slow' or 'fast' — triggers lazy-loaded content
timeoutGanzzahlOptionalBeispiel:
30000callbackZeichenketteOptionaluseProxyZeichenketteOptional'default' = datacenter proxy (2 credits/page); 'none' disables
proxyAuthZeichenketteOptionaldiscussionBooleanOptionalpass false to disable automatic extraction of product reviews
Beispiel:
truerenderDelayGanzzahlOptionalextra rendering ms before DOM extraction, max 180000
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.x.extract-product?url=http%3A%2F%2Fbooks.toscrape.com%2Fcatalogue%2Fa-light-in-the-attic_1000%2Findex.html' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.x.extract-product?url=http%3A%2F%2Fbooks.toscrape.com%2Fcatalogue%2Fa-light-in-the-attic_1000%2Findex.html",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.x.extract-product?url=http%3A%2F%2Fbooks.toscrape.com%2Fcatalogue%2Fa-light-in-the-attic_1000%2Findex.html", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.001196/call einschließlich Servicegebühr abgerechnet.