DiffbotDonnées web et SEOSEO/AEO

Extract product details

diffbot.x.extract-product

Extracts product name, price, SKU, images, specs and reviews from an e-commerce page

Price
$0.001196/callAu prix du fournisseur
Success rate
100 %Last 30 days · 30 calls
Latency p50
7.3 sp95 41 s
Last verified
28 juil. 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
Try onlineBientôtProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Paramètres

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

ParamètreTypeObligatoireDescriptionExemple
Paramètres de requête
urlchaîneObligatoiretarget URL to extracthttp://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html
proxychaîneFacultatif
fieldschaîneFacultatifcomma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb
scrollchaîneFacultatif'slow' or 'fast' — triggers lazy-loaded content
timeoutentierFacultatif30000
callbackchaîneFacultatif
useProxychaîneFacultatif'default' = datacenter proxy (2 credits/page); 'none' disables
proxyAuthchaîneFacultatif
discussionbooléenFacultatifpass false to disable automatic extraction of product reviewstrue
renderDelayentierFacultatifextra rendering ms before DOM extraction, max 180000
  • Paramètres de requête
  • urlchaîneObligatoire

    target URL to extract

    Exemple : http://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html

  • proxychaîneFacultatif
  • fieldschaîneFacultatif

    comma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb

  • scrollchaîneFacultatif

    'slow' or 'fast' — triggers lazy-loaded content

  • timeoutentierFacultatif

    Exemple : 30000

  • callbackchaîneFacultatif
  • useProxychaîneFacultatif

    'default' = datacenter proxy (2 credits/page); 'none' disables

  • proxyAuthchaîneFacultatif
  • discussionbooléenFacultatif

    pass false to disable automatic extraction of product reviews

    Exemple : true

  • renderDelayentierFacultatif

    extra rendering ms before DOM extraction, max 180000

Exemples de code

Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.

Preview
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"

Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.001196/call, frais de service inclus.