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.Documentation Index
Fetch the complete documentation index at: https://docs.tryprofound.com/llms.txt
Use this file to discover all available pages before exploring further.
How this example works
- Headline call has no
datedimension. The API returns a single traffic-weighted score for the whole window. - Series call adds
dateto dimensions and setsdate_interval. The API returns one row per day, each containing that day’s unweighted rate. - 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
| Headline call | Series call | |
|---|---|---|
dimensions | [] | ["date"] |
date_interval | not sent | "day" (or week/month) |
| Rows returned | 1 | N (one per bucket) |
| Score per row | Traffic-weighted across the window | Unweighted within that day |
| Used for | The big KPI number | The line on the chart |