RapidAPI logo

Diffbot

FREE
By diffbot
Updated 4 months ago
Data
5.6/10
Popularity Score
19277ms
Latency
94%
Success Rate

Diffbot API Overview

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.

Contact API Provider
star-blueRate
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=15000&fields=text%2Chtml%2Cimages(pixelHeight%2CpixelWidth)&url=http%3A%2F%2Fblog.diffbot.com%2Fdiffbot-api-batch-requests%2F")
.header("X-RapidAPI-Host", "diffbot-diffbot.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication