RapidAPI logo

IBMWatsonVisualRecognition

FREE
3.6/10
Popularity Score
135ms
Latency
100%
Success Rate

IBMWatsonVisualRecognition API Documentation

Tag images, isolate human faces, and train your own concept.

View API Details
POSTclassifyImage
POSTcreateClassifier
POSTdeleteClassifier
POSTdetectFaces
POSTgetCustomClassifiers
POSTgetSingleClassifier
POSTupdateClassifier
POSTclassifyImage

Upload URLs to identify classes by default.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
versionSTRING
REQUIREDThe release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
apiKeyCREDENTIALS
REQUIREDApi key obtained from IBM
imageUrlSTRING
REQUIREDThe URL of an image (.jpg, or .png).
Optional Parameters
ownersLIST
OPTIONALAn array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.
classifierIdsLIST
OPTIONALAn array of the classifier IDs used to classify the images. 'Default' is the classifier_id of the built-in classifier.
thresholdSTRING
OPTIONALA floating value that specifies the minimum score a class must have to be displayed in the response. Setting the threshold to 0.0 will return all values, regardless of their classification score.
acceptLanguageSELECT
OPTIONALThe 2-letter primary language code as assigned in ISO standard 639. Supported languages are en (English), ar (Arabic), de (German), es (Spanish), it (Italian), ja (Japanese), and ko (Korean).
Code Snippet
unirest.post("https://IBMWatsonVisualRecognitionvolodimir-kudriachenkoV1.p.rapidapi.com/classifyImage")
.header("X-RapidAPI-Host", "IBMWatsonVisualRecognitionvolodimir-kudriachenkoV1.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://IBMWatsonVisualRecognitionvolodimir-kudriachenkoV1.p.rapidapi.com/classifyImage
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://IBMWatsonVisualRecognitionvolodimir-kudriachenkoV1.p.rapidapi.com/classifyImage")
.header("X-RapidAPI-Host", "IBMWatsonVisualRecognitionvolodimir-kudriachenkoV1.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