IBMWatsonPersonalityInsights

FREE
By dimas
Updated 4 months ago
Text Analysis
1.4/10
Popularity Score
220ms
Latency
100%
Success Rate

IBMWatsonPersonalityInsights API Documentation

Extract a range of personality attributes from text.

View API Details
POSTgetProfileByHtml
POSTgetProfileByJson
POSTgetProfileByPlainText
POSTgetProfileByHtml

Generates a personality profile for the author of the input html. The service accepts a maximum of 20 MB of input content. It can analyze text in Arabic, English, Japanese, or Spanish and return its results in a variety of languages.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
passwordCREDENTIALS
REQUIREDPassword obtained from IBM Bluemix.
htmlSTRING
REQUIREDHtml body. A maximum of 20 MB of content to be analyzed.
usernameCREDENTIALS
REQUIREDUsername obtained from IBM Bluemix.
versionSTRING
REQUIREDThe requested version of the response format as a date in the form YYYY-MM-DD; for example, specify 2016-10-20 for October 20, 2016. The parameter allows the service to update its response format for new versions without breaking existing clients.
Optional Parameters
consumptionPreferencesSELECT
OPTIONALIndicates whether consumption preferences are to be returned with the results. By default (false), they are not.
responseLanguageSELECT
OPTIONALThe desired language of the response: `ar` (Arabic); `de` (German); `en` (English, the default); `es` (Spanish); `fr` (French); `it` (Italian); `ja` (Japanese); `ko` (Korean); `pt-br` (Brazilian Portuguese); `zh-cn` (Simplified Chinese); `zh-tw` (Traditional Chinese)
languageSELECT
OPTIONALThe language of the input html for the request:`ar` (Arabic), `en` (English, the default), `es` (Spanish), `ja` (Japanese)
rawScoresSELECT
OPTIONALIndicates whether a raw score in addition to a normalized percentile is to be returned for each characteristic; raw scores are not compared with a sample population. By default (false), only normalized percentiles are returned.
Code Snippet
unirest.post("https://IBMWatsonPersonalityInsightsdimasV1.p.rapidapi.com/getProfileByHtml")
.header("X-RapidAPI-Host", "IBMWatsonPersonalityInsightsdimasV1.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://IBMWatsonPersonalityInsightsdimasV1.p.rapidapi.com/getProfileByHtml
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://IBMWatsonPersonalityInsightsdimasV1.p.rapidapi.com/getProfileByHtml")
.header("X-RapidAPI-Host", "IBMWatsonPersonalityInsightsdimasV1.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