Explain why a chart's number changed
POST/ v1/ projects/ {project}/ ai/ explain
"Explain this change" on a chart: the server runs the chart's report (the measure over time, granularity or auto, against compare or the period before) as the caller, then Claude breaks the change down with more reports and says what drove it. The answer has the same shape as F71, with the chart's report first (r1) and chart set to it unless a breakdown shows the cause better. Errors: as F71.
Path parameters
project
The project's id (
prj_…).Body
measure
The measure the chart draws.
date_range
A preset, or
from and to as dates (2026-11-01, whole days in the project's time zone, to included) or RFC 3339 times (to excluded). Empty means the last 30 days. A range starting before the first day the plan keeps (retention_days of F47: the last N days, today included, in the project's time zone) starts on that day instead: the answer's date_range shows where it starts, and F1, F2 and the public queries add a range_clamped warning. A range wholly before it is empty.Show 3 fieldsHide fields
preset
todayyesterday7d30d90dthis_monthlast_monththis_yearallfrom
to
compare
previous_period, previous_year, or from and to.Show 3 fieldsHide fields
preset
previous_periodprevious_yearfrom
to
filters
A dimension matching any of up to 20 values, or
or, a list of such filters (not nested). Filters in a list are ANDed; up to 20 in all. goal matches the names of the project's saved goals an event reaches (is_not: none of them); page_group matches the name of the first of the project's saved page groups whose pattern the event's path matches (empty when none does); new_returning is New or Returning.Show 4 fieldsHide fields
dimension
A dimension's name; keyed ones take a key:
props.plan.operator
isis_notcontainsnot_containsstarts_withregexvalues
or
granularity
A time step;
auto picks it from the range's length.hourdayweekmonthautoResponses
The explanation and the reports behind it.
answer
The explanation, in short paragraphs of plain text.
highlights
Show 2 fieldsHide fields
label
value
chart
The id of the report best drawn beside the answer; absent for none.
reports
One report an answer ran, with the query behind it.
Show 4 fieldsHide fields
id
title
query
A report request.
Show 10 fieldsHide fields
measures
Measure names from the schema: visitors, visits, pageviews, bounce_rate, …
breakdown
filters
A dimension matching any of up to 20 values, or
or, a list of such filters (not nested). Filters in a list are ANDed; up to 20 in all. goal matches the names of the project's saved goals an event reaches (is_not: none of them); page_group matches the name of the first of the project's saved page groups whose pattern the event's path matches (empty when none does); new_returning is New or Returning.Show 4 fieldsHide fields
dimension
A dimension's name; keyed ones take a key:
props.plan.operator
isis_notcontainsnot_containsstarts_withregexvalues
or
date_range
A preset, or
from and to as dates (2026-11-01, whole days in the project's time zone, to included) or RFC 3339 times (to excluded). Empty means the last 30 days. A range starting before the first day the plan keeps (retention_days of F47: the last N days, today included, in the project's time zone) starts on that day instead: the answer's date_range shows where it starts, and F1, F2 and the public queries add a range_clamped warning. A range wholly before it is empty.Show 3 fieldsHide fields
preset
todayyesterday7d30d90dthis_monthlast_monththis_yearallfrom
to
granularity
A time step;
auto picks it from the range's length.hourdayweekmonthautocompare
previous_period, previous_year, or from and to.Show 3 fieldsHide fields
preset
previous_periodprevious_yearfrom
to
compare_filters
A second segment beside the first: the comparison (
compare rows) runs these filters instead of filters, over the same range, or over compare's range when both are given. An empty list is every visitor.Show 4 fieldsHide fields
dimension
A dimension's name; keyed ones take a key:
props.plan.operator
isis_notcontainsnot_containsstarts_withregexvalues
or
goal
What counts as a conversion, a page or an event with optional property conditions; any custom event when left out. With a goal,
revenue and average_order_value count only the goal's events.Show 3 fieldsHide fields
type
pageeventvalue
A path (with * for any part) or an event name.
conditions
With type event, property tests the event must pass, all of them (
plan is pro).Show 3 fieldsHide fields
property
operator
isis_notcontainsstarts_withvalue
attribution
Which visit's source, channel and campaign a visitor's events count for.
last_touch (the default): the visit each event happened in. first_touch: the visitor's first visit in the range. A visitor id lasts one day, so attribution stays within the day.last_touchfirst_touchlimit
100 rows by default, 10,000 with a time step.
report
The answer to one query.
Show 6 fieldsHide fields
data
One result row:
time (an ISO time in UTC) when there is a time step, each breakdown dimension by name (text), and each measure by name (a number).compare
One result row:
time (an ISO time in UTC) when there is a time step, each breakdown dimension by name (text), and each measure by name (a number).date_range
A resolved range [from, to) in UTC.
Show 2 fieldsHide fields
from
A time in UTC, ISO 8601.
to
A time in UTC, ISO 8601.
compare_range
A resolved range [from, to) in UTC.
Show 2 fieldsHide fields
from
A time in UTC, ISO 8601.
to
A time in UTC, ISO 8601.
granularity
The time step used, when there is one.
hourdayweekmonthwarnings
What the numbers leave out. Only present when there is something to say.
Show 4 fieldsHide fields
code
missing_exchange_raterange_clampedmessage
currencies
retention_days
With
range_clamped: the days the plan keeps.usage
The tokens one answer used, over every call to the model.
Show 5 fieldsHide fields
requests
input_tokens
cache_write_tokens
cache_read_tokens
output_tokens
Example response
1{2"answer": "string",3"highlights": [4{5"label": "Visitors",6"value": "12,340"7}8],9"chart": "string",10"reports": [11{12"id": "r1",13"title": "Visitors by source",14"query": {15"measures": [16"visitors"17],18"breakdown": [19"country"20],21"filters": [22{23"dimension": "country",24"operator": "is",25"values": [26"string"27],28"or": []29}30],31"date_range": {32"preset": "today",33"from": "2026-11-01",34"to": "2026-11-21"35},36"granularity": "hour",37"compare": {38"preset": "previous_period",39"from": "2026-11-01",40"to": "2026-11-21"41},42"compare_filters": [43{44"dimension": "country",45"operator": "is",46"values": [47"string"48],49"or": []50}51],52"goal": {53"type": "page",54"value": "string",55"conditions": [56{57"property": "plan",58"operator": "is",59"value": "pro"60}61]62},63"attribution": "last_touch",64"limit": 165},66"report": {67"data": [68{69"key": "string"70}71],72"compare": [73{74"key": "string"75}76],77"date_range": {78"from": "2026-11-21T09:30:00Z",79"to": "2026-11-21T09:30:00Z"80},81"compare_range": {82"from": "2026-11-21T09:30:00Z",83"to": "2026-11-21T09:30:00Z"84},85"granularity": "hour",86"warnings": [87{88"code": "missing_exchange_rate",89"message": "Revenue in AED is left out: there is no exchange rate to INR for it.",90"currencies": [91"AED"92],93"retention_days": 3094}95]96}97}98],99"usage": {100"requests": 1,101"input_tokens": 1,102"cache_write_tokens": 1,103"cache_read_tokens": 1,104"output_tokens": 1105}106}