API endpoints are provided for performing content analysis on Internet-accessible web pages, posted HTML or text content.
To use the Sentimentics API, you need to do the following:
To use Sentimentics API, you need a private key. If you do not already have an API key, you must first register an API key. This verification process takes just a few moments.
For illustrative purposes we included a demo page where you can test the API.
For more information about how to use the APIs, see the documentation presented in the menu to the left.
http://api.sentimentics.com/textSentiment
A private API key is required. If you do not have an API key, get started here.
The text that needs to be analysed. The text needs to be URI encoded.
At this moment two languages are supported. This parameter is not required because of default value.
Language | Remarks |
---|---|
english | default value |
dutch |
At this moment one domain is supported. This parameter is not required because of default value.
Domain type | Remarks |
---|---|
general | default value |
There are three types of output parameters supported. This parameter is not required because of default value.
Output type | Remarks |
---|---|
xml | default value |
json |
The following response variables are given back after API call.
Response variables | Possibilities | Remarks |
---|---|---|
success | true false |
|
sentimentValue | value ranging from -1 to +1 | -1 most negative possibility 0 is neutral +1 most positive possibility value returns max 2 decimals |
sentimentLabel | extremely negativevery negativemildly negative neutral mildly positive very positive extremely positive |
|
conflictionValue | value ranging from 0 to 1 | |
conflictionLabel | extremely conflictingvery conflictingmildly conflicting no conflicion mildly conflicting very conflicting extremely conflicting |
|
errorMessage | if success == false, error information is generated. |
A summation of the parameter instructions above.
Type of parameter | Possible values | Default value | Remarks |
---|---|---|---|
apikey | <APIKEY> | required parameter | |
textValue | <TEXTVALUE> | required parameter | |
languageValue | english, dutch | english | |
domainValue | general | general | |
outputType | xml, json | xml |
http://api.sentimentics.com/textSentiment?apikey=<APIKEY>&textValue=<TEXTVALUE>&languageValue=<LANGUAGEVALUE>&domainValue=<DOMAINVALUE>&outputType=<OUTPUTTYPE>
http://api.sentimentics.com/keywordInTextSentiment
A private API key is required. If you do not have an API key, get started here.
The text in which specific keywords are present that need to be analysed. The text needs to be URI encoded.
The keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
At this moment two languages are supported. This parameter is not required because of default value.
Language | Remarks |
---|---|
english | default value |
dutch |
At this moment one domain is supported. This parameter is not required because of default value.
Domain type | Remarks |
---|---|
general | default value |
There are three types of output parameters supported. This parameter is not required because of default value.
Output type | Remarks |
---|---|
xml | default value |
json |
The following response variables are given back after API call.
Response variables | Possibilities | Remarks |
---|---|---|
success | true false |
|
keyword1SentimentValue, keyword2SentimentValue, keyword3SentimentValue, keyword4SentimentValue |
value ranging from -1 to +1 | -1 most negative possibility 0 is neutral +1 most positive possibility value returns max 2 decimals |
keyword1SentimentLabel, keyword2SentimentLabel, keyword3SentimentLabel, keyword4SentimentLabel |
extremely negativevery negativemildly negative neutral mildly positive very positive extremely positive |
|
keyword1ConflictionValue, keyword2ConflictionValue, keyword3ConflictionValue, keyword4ConflictionValue, |
value ranging from 0 to 1 | |
keyword1ConflictionLabel, keyword2ConflictionLabel, keyword3ConflictionLabel, keyword4ConflictionLabel, |
extremely conflictingvery conflictingmildly conflicting no conflicion mildly conflicting very conflicting extremely conflicting |
|
errorMessage | if success == false, error information is generated. |
A summation of the parameter instructions above.
Type of parameter | Possible values | Default value | Remarks |
---|---|---|---|
apikey | <APIKEY> | required parameter | |
textValue | <TEXTVALUE> | required parameter | |
keyword1Value | <KEYWORD1VALUE> | required parameter | |
keyword2Value | <KEYWORD2VALUE> | ||
keyword3Value | <KEYWORD3VALUE> | ||
keyword4Value | <KEYWORD4VALUE> | ||
languageValue | english, dutch | english | |
domainValue | general | general | |
outputType | xml, json | xml |
http://api.sentimentics.com/keywordInTextSentiment?apikey=<APIKEY>&textValue=<TEXTVALUE>&keyword1Value=<KEYWORD1VALUE>&keyword2Value=<KEYWORD2VALUE>&keyword3Value=<KEYWORD3VALUE>&keyword4Value=<KEYWORD4VALUE>&languageValue=<LANGUAGEVALUE>&domainValue=<DOMAINVALUE>&outputType=<OUTPUTTYPE>
http://api.sentimentics.com/surveySentiment
A private API key is required. If you do not have an API key, get started here.
The question in which specific elements are present that need to be analysed. The question needs to be URI encoded.
The answer in which specific elements are present that need to be analysed. The question needs to be URI encoded.
At this moment two languages are supported. This parameter is not required because of default value.
Language | Remarks |
---|---|
english | default value |
dutch |
At this moment one domain is supported. This parameter is not required because of default value.
Domain type | Remarks |
---|---|
general | default value |
There are three types of output parameters supported. This parameter is not required because of default value.
Output type | Remarks |
---|---|
xml | default value |
json |
The following response variables are given back after API call.
Response variables | Possibilities | Remarks |
---|---|---|
success | true false |
|
keyword1SentimentValue, keyword2SentimentValue, keyword3SentimentValue, keyword4SentimentValue |
value ranging from -1 to +1 | -1 most negative possibility 0 is neutral +1 most positive possibility value returns max 2 decimals |
keyword1SentimentLabel, keyword2SentimentLabel, keyword3SentimentLabel, keyword4SentimentLabel |
extremely negativevery negativemildly negative neutral mildly positive very positive extremely positive |
|
errorMessage | if success == false, error information is generated. |
A summation of the parameter instructions above.
Type of parameter | Possible values | Default value | Remarks |
---|---|---|---|
apikey | <APIKEY> | required parameter | |
questionValue | <TEXTVALUE> | required parameter | |
answerValue | <TEXTVALUE> | required parameter | |
languageValue | english, dutch | english | |
domainValue | general | general | |
outputType | xml, json | xml |
http://api.sentimentics.com/surveySentiment?apikey=<APIKEY>&questionValue=<QUESTIONVALUE>&answerValue=<ANSWERVALUE>&languageValue=<LANGUAGEVALUE>&domainValue=<DOMAINVALUE>&outputType=<OUTPUTTYPE>
http://api.sentimentics.com/keywordInHTMLSentiment
A private API key is required. If you do not have an API key, get started here.
The HTML content in which specific keywords are present that need to be analysed. The HTML content needs to be URI encoded.
The keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
At this moment two languages are supported. This parameter is not required because of default value.
Language | Remarks |
---|---|
english | default value |
dutch |
At this moment one domain is supported. This parameter is not required because of default value.
Domain type | Remarks |
---|---|
general | default value |
There are three types of output parameters supported. This parameter is not required because of default value.
Output type | Remarks |
---|---|
xml | default value |
json |
The following response variables are given back after API call.
Response variables | Possibilities | Remarks |
---|---|---|
success | true false |
|
keyword1SentimentValue, keyword2SentimentValue, keyword3SentimentValue, keyword4SentimentValue |
value ranging from -1 to +1 | -1 most negative possibility 0 is neutral +1 most positive possibility value returns max 2 decimals |
keyword1SentimentLabel, keyword2SentimentLabel, keyword3SentimentLabel, keyword4SentimentLabel |
extremely negativevery negativemildly negative neutral mildly positive very positive extremely positive |
|
keyword1ConflictionValue, keyword2ConflictionValue, keyword3ConflictionValue, keyword4ConflictionValue, |
value ranging from 0 to 1 | |
keyword1ConflictionLabel, keyword2ConflictionLabel, keyword3ConflictionLabel, keyword4ConflictionLabel, |
extremely conflictingvery conflictingmildly conflicting no conflicion mildly conflicting very conflicting extremely conflicting |
|
errorMessage | if success == false, error information is generated. |
A summation of the parameter instructions above.
Type of parameter | Possible values | Default value | Remarks |
---|---|---|---|
apikey | <APIKEY> | required parameter | |
HTMLValue | <HTMLVALUE> | required parameter | |
keyword1Value | <KEYWORD1VALUE> | required parameter | |
keyword2Value | <KEYWORD2VALUE> | ||
keyword3Value | <KEYWORD3VALUE> | ||
keyword4Value | <KEYWORD4VALUE> | ||
languageValue | english, dutch | english | |
domainValue | general | general | |
outputType | xml, json | xml |
http://api.sentimentics.com/keywordInHTMLSentiment?apikey=<APIKEY>&HTMLValue=<HTMLVALUE>&keyword1Value=<KEYWORD1VALUE>&keyword2Value=<KEYWORD2VALUE>&keyword3Value=<KEYWORD3VALUE>&keyword4Value=<KEYWORD4VALUE>&languageValue=<LANGUAGEVALUE>&domainValue=<DOMAINVALUE>&outputType=<OUTPUTTYPE>
http://api.sentimentics.com/keywordInURLSentiment
A private API key is required. If you do not have an API key, get started here.
The URL string in which specific keywords are present that need to be analysed. The URL string needs to be URI encoded.
The keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
If desired, another keyword or keyphrase that need to be analysed. The keyword / keyphrase needs to be URI encoded.
At this moment two languages are supported. This parameter is not required because of default value.
Language | Remarks |
---|---|
english | default value |
dutch |
At this moment one domain is supported. This parameter is not required because of default value.
Domain type | Remarks |
---|---|
general | default value |
There are three types of output parameters supported. This parameter is not required because of default value.
Output type | Remarks |
---|---|
xml | default value |
json |
The following response variables are given back after API call.
Response variables | Possibilities | Remarks |
---|---|---|
success | true false |
|
keyword1SentimentValue, keyword2SentimentValue, keyword3SentimentValue, keyword4SentimentValue |
value ranging from -1 to +1 | -1 most negative possibility 0 is neutral +1 most positive possibility value returns max 2 decimals |
keyword1SentimentLabel, keyword2SentimentLabel, keyword3SentimentLabel, keyword4SentimentLabel |
extremely negativevery negativemildly negative neutral mildly positive very positive extremely positive |
|
keyword1ConflictionValue, keyword2ConflictionValue, keyword3ConflictionValue, keyword4ConflictionValue, |
value ranging from 0 to 1 | |
keyword1ConflictionLabel, keyword2ConflictionLabel, keyword3ConflictionLabel, keyword4ConflictionLabel, |
extremely conflictingvery conflictingmildly conflicting no conflicion mildly conflicting very conflicting extremely conflicting |
|
errorMessage | if success == false, error information is generated. |
A summation of the parameter instructions above.
Type of parameter | Possible values | Default value | Remarks |
---|---|---|---|
apikey | <APIKEY> | required parameter | |
URLValue | <URLVALUE> | required parameter | |
keyword1Value | <KEYWORD1VALUE> | required parameter | |
keyword2Value | <KEYWORD2VALUE> | ||
keyword3Value | <KEYWORD3VALUE> | ||
keyword4Value | <KEYWORD4VALUE> | ||
languageValue | english, dutch | english | |
domainValue | general | general | |
outputType | xml, json | xml |
http://api.sentimentics.com/keywordInURLSentiment?apikey=<APIKEY>&URLValue=<URLVALUE>&keyword1Value=<KEYWORD1VALUE>&keyword2Value=<KEYWORD2VALUE>&keyword3Value=<KEYWORD3VALUE>&keyword4Value=<KEYWORD4VALUE>&languageValue=<LANGUAGEVALUE>&domainValue=<DOMAINVALUE>&outputType=<OUTPUTTYPE>