Sign Up

Log In

Diffbot

FREE
By diffbot
Updated 19 hours ago
Data
6.9/10
Popularity Score
12489ms
Latency
100%
Success Rate

Diffbot API Documentation

Diffbot extracts data from web pages automatically and returns structured JSON. For example, our Article API returns an article's title, author, date and full-text. Use the web as your database!

We use computer vision, machine learning and natural language processing to add structure to just about any web page.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

GETArticle API
GETFrontpage
GETProduct API
GETArticle API

The Article API is used to extract clean article text from news articles, blog posts, and other text-heavy web pages.

Authorization:

You can get a developer token at http://www.diffbot.com/pricing/

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
urlSTRING
REQUIREDURL to extract article from (URLEncoded)
tokenQUERY
REQUIREDDeveloper token -- register for a token at http://www.diffbot.com/pricing
Optional Parameters
timeoutNUMBER
OPTIONALSpecify a value in milliseconds (e.g., &timeout=15000) to override the default API timeout of 5000ms.
pagingBOOLEAN
OPTIONALSend paging=false to disable automatic concatenation of multi-page articles.
fieldsSTRING
OPTIONALSend in a list of comma-separated fieldnames to override default field output in the response.
Request Snippet
unirest.get("https://diffbot-diffbot.p.rapidapi.com/v2/article?timeout=undefined&paging=undefined&fields=undefined&url=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://diffbot-diffbot.p.rapidapi.com/v2/article?timeout=undefined&paging=undefined&fields=undefined&url=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard