Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview

Fetch offline-test run via experiment alias

Legacy SDK-compatible v1 fetch endpoint backed by test_runs and test_items_wide, falling back to legacy experiment runs. For v1 test runs the results are keyset-paginated by example_id (default first 200 items); pass next_cursor back as cursor for the next page. The legacy fallback ignores pagination params.

GET/v1/projects/{projectId}/experiments/{runId}
Authorization
AuthorizationPersonal API key · headerrequired

Your personal API key from Settings > Personal API Keys, sent as Bearer <key>.

X-Organization-IdOrganization ID · headerrequired

The organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.

Path parameters
projectIdstringrequired
runIdstringrequired
Query parameters
limitnumber

Max items to return per page (default and max 200).

min 1 · max 200
cursorstring

Keyset cursor: the next_cursor (example_id) returned by the previous page.

Responses
200

Response for status 200

resultsobject[] | ExperimentRunItem[] | nullrequired
Show properties
Any of:
object[] | ExperimentRunItem[]
Any of:
object[]
Array of object
organization_idstringrequired
project_idstringrequired
test_run_idstringrequired
dataset_idstringrequired
dataset_version_idstringrequired
example_idstringrequired
agent_offline_trace_idstring | nullrequired
Show properties
Any of:
string
string
null
null
created_atstringrequired
exampleobject | nullrequired
Show properties
Any of:
object
example_idstringrequired
organization_idstring
project_idstring
dataobjectrequired
metadataobject | null
Show properties
Any of:
object
object
null
null
managed_metadataobjectrequired
created_atstring
user_idstringrequired
null
null
dataobjectrequired
scorersobject[]required
Show properties
Array of object
judge_idstringrequired
judge_namestring | nullrequired
Show properties
Any of:
string
string
null
null
judge_major_versionnumberrequired
judge_minor_versionnumberrequired
score_typestringrequired
num_valuenumberrequired
bool_valuebooleanrequired
str_valuestringrequired
reasonanyrequired
metadataanyrequired
successboolean | nullrequired
Show properties
Any of:
boolean
boolean
null
null
errorstring | nullrequired
Show properties
Any of:
string
string
null
null
created_atstringrequired
ExperimentRunItem[]
Array of ExperimentRunItem
organization_idstringrequired
experiment_run_idstringrequired
example_idstringrequired
dataanyrequired
namestring | nullrequired
Show properties
Any of:
string
string
null
null
created_atstringrequired
scorersExperimentScorer[]required
Show properties
Array of ExperimentScorer
scorer_data_idstringrequired
judge_idstringrequired
judge_namestringrequired
namestringrequired
score_typestringrequired
Show properties
Any of:
string
string
string
string
string
string
num_valuenumberrequired
bool_valuebooleanrequired
str_valuestringrequired
scorenumberrequired
successnumberrequired
reasonstring | nullrequired
Show properties
Any of:
string
string
null
null
evaluation_modelstring | nullrequired
Show properties
Any of:
string
string
null
null
thresholdnumberrequired
created_atstringrequired
errorstring | nullrequired
Show properties
Any of:
string
string
null
null
additional_metadataobject | nullrequired
Show properties
Any of:
object
object
null
null
minimum_score_rangenumberrequired
maximum_score_rangenumberrequired
null
null
has_moreboolean
next_cursorstring | null
Show properties
Any of:
string
string
null
null
ui_results_urlstring | nullrequired
Show properties
Any of:
string
string
null
null
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/experiments/YOUR_RUN_ID' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json'
Response
{
  "results": [
    {
      "organization_id": "string",
      "project_id": "string",
      "test_run_id": "string",
      "dataset_id": "string",
      "dataset_version_id": "string",
      "example_id": "string",
      "agent_offline_trace_id": "string",
      "created_at": "string",
      "example": {
        "example_id": "string",
        "organization_id": "string",
        "project_id": "string",
        "data": {},
        "metadata": {},
        "managed_metadata": {},
        "created_at": "string",
        "user_id": "string"
      },
      "data": {},
      "scorers": [
        {
          "judge_id": "string",
          "judge_name": "string",
          "judge_major_version": 0,
          "judge_minor_version": 0,
          "score_type": "string",
          "num_value": 0,
          "bool_value": true,
          "str_value": "string",
          "reason": null,
          "metadata": null,
          "success": true,
          "error": "string",
          "created_at": "string"
        }
      ]
    }
  ],
  "has_more": true,
  "next_cursor": "string",
  "ui_results_url": "string"
}

Was this page helpful?