POST
/
v1
/
ai
/
sentiment

Body

text
string
required

The text to be analyzed

x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

sentiment
object
sentiment
string

Indicates the sentiment the text. E.g positive or negative

emotion
string

Indicates the type of emotion inferred from the text. Supported emotions:

  • anger
  • fear
  • sadness
  • happiness
  • anxiety
  • disgust
  • embarrassment
  • love
  • surprise
  • shame
  • envy
  • satisfaction
  • self-confidence
  • annoyance
  • boredom
  • hatred
  • compassion
  • guilt
  • loneliness
  • depression
  • pride
  • neutral
score
number

Indicates the sentiment score of the text.

sentences
Array<object>

The list of texts with associated sentiment result