YepAPI
Content Analysis

Content Sentiment

Analyze sentiment across content mentioning a keyword.

POST/v1/seo/content/sentiment
from $0.04/call

Usage

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": "vercel",
    "limit": 50
  }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/seo/content/sentiment \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"vercel","limit":50}'

Request Body

ParameterTypeRequiredDescriptionDefault
keywordstringYesKeyword to analyze
limitnumberNoNumber of results to return100

Response

{
  "ok": true,
  "data": {
    "keyword": "vercel",
    "results": [
      {
        "url": "https://blog.example.com/vercel-review",
        "domain": "blog.example.com",
        "title": "Vercel Review 2026",
        "sentiment": "positive",
        "sentimentScore": 0.85,
        "date": "2026-03-20"
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.keywordstringThe keyword that was analyzed
data.resultsarrayList of content pieces with sentiment analysis
data.results[].urlstringURL of the content piece
data.results[].domainstringDomain where the content is hosted
data.results[].titlestringTitle of the content piece
data.results[].sentimentstringSentiment classification (positive, negative, or neutral)
data.results[].sentimentScorenumberSentiment confidence score (0-1, higher = stronger sentiment)
data.results[].datestringDate the content was published
Under the Hood

Sentiment analysis powered by content intelligence.

On this page