RapidAPI logo

GoogleCloudVision

FREE
7.8/10
Popularity Score
214ms
Latency
100%
Success Rate

GoogleCloudVision API Documentation

Detect faces, labels, logos, text and more in images.

View API Details
POSTbatchPictureDetections
POSTbatchTypeDetections
POSTdetectExplicitContent
POSTdetectFaces
POSTdetectImageProperties
POSTdetectLabels
POSTdetectLandmarks
POSTdetectLogos
POSTdetectText
POSTbatchPictureDetections

Detects 1 property for several images

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
imagesLIST
REQUIREDSeveral images for analysis.
apiKeyCREDENTIALS
REQUIREDThe api key obtained from Google Developers Console.
typeSELECT
REQUIREDOne type of analysis. Possible values: faces|labels|landmarks|text|logos|imageproperties|explicitcontent.
Optional Parameters
languageHintsLIST
OPTIONALList of languages to use for text detection. Applied only if 'text' type chosen
minCoordinatesMAP
OPTIONALMinimal latitude and longitude coma separated in degrees.
maxResultsNUMBER
OPTIONALMaximum results to return (same for all requested pictures).
maxCoordinatesMAP
OPTIONALMaximal latitude and longitude coma separated in degrees.
Code Snippet
unirest.post("https://GoogleCloudVisionstefan-skliarovV1.p.rapidapi.com/batchPictureDetections")
.header("X-RapidAPI-Host", "GoogleCloudVisionstefan-skliarovV1.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://GoogleCloudVisionstefan-skliarovV1.p.rapidapi.com/batchPictureDetections
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://GoogleCloudVisionstefan-skliarovV1.p.rapidapi.com/batchPictureDetections")
.header("X-RapidAPI-Host", "GoogleCloudVisionstefan-skliarovV1.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