DiffbotWeb & SEO DataSEO/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/callAt provider cost
Success rate
100%Last 30 days · 57 calls
Latency p50
3.6 sp95 6.6 s
Last verified
Jul 28, 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

Parameters

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

ParameterTypeRequiredDescriptionExample
Query parameters
urlstringRequiredtarget URL to extracthttps://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/
proxystringOptional
fieldsstringOptionalcomma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb, quotes
pagingbooleanOptionalpass false to disable automatic concatenation of multi-page articlestrue
scrollstringOptional'slow' or 'fast' — triggers lazy-loaded content
maxTagsintegerOptionalmax automatically-generated tags to return10
timeoutintegerOptional30000
callbackstringOptional
useProxystringOptional'default' = datacenter proxy (2 credits/page); 'none' disables
proxyAuthstringOptional
discussionbooleanOptionalpass false to disable automatic comment extractiontrue
renderDelayintegerOptionalextra rendering ms before DOM extraction, max 180000
tagConfidencenumberOptionalminimum tag relevance score 0.0-1.00.5
naturalLanguagestringOptionalrun text through the NLP API: entities, sentiment, summary, facts, etc.
categoryConfidencenumberOptionalminimum category relevance score 0.0-1.00.5
summaryNumSentencesintegerOptionalmax sentences in the generated summary3
  • Query parameters
  • urlstringRequired

    target URL to extract

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

  • proxystringOptional
  • fieldsstringOptional

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

  • pagingbooleanOptional

    pass false to disable automatic concatenation of multi-page articles

    Example: true

  • scrollstringOptional

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

  • maxTagsintegerOptional

    max automatically-generated tags to return

    Example: 10

  • timeoutintegerOptional

    Example: 30000

  • callbackstringOptional
  • useProxystringOptional

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

  • proxyAuthstringOptional
  • discussionbooleanOptional

    pass false to disable automatic comment extraction

    Example: true

  • renderDelayintegerOptional

    extra rendering ms before DOM extraction, max 180000

  • tagConfidencenumberOptional

    minimum tag relevance score 0.0-1.0

    Example: 0.5

  • naturalLanguagestringOptional

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

  • categoryConfidencenumberOptional

    minimum category relevance score 0.0-1.0

    Example: 0.5

  • summaryNumSentencesintegerOptional

    max sentences in the generated summary

    Example: 3

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the 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"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001196/call, including the service fee.