Sentiment Analysis API
Sentiment analysis of web content around any keyword — positive, negative, and neutral breakdowns with confidence scores. From $0.03/call.
Analyze the sentiment distribution of published content for any keyword. Returns positive, negative, and neutral breakdowns along with sentiment trends over time — ideal for brand monitoring and reputation analysis.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"keyword": "best seo tools",
"sentiment": {
"positive": 62,
"neutral": 28,
"negative": 10
},
"avgScore": 0.72,
"trendData": [
{
"date": "2026-03-01",
"positive": 60,
"neutral": 30,
"negative": 10
},
{
"date": "2026-03-08",
"positive": 65,
"neutral": 25,
"negative": 10
}
]
}
}Features
Each analysis returns a sentiment object with positive, neutral, and negative percentages, so you read the overall tone of content around a keyword as three clear numbers.
The trendData array returns dated points with the sentiment split at each, letting you chart how tone shifts week over week rather than seeing only a snapshot.
The endpoint surfaces the most positive and most negative content, so you can read the actual articles driving sentiment in either direction.
An avgScore (e.g. 0.72) summarizes overall sentiment in one figure, with breakdowns that help you compare tone across source types.
The limit field (default 100) controls how much content is analyzed; with $0.006 per 100 rows on top of the $0.04 call, broad sentiment scans stay affordable.
Use cases
Brand Monitoring
Track how sentiment around your brand or products changes over time across published content and media coverage.
Market Sentiment Research
Understand public sentiment around industry topics, competitors, or emerging trends to inform marketing strategy.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/seo/content/sentiment', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"keyword": "best seo tools",
"limit": 100
}),
});
const data = await res.json();
console.log(data);The sentiment analysis API for developers — tone breakdown & trends for any keyword's content
The Sentiment Analysis API measures the tone of published content around any keyword, returning positive/neutral/negative percentages, an average score, the content driving each direction, and a weekly trend line. It turns the mood of a topic or brand into trackable data.
It is the reputation-and-mood tool in YepAPI's content suite. Pair it with the Content Search endpoint to find the pieces shaping sentiment, and the Google Trends endpoint to correlate tone shifts with interest spikes — one key for all.
What is a sentiment analysis API?
A sentiment analysis API classifies the tone of content around a topic and returns the distribution as data. For a keyword you get a sentiment object with positive, neutral, and negative percentages, an avgScore between roughly 0 and 1, the top positive and negative pieces, and a trendData array tracking the split over time. That lets you measure how a brand or topic is talked about, and whether it is improving or souring. YepAPI serves it at /v1/seo/content/sentiment: post a keyword and a limit, and receive the breakdown plus the weekly trend as JSON.
Build your own brand monitoring tool
Build a reputation dashboard that tracks your brand's sentiment split over time using trendData and alerts when negative share crosses a threshold — an early warning before a problem spreads. Surface the top negative pieces so a team can respond to the specific content shaping perception. Compare your avgScore against competitors' to benchmark how each brand is received. Because results are keyword-scoped, you can monitor products, campaigns, and rivals in parallel, and pull the underlying articles via the Content Search API.
Sentiment analysis API pricing — $0.04 + $0.006 per 100 rows
Each analysis is $0.04 plus $0.006 per 100 content pieces analyzed, so a default 100-row sentiment scan is about five cents. Enterprise brand-monitoring suites charge $0.10–$0.15 per equivalent call behind annual contracts; here you meter it per request and can monitor a brand, its products, and competitors daily for a few dollars a month with no commitment.
Track sentiment shifts around launches
Before and after a product launch or campaign, run the endpoint on your brand terms and compare the trendData windows to quantify how the event moved perception. A rising positive share confirms the message landed; a spike in negative pieces flags an issue to address fast. The top-negative content shows exactly what is driving any dip, so response is targeted rather than guesswork. Continuous weekly scans turn reputation from a gut feeling into a chart you can act on.
Try the sentiment analysis API free
Get $5 of free credit, no credit card, to start — enough for dozens of sentiment scans. Run it on a brand or topic you understand to confirm the positive/negative split and trend line track reality, then wire the breakdown into your monitoring dashboard before you spend.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Analyze the sentiment distribution of published content for any keyword. Returns positive, negative, and neutral breakdowns along with sentiment trends over time — ideal for brand monitoring and reputation analysis.
Each API call costs $0.04 (+$0.006 per 100 rows). No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/seo/content/sentiment. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More seo apis endpoints
Keywords
$0.15Keyword research API with search volume, CPC, difficulty, competition, and 12-month trends. Up to 100 keywords per request from $0.15/call.
Keyword Ideas
$0.02Generate hundreds of keyword ideas from any seed keyword with volume, CPC, and difficulty scores. Content planning and topic expansion from $0.03/call.
Related Keywords
$0.02Discover semantically related keywords and variations with volume, CPC, and difficulty. Build topical authority from $0.03/call.