API

Note, the SentimentView API is not yet available. Please let us know if you're interested in using it, as we're trying to gauge interest in offering the service. The following web service calls are proposed for development via REST API.

Single Sentiment Request

POST http://api.sentimentview.com/v1/classify
Content-type: application/json

{"data": [
  {"text": "short line of text 1"}
]}

Response

{"result": [
  {"sentiment": 1}
]}

The response contains a value of 1 for positive sentiment and 0 for negative sentiment.

Bulk Sentiment Request

POST http://api.sentimentview.com/v1/classify
Content-type: application/json

{"data": [
  {"text": "short line of text 1"},
  {"text": "short line of text 2"},
  {"text": "short line of text 3"}
]}

Response

{"result": [
  {"sentiment": 1},
  {"sentiment": 0},
  {"sentiment": 1}
]}

The response contains an array of values, in the same order as the request, indicating 1 for positive sentiment and 0 for negative sentiment.