Omnia docs
REST APIPromptPerformance

Get sentiment time series

Retrieve daily sentiment distribution over time for the owned brand within a prompt (competitors are not included). Returns counts of endorsed, undermined, and neutral feature mentions per day within the specified date range.

GET
/api/v1/prompts/{prompt}/sentiment/timeseries

Authorization

BearerAuth
AuthorizationBearer <token>

API token authentication. Use format: Bearer ot_your-token-here

In: header

Path Parameters

prompt*string

Unique identifier for the prompt

Formatuuid

Query Parameters

startDate*string

Start date for filtering data (ISO 8601 date format). Range is inclusive.

Formatdate
endDate*string

End date for filtering data (ISO 8601 date format). Range is inclusive.

Formatdate
engine?string

Filter by AI engine. If empty, returns results for all engines

Value in"google-ai-overviews" | "google-ai-mode" | "perplexity" | "openai" | "gemini" | "grok" | "copilot" | "claude" | "bing-ai-mode"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.useomnia.com/api/v1/prompts/550e8400-e29b-41d4-a716-446655440000/sentiment/timeseries?startDate=2026-01-01&endDate=2026-01-31"
{
  "data": {
    "timeSeries": [
      {
        "date": "2026-01-01",
        "endorsedMentions": 12,
        "underminedMentions": 3,
        "neutralMentions": 8
      }
    ]
  }
}
{
  "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"
  }
}