DiffbotDados da web e 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/callPelo preço do provedor
Success rate
100%Last 30 days · 57 calls
Latency p50
3.6 sp95 6.6 s
Last verified
28 de jul. de 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
Try onlineEm breveProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

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

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
urlstringObrigatóriotarget URL to extracthttps://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/
proxystringOpcional
fieldsstringOpcionalcomma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb, quotes
pagingbooleanoOpcionalpass false to disable automatic concatenation of multi-page articlestrue
scrollstringOpcional'slow' or 'fast' — triggers lazy-loaded content
maxTagsinteiroOpcionalmax automatically-generated tags to return10
timeoutinteiroOpcional30000
callbackstringOpcional
useProxystringOpcional'default' = datacenter proxy (2 credits/page); 'none' disables
proxyAuthstringOpcional
discussionbooleanoOpcionalpass false to disable automatic comment extractiontrue
renderDelayinteiroOpcionalextra rendering ms before DOM extraction, max 180000
tagConfidencenúmeroOpcionalminimum tag relevance score 0.0-1.00.5
naturalLanguagestringOpcionalrun text through the NLP API: entities, sentiment, summary, facts, etc.
categoryConfidencenúmeroOpcionalminimum category relevance score 0.0-1.00.5
summaryNumSentencesinteiroOpcionalmax sentences in the generated summary3
  • Parâmetros de consulta
  • urlstringObrigatório

    target URL to extract

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

  • proxystringOpcional
  • fieldsstringOpcional

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

  • pagingbooleanoOpcional

    pass false to disable automatic concatenation of multi-page articles

    Exemplo: true

  • scrollstringOpcional

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

  • maxTagsinteiroOpcional

    max automatically-generated tags to return

    Exemplo: 10

  • timeoutinteiroOpcional

    Exemplo: 30000

  • callbackstringOpcional
  • useProxystringOpcional

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

  • proxyAuthstringOpcional
  • discussionbooleanoOpcional

    pass false to disable automatic comment extraction

    Exemplo: true

  • renderDelayinteiroOpcional

    extra rendering ms before DOM extraction, max 180000

  • tagConfidencenúmeroOpcional

    minimum tag relevance score 0.0-1.0

    Exemplo: 0.5

  • naturalLanguagestringOpcional

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

  • categoryConfidencenúmeroOpcional

    minimum category relevance score 0.0-1.0

    Exemplo: 0.5

  • summaryNumSentencesinteiroOpcional

    max sentences in the generated summary

    Exemplo: 3

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no 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"

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.001196/call, incluindo a taxa de serviço.