Stream metrics export
Stream every row of the selected metric for the given brand. Changing entity cascades entity information onto each row: brand-level exports carry only brand fields, topic-level exports also include the topic, and prompt-level exports also include the prompt.
If you can't keep an HTTP connection open for the duration of the export (for example, for scheduled jobs, very large date ranges, or background pipelines), use POST /api/v1/brands/{brand}/export instead and poll for completion.
Note
This endpoint streams its response as newline-delimited JSON (NDJSON). Each line of the response body is a self-contained JSON object matching the schema below. There is no pagination, the full filtered dataset is returned in one long-lived HTTP connection. Learn more about streaming responses here.
Important
Calling this endpoint uses 25 tokens from your rate limit bucket. Learn more about rate limiting here.
Authorization
BearerAuth API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
Unique identifier for the brand
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.
dateFilter 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"The granularity of the exported data
"brand" | "prompt" | "topic"Name of the metric to be exported
"share-of-voice" | "visibility" | "citations"Response Body
application/x-ndjson
application/json
application/json
application/json
application/json
curl -X GET "https://app.useomnia.com/api/v1/brands/550e8400-e29b-41d4-a716-446655440000/export?startDate=2026-01-01&endDate=2026-01-31&entity=brand&metric=share-of-voice"{
"brandId": "550e8400-e29b-41d4-a716-446655440000",
"brandName": "Acme Corporation",
"brandDomain": "acme.com",
"date": "2026-01-01",
"rank": 3,
"relationship": "owned",
"row": 1,
"brand": "Acme Corporation",
"domain": "acme.com",
"mentionCount": 12,
"shareOfVoice": 0.25,
"engine": "openai"
}{
"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"
}
}