Sentiment Analysis API Documentation

Complete reference for the Sentiment Analysis API

Authentication

Authorization: Bearer sk_live_your_key_here

GET POST /v1/sentiment/analyze

Parameters

Field Type Description
textstringText to analyze (required, max 10,000 chars)
languagestringen or ar (default: en)

Response Fields

Field Description
sentimentpositive, negative, or neutral
scoreNormalized score (-1 to 1)
confidenceConfidence level (0 to 1)
positivePositive word count and list
negativeNegative word count and list
emotionsDetected emotions with scores

Example

curl -X POST "https://snapapis.com/api/v1/sentiment/analyze" \
  -d "api_key=KEY&text=This product is amazing and I love it!&language=en"