RapidAPI logo

Sign Up

Log In

xTractor

FREE
By backend_box
Updated 3 months ago
Machine Learning
2.7/10
Popularity Score
1776ms
Latency
100%
Success Rate

xTractor API Documentation

API to extract text from any media file. Supported formats: PDF, DOC/DOCX, EPUB, CHM, RTF, XLS, HTML, XML etc. You provide file content and it detects the format and extracts text which you get back.

View API Details
POSTExtract
POSTExtract

Extract text from file

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fileBINARY
REQUIRED
Request Snippet
unirest.post("https://pointsdb-tractor-v1.p.rapidapi.com/extract")
.header("X-RapidAPI-Host", "pointsdb-tractor-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.attach("file", fs.createReadStream("undefined"))
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
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.post("https://pointsdb-tractor-v1.p.rapidapi.com/extract")
.header("X-RapidAPI-Host", "pointsdb-tractor-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.attach("file", fs.createReadStream("undefined"))
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication