RapidAPI logo

Cloudmersive OCR

FREEMIUM
By cloudmersive
Updated a month ago
5.2/10
Popularity Score
1806ms
Latency
-
Success Rate

Cloudmersive OCR API Documentation

The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.

View API Details
POSTOCR Image to Text
POSTOCR Image to Text

Converts an uploaded image in common formats such as JPEG, PNG into text via Optical Character Recognition.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
imageFileBINARY
OPTIONALImage file to perform OCR on. Common file formats such as PNG, JPEG are supported.
Code Snippet
unirest.post("https://cloudmersive-cloudmersive-ocr-v1.p.rapidapi.com/image/toText")
.header("X-RapidAPI-Host", "cloudmersive-cloudmersive-ocr-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://cloudmersive-cloudmersive-ocr-v1.p.rapidapi.com/image/toText
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://cloudmersive-cloudmersive-ocr-v1.p.rapidapi.com/image/toText")
.header("X-RapidAPI-Host", "cloudmersive-cloudmersive-ocr-v1.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