Skip to main content

Sentiment

Understand the sentiment of your audience with our Sentiment Analysis API.

Our Sentiment Analysis API is a powerful tool that uses machine learning and natural language processing to analyze text and identify the underlying sentiment.

Whether you want to gauge public opinion about your brand, track social media trends, or analyze customer feedback, our API can help you accurately measure the sentiment of your audience. With just a few simple inputs, you can receive a detailed analysis of the emotional tone of any text, including positive, negative, or neutral sentiment. Our Sentiment Analysis API is ideal for businesses, marketers, and social media analysts who want to better understand their audience and make data-driven decisions. Try it out today and gain valuable insights into the sentiment of your customers!

Example

Request

Possible tone options: Professional, Formal, Appreciative, Assertive, Awestruck, Bold, Candid, Candid, Cautionary, Confident, Dramatic, Excited, Funny, Inquisitive, Polite, Respectful , Sarcastic, Sympathetic, Urgent, Whimsical

Possible type options: Short, Medium, Long

Possible language options: English, Spanish, Hindi, French, German, Italian, Portuguese, Bengali, Arabic, Russian, Japanese, Chinese, Korean, Dutch, Turkish, Greek, Hebrew, Swedish, Polish, Thai, Urdu, Romanian, Hungarian, Danish, Finnish

curl --location --request POST 'https://api.aitium.ai/v1/text' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"function": "sentiment",
"content": "YOUR_TEXT",
"type": "SELECT_TYPE",
"keywords": "ENTER_KEYWORDS",
"tone": "SELECT_TONE",
"length": "ENTER_MAXIMUM_LENGTH",
"creativity": "good",
"lang": "SELECT_LANGUAGE"
}'

Response

{
"status": "ok",
"data": {
"inputText": "YOUR_INPUT_TEXT",
"outputText": "POSITIVE/NEGATIVE"
}
}