Sentiment analysis—also known as opinion mining—is a pivotal advancement in text analysis. At its core, it’s an automated process designed to interpret and quantify the emotional tone conveyed in written content. Far beyond basic positive or negative classifications, this technology identifies nuanced human emotions such as joy, anger, sadness, and surprise.
The Mood Analysis API marks a significant leap forward in natural language processing (NLP) and machine learning. By transforming raw text into emotionally rich insights, it enables users to instantly understand the sentiment behind any piece of content.
What sets this API apart is its remarkable versatility. It can analyze virtually any type of text, making it an essential tool in a globally connected world. Businesses can tap into emotional signals from diverse audiences, gaining valuable perspectives across languages, regions, and cultures.
Another key strength of the Mood Analysis API is its contextual intelligence. Rather than analyzing words in isolation, it considers the full context—enhancing accuracy in cases involving sarcasm, irony, or subtle emotional cues that traditional models might miss.
In short, the Mood Analysis API is a powerful solution for extracting emotional intelligence from text. With its deep sentiment detection, contextual awareness, real-time performance, and wide applicability, it empowers businesses, organizations, and individuals to make more informed, emotionally aware decisions in an increasingly data-driven world.
To use this endpoint you must indicate a text to be analyzed.
Get Analysis - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
[{"label":"joy","score":0.9640277624130249},{"label":"sadness","score":0.012908090837299824},{"label":"disgust","score":0.012041660957038403},{"label":"anger","score":0.004565613344311714},{"label":"neutral","score":0.004244835581630468},{"label":"fear","score":0.0013242153218016028},{"label":"surprise","score":0.0008878417429514229}]
curl --location --request POST 'https://zylalabs.com/api/2912/mood+analysis+api/3038/get+analysis' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '[
{
"id": "1",
"language": "en",
"text": "I love Zyla"
}
]'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API the user must indicate a text to analyze the emotions of this one.
There are different plans suits everyone including a free plan for small amount of requests per day, but it’s rate is limit to prevent abuse of the service.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
The Mood Analysis API is a powerful tool designed to analyze and interpret the emotional tone within textual content, providing insights into the predominant moods expressed in the given text.
The Mood Analysis API returns a JSON object containing the analysis of the input text, categorizing it into seven emotions: anger, disgust, fear, joy, neutral, sadness, and surprise, along with their respective confidence scores.
The key fields in the response data include "label," which indicates the identified emotion, and "score," which represents the confidence level of that emotion on a scale from 0 to 1.
The response data is organized as an array of objects, each containing a "label" for the emotion and a "score" indicating the strength of that emotion in the analyzed text.
The primary parameter for the Mood Analysis API is the "text" parameter, which should contain the textual content you wish to analyze for emotional classification.
Users can customize their requests by providing different text inputs to the "text" parameter, allowing for analysis of various types of content, such as social media posts or customer reviews.
Typical use cases include analyzing social media sentiments, evaluating customer feedback, monitoring brand reputation, optimizing content strategies, and managing crisis communications.
Data accuracy is maintained through continuous training of the underlying machine learning models on diverse datasets, ensuring the API captures a wide range of emotional expressions and language nuances.
Users can utilize the returned data by interpreting the "label" and "score" fields to gauge the emotional tone of the text, enabling informed decisions in areas like marketing strategies and customer engagement.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
1,134ms
Service Level:
100%
Response Time:
3,251ms
Service Level:
100%
Response Time:
1,281ms
Service Level:
100%
Response Time:
575ms
Service Level:
100%
Response Time:
828ms
Service Level:
100%
Response Time:
248ms
Service Level:
100%
Response Time:
73ms
Service Level:
100%
Response Time:
13ms
Service Level:
100%
Response Time:
8,667ms
Service Level:
100%
Response Time:
295ms