YepAPI

Command Palette

Search for a command to run...

POST/v1/seo/content/sentiment

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.

POST/v1/seo/content/sentiment
Response
Example response — hit "Send Request" to see a live result
{
  "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

Positive, negative, and neutral sentiment breakdown

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.

Sentiment trends over time with weekly granularity

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.

Top positive and negative content pieces

The endpoint surfaces the most positive and most negative content, so you can read the actual articles driving sentiment in either direction.

Average sentiment score per source type

An avgScore (e.g. 0.72) summarizes overall sentiment in one figure, with breakdowns that help you compare tone across source types.

Configurable result limit

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.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

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