Get sentiment aggregates
Retrieve a flat, paginated list of sentiment aggregates for a topic. Each row represents a unique brand-feature pair with counts of endorsed, undermined, and neutral feature mentions.
Deprecated: Returns a 410 Gone error once Topics are disabled for your account due to deprecation — if so, use GET /api/v1/brands/{brand}/sentiment/aggregates with the promptType query parameter for a Branded/Non-Branded split, or create a View (POST /api/v1/brands/{brand}/views) to replicate this topic's specific prompt grouping and query GET /api/v1/views/{view}/sentiment/aggregates instead.
Authorization
BearerAuth API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
Unique identifier for the topic
uuidQuery Parameters
Start date for filtering data (ISO 8601 date format). Range is inclusive.
dateEnd date for filtering data (ISO 8601 date format). Range is inclusive.
datePage number (1-indexed)
11 <= valueNumber of items per page
201 <= value <= 100Filter by AI engine. If empty, returns results for all engines
"google-ai-overviews" | "google-ai-mode" | "perplexity" | "openai" | "gemini" | "grok" | "copilot" | "claude" | "bing-ai-mode"Filter results by brand name
Filter results by feature name
Field to sort results by
"rank""rank" | "total_mentions" | "endorsed_mentions" | "undermined_mentions" | "neutral_mentions"Direction to sort results
"asc""asc" | "desc"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.useomnia.com/api/v1/topics/550e8400-e29b-41d4-a716-446655440000/sentiment/aggregates?startDate=2026-01-01&endDate=2026-01-31"{
"pagination": {
"page": 1,
"pageSize": 10,
"totalItems": 420
},
"links": {
"prev": "https://app.useomnia.com/api/v1/resource?page=1&pageSize=10",
"next": "https://app.useomnia.com/api/v1/resource?page=3&pageSize=10"
},
"data": {
"aggregates": [
{
"brand": "Acme Corporation",
"domain": "acme.com",
"relationship": "owned",
"rank": 1,
"featureName": "customer support",
"featureDescription": "Quality and responsiveness of customer support",
"endorsedMentions": 8,
"underminedMentions": 2,
"neutralMentions": 4,
"totalMentions": 14
}
]
}
}{
"error": {
"code": 1002,
"description": "Invalid input parameters"
}
}{
"error": {
"code": 1004,
"description": "Invalid or expired API token"
}
}{
"error": {
"code": 1006,
"description": "Item not found"
}
}{
"error": {
"code": 1001,
"description": "Internal error"
}
}