Skip to main content
POST
Analyze Text Sentiment

Request contract

  • Method and path: POST /apis/v1/api-ninjas/analyze-sentiment
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/analyze-sentiment
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
text
string
required

Text to analyze for sentiment. Maximum 2000 characters.

Maximum string length: 2000
Examples:

"I love this product"

"This is a terrible experience"

Response

Tool result data

score
number
required
sentiment
enum<string>
required
Available options:
POSITIVE,
WEAK_POSITIVE,
NEUTRAL,
WEAK_NEGATIVE,
NEGATIVE
text
string
required