DiffbotDonnées web et SEOSEO/AEO

Extract article text

diffbot.x.extract-article

Extracts clean article text, author, date, images, tags, sentiment and NLP facts from a news or blog page

Price
$0.001196/callAu prix du fournisseur
Success rate
100 %Last 30 days · 57 calls
Latency p50
3.6 sp95 6.6 s
Last verified
28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.x.extract-article?url=https%3A%2F%2Fwww.technologyreview.com%2F2020%2F09%2F04%2F1008156%2Fknowledge-graph-ai-reads-web-machine-learning-natural-language-processing%2FPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Paramètres

different HOST than base_url — api.diffbot.com, not kg.diffbot.com

ParamètreTypeObligatoireDescriptionExemple
Paramètres de requête
urlchaîneObligatoiretarget URL to extracthttps://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/
proxychaîneFacultatif
fieldschaîneFacultatifcomma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb, quotes
pagingbooléenFacultatifpass false to disable automatic concatenation of multi-page articlestrue
scrollchaîneFacultatif'slow' or 'fast' — triggers lazy-loaded content
maxTagsentierFacultatifmax automatically-generated tags to return10
timeoutentierFacultatif30000
callbackchaîneFacultatif
useProxychaîneFacultatif'default' = datacenter proxy (2 credits/page); 'none' disables
proxyAuthchaîneFacultatif
discussionbooléenFacultatifpass false to disable automatic comment extractiontrue
renderDelayentierFacultatifextra rendering ms before DOM extraction, max 180000
tagConfidencenombreFacultatifminimum tag relevance score 0.0-1.00.5
naturalLanguagechaîneFacultatifrun text through the NLP API: entities, sentiment, summary, facts, etc.
categoryConfidencenombreFacultatifminimum category relevance score 0.0-1.00.5
summaryNumSentencesentierFacultatifmax sentences in the generated summary3
  • Paramètres de requête
  • urlchaîneObligatoire

    target URL to extract

    Exemple : https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/

  • proxychaîneFacultatif
  • fieldschaîneFacultatif

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

  • pagingbooléenFacultatif

    pass false to disable automatic concatenation of multi-page articles

    Exemple : true

  • scrollchaîneFacultatif

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

  • maxTagsentierFacultatif

    max automatically-generated tags to return

    Exemple : 10

  • timeoutentierFacultatif

    Exemple : 30000

  • callbackchaîneFacultatif
  • useProxychaîneFacultatif

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

  • proxyAuthchaîneFacultatif
  • discussionbooléenFacultatif

    pass false to disable automatic comment extraction

    Exemple : true

  • renderDelayentierFacultatif

    extra rendering ms before DOM extraction, max 180000

  • tagConfidencenombreFacultatif

    minimum tag relevance score 0.0-1.0

    Exemple : 0.5

  • naturalLanguagechaîneFacultatif

    run text through the NLP API: entities, sentiment, summary, facts, etc.

  • categoryConfidencenombreFacultatif

    minimum category relevance score 0.0-1.0

    Exemple : 0.5

  • summaryNumSentencesentierFacultatif

    max sentences in the generated summary

    Exemple : 3

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-article?url=https%3A%2F%2Fwww.technologyreview.com%2F2020%2F09%2F04%2F1008156%2Fknowledge-graph-ai-reads-web-machine-learning-natural-language-processing%2F' \
  -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.