Skip to main content
A real dashboard tile shows two numbers: the headline period score (one big number) and the daily series (the line). These come from two separate calls to the same endpoint. This recipe runs both side-by-side and explains how each is extracted and why you can’t derive one from the other.
Don’t average daily rows to derive a period score — they’re computed differently. See Conventions & gotchas.

How this example works

  1. Headline call has no date dimension. The API returns a single traffic-weighted score for the whole window.
  2. Series call adds date to dimensions and sets date_interval. The API returns one row per day, each containing that day’s unweighted rate.
  3. Don’t average the daily values to compute the headline. Days with more prompts count more in the headline; the daily mean treats every day equally. The two are computed differently on purpose.

How the two responses differ

Why you can’t average the daily values

The headline weights days by their prompt volume — a day with 10,000 prompts moves the headline more than a day with 100. Averaging daily rates treats those two days as equal. For most assets the gap is 1-3 percentage points; for assets with bursty traffic it can be more. Always use the headline call for the headline.