Get what the run produced
/runs/{run_id}/results- Base URL
https://api.chartnaut.com/v1- Auth
- Bearer key
- Operation ID
getRunResults
Shape depends on the run's kind:
- indicator → output series (time, value) per declared output
- definition → emitted events
- study → result blocks (metric, table, distribution, …)
Paginated. Large study blocks are omitted by default and fetched by
keys. format=csv returns one flat table (indicator: one column per
output; definition: one row per event; study: requires one keys).
Path parameters#
run_idstringRequiredQuery parameters#
outputsstringIndicator only. Comma list of output ids. Default all.
eventstringDefinition only. Filter by declared event id.
keysstringStudy only. Comma list of result keys to return in full.
fullbooleanStudy only. Return every block's data. Subject to the size cap.
fromstring (date-time)tostring (date-time)formatstringcursorstringOpaque cursor from a previous page's next_cursor.
limitintegerResponses#
200OKapplication/json
Results.
One of, chosen by kind
IndicatorResults
kind"indicator"Requiredrun_idstringRequiredoutputsarray of objectShow item fields
idstringkindstringpointsarray of objectUnix seconds. line|area|baseline: {t, v} (v is null where
the script produced no finite value). histogram:
{t, v, color?}. fill: {t, top, bottom}.
markers|labels|hlines|ranges|trendlines: {t, data}; the
last three are returned as one output each, id = kind.
Show item fields
tintegervnumbernext_cursorstringNullableDefinitionResults
StudyResults
kind"study"Requiredrun_idstringRequiredresultsarray of objectShow item fields
keystringkindstring · StudyResultKindtitlestringdataanyPresent for metric always, and for other kinds when named in
keys or with full=true. Shapes: metric {value},
series [{x,y,series?}], distribution [{lo,hi,mid,count}],
boxplot [{group,values[]}], heatmap [{x,y,value}],
scatter [{x,y,group?}], bar [{cat,value,series?}],
table [object], vega object.
omittedbooleanTrue when data was left out. Fetch with keys=<key>.
sizeintegerRows in the full data.
caveatsarray of stringInterpretation warnings (small sample, overlapping events, …).
truncatedbooleanTrue if the 1 MB response cap cut data.
409Conflictapplication/json
The run is not finished, or it failed or was cancelled (run_not_finished).
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring410Goneapplication/json
The run's results expired (7 days).
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstringErrorAny other statusapplication/json
Error.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring