doxcan

FREEMIUM
By bazzilic
Updated 4 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

doxcan API Documentation

This API allows you to convert an photo of a document into a scan of a document! You can write your own camera scanner app! Improves quality, cleans up, does perspective transformation - all that to produce amazing results! Check it out yourself!

View API Details
POSTUpload image
GET/image/download/{job_id}
GETDownload the processed image
POSTUpload image

Corner marks show how to do a perspective transformation. Each corner mark coord is in range [0.0; 1.0] where (0.0; 0.0) is upper left corner. Basically, after transformation a left-upper mark will move to the left-upper corner, etc. You can head over to http://doxcan.com/ and check out how this works.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
imageBINARY
REQUIRED
Optional Parameters
LUxNUMBER
OPTIONALLeft-upper corner, X coord
LUyNUMBER
OPTIONALLeft-upper corner, Y coord
RUxNUMBER
OPTIONALRight-upper corner, X coord
RUyNUMBER
OPTIONALRight-upper corner, Y coord
LDxNUMBER
OPTIONALLeft-bottom corner, X coord
LDyNUMBER
OPTIONALLeft-bottom corner, Y coord
RDxNUMBER
OPTIONALRight-bottom corner, X coord
RDyNUMBER
OPTIONALRight-bottom corner, Y coord
Code Snippet
unirest.post("https://bazzilic-doxcan-v1.p.rapidapi.com/image/upload")
.header("X-RapidAPI-Host", "bazzilic-doxcan-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://bazzilic-doxcan-v1.p.rapidapi.com/image/upload
Request Method: POST
Response Headers
Response Body

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://bazzilic-doxcan-v1.p.rapidapi.com/image/upload")
.header("X-RapidAPI-Host", "bazzilic-doxcan-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication