The Retrieve Sentiment Data API automatically identifies the sentiment of a text, classifying it as positive or negative. In addition to classification, the API also provides a numerical score indicating the intensity of the detected sentiment, allowing for a more in-depth and nuanced analysis of emotional content.
Its operation is simple: a text string is sent as input, and the API returns a JSON structure with the analyzed text, the detected sentiment (“POSITIVE” or “NEGATIVE”), and a score ranging from -1 to 1. A score close to -1 reflects a highly negative emotion, while a value close to 1 indicates a strongly positive sentiment. For example, the text “I hate it” returns a “NEGATIVE” sentiment with a score of -0.556.
This API is ideal for a wide range of applications such as product review analysis, social media monitoring, customer service, surveys, user-generated content analysis, and more. It can be easily integrated into CRM systems, marketing dashboards, brand monitoring tools, support bots, or any platform that processes natural language.
{"score": 0.639, "text": "i love it", "sentiment": "POSITIVE"}
curl --location --request GET 'https://pr197-testing.zylalabs.com/api/8554/retrieve+sentiment+data+api/14992/sentiment+analyzer?text=i love it' --header 'Authorization: Bearer YOUR_API_KEY'
| 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.
The Retrieve Sentiment Data API returns a JSON structure containing the analyzed text, the detected sentiment (either "POSITIVE" or "NEGATIVE"), and a numerical emotional intensity score ranging from -1 to 1.
The key fields in the response data include "text" (the input text), "sentiment" (the sentiment classification), and "score" (the numerical intensity of the sentiment).
The response data is organized in a JSON format with three main fields: "text" for the original input, "sentiment" for the classification, and "score" for the emotional intensity, allowing for easy parsing and integration.
The primary parameter for the Retrieve Sentiment Data API is "text," which must be provided as input. Users can customize their requests by varying the text content they analyze.
Typical use cases include analyzing product reviews, monitoring social media sentiment, enhancing customer service interactions, conducting surveys, and evaluating user-generated content for emotional insights.
Data accuracy is maintained through continuous model training and validation against diverse datasets, ensuring the sentiment analysis reflects real-world language use and emotional expression.
Users can utilize the returned data by integrating the sentiment and score into applications for real-time feedback, trend analysis, or automated responses in customer service and marketing strategies.
Standard data patterns include a clear classification of sentiment and a corresponding score that indicates emotional intensity, such as "NEGATIVE" with a score of -0.556 for negative sentiments.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
1,545ms
Service Level:
100%
Response Time:
884ms
Service Level:
100%
Response Time:
474ms
Service Level:
100%
Response Time:
20ms
Service Level:
100%
Response Time:
2,061ms
Service Level:
100%
Response Time:
178ms
Service Level:
100%
Response Time:
314ms
Service Level:
100%
Response Time:
19ms
Service Level:
100%
Response Time:
295ms
Service Level:
100%
Response Time:
467ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
715ms
Service Level:
100%
Response Time:
381ms
Service Level:
100%
Response Time:
1,017ms
Service Level:
100%
Response Time:
819ms
Service Level:
100%
Response Time:
570ms
Service Level:
100%
Response Time:
130ms
Service Level:
100%
Response Time:
638ms
Service Level:
100%
Response Time:
240ms