Get citations aggregates
Retrieve the web sources cited by one prompt's AI answers over a date range, with how often each source is cited. Use it to find which pages AI engines draw on for that prompt.
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
Format
uuidQuery Parameters
startDate*string
Start date for filtering data (ISO 8601 date format). Range is inclusive.
Format
dateendDate*string
End date for filtering data (ISO 8601 date format). Range is inclusive.
Format
datepage?integer
Page number (1-indexed)
Default
1Range
1 <= valuepageSize?integer
Number of items per page
Default
20Range
1 <= value <= 100engine?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"sortDirection?string
Direction to sort results
Default
"desc"Value in
"asc" | "desc"sourceName?string
Filter by source domain name
sourceType?string
Filter by citation ownership type
Value in
"owned" | "third_party" | "social"sortBy?string
Field to sort results by
Default
"total_citations"Value in
"total_citations"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/citations/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": [
{
"domain": "example.com",
"shareOfVoice": 0.25,
"title": "Best Software Reviews 2026",
"totalCitations": 42,
"type": "owned",
"url": "https://example.com/reviews"
}
]
}
}{
"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"
}
}