Skip to content

Sentiment Analysis

To implement the Sentiment Analysis you'll first need to get the API key from the Dashboard and the make a POST request to the API by doing the following.

Making the request

Access the API by making a POST request to the following url

POST - /v1/sentiment

Add the following parameters to start analysing data


Authorization: YOUR_API_KEY_HERE

Request Body - Form Data

"text": "Your text data here"


Following is an example of a request to the Sentiment Analysis API

curl -X POST \ \
  -H 'Authorization: <YOUR_API_KEY>' \
  -F 'text=I'\''m excited to show you the demo'

Sentiment Score scale

There are three sentiment score ranges

  • 0.0 - 4.4 - Negative sentiment: where 0 is very negative and 4.4 is less negative
  • 4.5 - 6.0 - Neutral sentiment: where 5 - 5.5 is most neutral
  • 6.1 - 10.0 - Positive sentiment: where 6.1 is less positive and 10 is very positive