Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Get dataset items

GET/v1/private/datasets/{id}/itemsGet dataset items

Get dataset items

Parameters

idstring · uuidpathrequired
pageinteger · int32query

default 1 · minimum 1

sizeinteger · int32query

default 10 · minimum 1

versionstringquery

Version hash or tag to fetch specific dataset version

filtersstringquery
truncatebooleanquery

Truncate image included in either input, output or metadata

Responses

200Dataset items resourceapplication/json
objectDatasetItemPage_Public
columnsarray of object

uniqueItems true

Show child attributes

uniqueItems true

Show array items
filterFieldstring

The field to use for filtering

filter_field_prefixstring
namestring
typesarray of string

uniqueItems true

Show child attributes

uniqueItems true

contentarray of object
Show child attributes
Show array items
created_atstring · date-time
created_bystring
dataobjectrequired
dataset_idstring · uuid
dataset_item_idstring · uuid

Deprecated. Always equals 'id'. Retained for backward compatibility and will be removed in a future version

descriptionstring

pattern (?s)^\s*(\S.*\S|\S)\s*$

evaluatorsarray of object
Show child attributes
Show array items

Default evaluators for items in this version

configobjectrequired
namestringrequired

minLength 1

typestringrequired

one of "llm_judge", "code_metric"

execution_policyobject

Default execution policy for items in this version

Show child attributes
pass_thresholdinteger · int32

maximum 100 · minimum 1

runs_per_iteminteger · int32

maximum 100 · minimum 1

experiment_itemsarray of object
Show child attributes
Show array items
created_atstring · date-time
created_bystring
dataset_item_idstring · uuidrequired
experiment_idstring · uuidrequired
idstring · uuid
last_updated_atstring · date-time
last_updated_bystring
project_idstring · uuid
trace_idstring · uuidrequired
trace_visibility_modestring

one of "default", "hidden"

idstring · uuid

Stable item identifier. On write, used as the upsert key. If omitted, a new ID is generated. Remains the same across dataset versions

last_updated_atstring · date-time
last_updated_bystring
run_summaries_by_experimentobject
sourcestringrequired

one of "manual", "trace", "span", "sdk"

span_idstring · uuid
tagsarray of string

uniqueItems true

Show child attributes

uniqueItems true

trace_idstring · uuid
pageinteger · int32
sizeinteger · int32
sortableByarray of string
Show child attributes
totalinteger · int64
Example response
{
  "columns": [
    {
      "filterField": "string",
      "filter_field_prefix": "string",
      "name": "string",
      "types": [
        "array"
      ]
    }
  ],
  "content": [
    {
      "created_at": "2026-06-09T00:00:00Z",
      "created_by": "string",
      "data": {},
      "dataset_id": "00000000-0000-0000-0000-000000000000",
      "dataset_item_id": "00000000-0000-0000-0000-000000000000",
      "description": "string",
      "evaluators": [
        {
          "config": {},
          "name": "string",
          "type": "code_metric"
        }
      ],
      "execution_policy": {
        "pass_threshold": 0,
        "runs_per_item": 0
      },
      "experiment_items": [
        {
          "created_at": "2026-06-09T00:00:00Z",
          "created_by": "string",
          "dataset_item_id": "00000000-0000-0000-0000-000000000000",
          "experiment_id": "00000000-0000-0000-0000-000000000000",
          "id": "00000000-0000-0000-0000-000000000000",
          "last_updated_at": "2026-06-09T00:00:00Z",
          "last_updated_by": "string",
          "project_id": "00000000-0000-0000-0000-000000000000",
          "trace_id": "00000000-0000-0000-0000-000000000000",
          "trace_visibility_mode": "default"
        }
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "last_updated_at": "2026-06-09T00:00:00Z",
      "last_updated_by": "string",
      "run_summaries_by_experiment": {
        "additionalProp1": {
          "passed_runs": 0,
          "status": "failed",
          "total_runs": 0
        }
      },
      "source": "manual",
      "span_id": "00000000-0000-0000-0000-000000000000",
      "tags": [
        "string"
      ],
      "trace_id": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "page": 0,
  "size": 0,
  "sortableBy": [
    "string"
  ],
  "total": 0
}
Documentation menu