Content Analysis
Content Sentiment
Analyze sentiment across content mentioning a keyword.
POST
from $0.04/call/v1/seo/content/sentimentUsage
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
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
keyword | string | Yes | Keyword to analyze | — |
limit | number | No | Number of results to return | 100 |
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
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.keyword | string | The keyword that was analyzed |
data.results | array | List of content pieces with sentiment analysis |
data.results[].url | string | URL of the content piece |
data.results[].domain | string | Domain where the content is hosted |
data.results[].title | string | Title of the content piece |
data.results[].sentiment | string | Sentiment classification (positive, negative, or neutral) |
data.results[].sentimentScore | number | Sentiment confidence score (0-1, higher = stronger sentiment) |
data.results[].date | string | Date the content was published |
Under the Hood
Sentiment analysis powered by content intelligence.