Integrate real-time sentiment analysis into your applications with our REST API. Simple authentication, clear responses, and SDKs in your favourite languages.
curl -X POST https://api.affectiveai.com/v1/analyze \
-H "Authorization: Bearer aai_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "I absolutely love this product! Amazing quality."
}'{
"success": true,
"data": {
"sentiment": "positive",
"confidence": 0.94,
"scores": {
"positive": 0.89,
"negative": 0.02,
"neutral": 0.09
},
"emotions": {
"joy": 0.82,
"anger": 0.01,
"sadness": 0.02,
"fear": 0.01,
"surprise": 0.14
},
"coaching": [
{
"type": "positive",
"message": "Conversation is going well. Good opportunity to upsell."
}
]
}
}/v1/analyzeAnalyze text or audio for sentiment and emotions/v1/usageCheck API usage and quota/v1/keysCreate new API key/v1/keysList your API keys/v1/keysRevoke an API keyAll API requests require an API key. Include it in the Authorization header:
Authorization: Bearer aai_xxxxx...Rate limits vary by plan. Check headers for current status: