Help CenterVying
Open Vying
Menu

Get Query Fan-out

GET/brands/{brandId}/query-fanout

The searches engines ran while answering this brand's prompts. Engines that don't expose their searches still contribute runs, so coverageRate is the honest denominator.

Needs read access. About keys

Request

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

pageQueryinteger

Page number, 1-based. Default 1.

limitQueryinteger

Items per page. Values above the maximum are clamped, not rejected. The default is large enough that most windows fit on the first page. Default 1000. Up to 1000.

qQuerystring

Case-insensitive substring match on the search, across every search run in the window.

Response

200 Get query fan-out

FieldTypeDescription
brandIdstring
rangeDateRange

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

totalQueriesinteger
uniqueQueriesinteger
fanoutRunsinteger

Runs that searched at all. Engines that don't expose their searches contribute runs but no queries.

totalRunsinteger
avgQueriesPerRunnumber
coverageRatenumber

Ratio 0–1; multiply by 100 for a percentage.

dataFanoutQuery[]

This page of the distinct sub-queries over the window, ordered by the runs that ran them. The totals cover every query.

paginationPagination

Errors