Help CenterVying
Open Vying
Menu

Get Brand Visibility Series

GET/brands/{brandId}/analytics/visibility

Focused tabular daily visibility and sentiment series aligned to the half-open [start, end) calendar days, optionally grouped by model (groupBy=model).

Needs read access. About keys

Request

curl "https://app.vyingfor.com/api/v1/brands/{brandId}/analytics/visibility?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.

groupByQuery"day" | "model"

Group rows by calendar day (day, default) or by calendar day and model (model). Default day.

Response

200 Get brand visibility series

FieldTypeDescription
brandIdstring
brandNamestring
rangeDateRange

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

currentVisibilitynumber or null

Share of answers in the window that mention the brand, from 0 to 1. Null when there are no answers yet.

totalsobject
dataVisibilityDailyRow[]

Errors