https://api.engagor.com/tools/sentiment

Description

Will try to determine the sentiment of a given string.

Parameters

Param Description Required Default Value
string The string you want to analyze. Pass in a JSON encoded array to analyze up to 50 messages at a time. Yes
language The ISO 639-1 language code of the string you want to analyze. If none given, we will try and detect the language. No

Result

A score integer; 0 is a neutral sentiment, higher is positive, lower is negative.
Endpoint will return indexed array of scores (or null on error) when you're passing in multiple strings.