Analyzes sentiment and emotions in text. Costs 1 credit per request.
curl --request POST \ --url https://www.norns.ai/api/v0/sentiment \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "text": "<string>" }'
{ "success": true, "data": { "sentiment": "positive", "score": 0, "emotions": [ "<string>" ], "dominantEmotion": "<string>", "confidence": 0.5, "usage": 123, "tokenCount": 123 } }
API key authentication
Successful sentiment analysis response
The response is of type object.
object