Get results
const url = 'http://localhost:8080/api/v1/projects/example/experiments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/results?limit=50';const options = {method: 'GET', headers: {cookie: 'cetra_session=<cetra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8080/api/v1/projects/example/experiments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/results?limit=50' \ --cookie cetra_session=<cetra_session>Any project member, or an API key with read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project UUID, URL-encoded org-slug/project-slug, or current.
Experiment id.
Query Parameters
Section titled “Query Parameters”Keep only the rows with an error.
Page size. Default 50, accepted range 1–1000.
Spec 09 § Conventions.
Maximum number of rows to return (1–1000, default 50).
Opaque cursor from a previous page.
Responses
Section titled “Responses”The summary of the experiment and one page of its rows.
GET …/experiments/{id}/results: the summary, and one page of rows.
object
The cursor of the next page, or null on the last page. Always present.
One page of rows, by item id then repetition.
One result of an experiment, with its input and output.
object
The cost of the trace. Omitted when unpriced.
The dataset item.
What went wrong. Omitted when none.
Any JSON value.
Any JSON value.
The time the task took, in nanoseconds. Omitted when unknown.
Any JSON value.
The repetition, 0 to repetitions − 1.
The row’s scores by name.
object
One score of a result row. The design calls it ScoreValue; core already has that name.
object
The kind of value the score carries.
The mean of the row’s numeric values of this score. Omitted when none.
The label of a categorical score or the text of a text score. Omitted when none.
The trace of the task run. Omitted when none.
The aggregated experiment.
object
The sum of the traces’ costs. Omitted when no trace has a cost.
Results with an error.
The experiment.
object
Creation time. JSON is RFC 3339.
The dataset. Omitted once the dataset is deleted.
The dataset’s name when the experiment was created.
The dataset version the experiment is pinned to.
Free text. Omitted when unset.
The error the experiment finished with. Omitted when none.
When the experiment finished. Omitted while it runs. JSON is RFC 3339.
Experiment id.
Live items of the pinned version.
object
Not unique. 1 to 200 characters.
Repetitions of every item, 1 to 20.
Results stored so far.
running, completed or failed.
The mean latency. Omitted when no result has one.
The median latency, by nearest rank. Omitted when no result has one.
The 95th percentile latency, by nearest rank. Omitted when no result has one.
Results stored.
One entry per score name, sorted by name.
One score of an experiment, over its rows.
object
Rows with at least one score of this name.
The data type the experiment’s scores of this name mostly carry.
Numeric scores only: the rows per bucket, 10 equal-width buckets from min to max (one
bucket when min equals max); empty for other types.
Categoricals only: the rows per label.
object
The largest value. Omitted when none.
Numeric and categorical scores: the mean over the rows that have a value. Omitted when none.
The median of the same values. Omitted when none.
The smallest value. Omitted when none.
The score’s name.
Booleans only: the share of rows that passed (the mean of 0 and 1). Omitted otherwise.
Example
{ "rows": [ { "scores": { "additionalProperty": { "data_type": "numeric" } } } ], "summary": { "experiment": { "status": "running" }, "scores": [ { "data_type": "numeric" } ] }}The request is malformed or a filter is invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The query took longer than its time limit, needed more memory or temporary disk space than allowed, a filter deletion matched more than 100,000 traces, or the owner cannot be that user (code owner_not_allowed).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The server is busy or a dependency is unavailable. Retry later.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}