Help CenterVying
Open Vying
Menu

Get a Brand's Analytics

GET/brands/{brandId}/analytics

Visibility, share of voice, the per-model breakdown and the citation totals for one window, in one request. The long lists — cited domains and URLs, sub-queries, per-prompt results — are endpoints of their own. Everything else is always included.

Needs read access. About keys

Request

curl "https://app.vyingfor.com/api/v1/brands/{brandId}/analytics?start=2026-11-01T00:00:00Z&end=2026-12-01T00:00:00Z" \
  -H "Authorization: Bearer YOUR_API_KEY"

Parameters

NameInTypeDescription
brandId requiredPathstring

Brand identifier.

start requiredQuerystring

Inclusive lower bound of the window, an ISO 8601 timestamp such as 2026-01-01T00:00:00Z. Aligned down to the quarter hour, the grain analytics are aggregated at; where a response repeats the window, it repeats the aligned one. A bare YYYY-MM-DD is rejected: that is /prompts/{promptId}/snapshot's spelling and means a UTC calendar day there.

end requiredQuerystring

Exclusive upper bound of the window, an ISO 8601 timestamp, also aligned down to the quarter hour. The window is half-open: a run at exactly end is outside it. start and end inside one quarter-hour bucket leave an empty window and are rejected. The window can be at most 1,096 days long.

modelQuerystring

Restrict to one model, e.g. chatgpt. See GET /models.

tagsQuerystring

Comma-separated prompt tags. Only prompts carrying at least one of them are counted.

countriesQuerystring

Comma-separated ISO 3166-1 alpha-2 country codes, e.g. DE,CH. Only prompts asked from one of them are counted. A code outside the supported list is a 400.

languagesQuerystring

Comma-separated ISO 639-1 language codes, e.g. de,fr. Only prompts written in one of them are counted. Combined with countries, a prompt must match both. A code outside the supported list is a 400.

Response

200 Get a brand's analytics

FieldTypeDescription
brandIdstring
brandNamestring
rangeDateRange

The window the response was computed over, echoed back as the half-open instants it resolved to.

visibilityobject

How often the brand is mentioned at all.

shareOfVoiceobject

The brand against its tracked competitors.

modelsModelVisibility[]

Per-model visibility and run counts. Only models that produced a run in the window appear.

sentimentBrandSentiment

Experimental — the shape may still change.

The brand's sentiment over the window, with the counts for each day so a client can chart or smooth them.

positionBrandPosition

Experimental — the shape may still change.

The brand's position among the tracked companies the answers name, 1 being named first, averaged over the window and per day.

totalsobject

Errors