Text & Language

Sentiment Analysis API

Gauge whether a piece of text reads positive, negative, or neutral with a numeric sentiment score.

Request Headers

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required sentiment.p.rapidapi.com

Endpoints

GET /v1/text/sentiment

Score the sentiment of a text

Parameters

NameTypeRequiredDefaultConstraints
textstringrequired—<= 5000 chars; matches \S

Code Examples

curl --request GET \
  --url 'https://sentiment.p.rapidapi.com/v1/text/sentiment?text=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: sentiment.p.rapidapi.com'

Interactive Example

sentiment
$ GET /v1/text/sentiment?text=I love this wonderful day
{"score":7,"comparative":1.4,"verdict":"positive"}

Subscribe & License

Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.

View Pricing & Subscribe

Developer Support

Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.

Contact API Engineering

System Performance

Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.

All Systems Operational