> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://www.comet.com/docs/opik/reference/rest-api/datasets/find-dataset-items-with-experiment-items/llms.txt. # Find dataset items with experiment items GET http://localhost:5173/api/v1/private/datasets/{id}/items/experiments/items Find dataset items with experiment items Reference: https://www.comet.com/docs/opik/reference/rest-api/datasets/find-dataset-items-with-experiment-items ## Servers - `http://localhost:5173/api` (Local server, default) - `https://www.comet.com/opik/api` (Opik Cloud) ## Request ### Path parameters - `id` (string, required) ### Query parameters - `page` (integer, optional, default: 1) - `size` (integer, optional, default: 10) - `experiment_ids` (string, required) - `filters` (string, optional) - `sorting` (string, optional) - `search` (string, optional) - `truncate` (boolean, optional) — Truncate image included in either input, output or metadata ## Response ### 200 Dataset item resource - `content` (list of DatasetItem_Compare, optional) - `page` (integer, optional) - `size` (integer, optional) - `total` (long, optional) - `columns` (list of Column_Compare, optional) - `sortableBy` (list of string, optional) ## Types ### DatasetItem_Compare - `source` (enum, required) - Allowed values: `manual`, `trace`, `span`, `sdk` - `data` (JsonNode, required) - `id` (string, optional) — Stable item identifier. On write, used as the upsert key. If omitted, a new ID is generated. Remains the same across dataset versions - `dataset_item_id` (string, optional) — Deprecated. Always equals 'id'. Retained for backward compatibility and will be removed in a future version - `trace_id` (string, optional) - `span_id` (string, optional) - `description` (string, optional) - `tags` (list of string, optional) - `evaluators` (list of EvaluatorItem_Compare, optional) - `execution_policy` (ExecutionPolicy_Compare, optional) - `experiment_items` (list of ExperimentItem_Compare, optional) - `run_summaries_by_experiment` (map from string to ExperimentRunSummary_Compare, optional) - `dataset_id` (string, optional) - `created_at` (datetime, optional) - `last_updated_at` (datetime, optional) - `created_by` (string, optional) - `last_updated_by` (string, optional) ### Column_Compare - `name` (string, optional) - `types` (list of enum, optional) - Allowed values: `string`, `number`, `object`, `boolean`, `array`, `null` - `filter_field_prefix` (string, optional) - `filterField` (string, optional) — The field to use for filtering ### JsonNode ### EvaluatorItem_Compare - `name` (string, required) - `type` (enum, required) - Allowed values: `llm_judge`, `code_metric` - `config` (JsonNode_Compare, required) ### ExecutionPolicy_Compare - `runs_per_item` (integer, optional) - `pass_threshold` (integer, optional) ### ExperimentItem_Compare - `experiment_id` (string, required) - `dataset_item_id` (string, required) - `trace_id` (string, required) - `id` (string, optional) - `project_id` (string, optional) - `input` (JsonListString_Compare, optional) - `output` (JsonListString_Compare, optional) - `trace_metadata` (JsonListString_Compare, optional) - `feedback_scores` (list of FeedbackScore_Compare, optional) - `comments` (list of Comment_Compare, optional) - `total_estimated_cost` (double, optional) - `duration` (double, optional) - `usage` (map from string to long, optional) - `created_at` (datetime, optional) - `last_updated_at` (datetime, optional) - `created_by` (string, optional) - `last_updated_by` (string, optional) - `trace_visibility_mode` (enum, optional) - Allowed values: `default`, `hidden` - `description` (string, optional) - `execution_policy` (ExecutionPolicy_Compare, optional) - `assertion_results` (list of AssertionResult_Compare, optional) - `status` (enum, optional) - Allowed values: `passed`, `failed` ### ExperimentRunSummary_Compare - `passed_runs` (integer, optional) - `total_runs` (integer, optional) - `status` (enum, optional) - Allowed values: `passed`, `failed` ### JsonNode_Compare ### JsonListString_Compare ### FeedbackScore_Compare - `name` (string, required) - `value` (double, required) - `source` (enum, required) - Allowed values: `ui`, `sdk`, `online_scoring` - `category_name` (string, optional) - `reason` (string, optional) - `source_queue_id` (string, optional) - `created_at` (datetime, optional) - `last_updated_at` (datetime, optional) - `created_by` (string, optional) - `last_updated_by` (string, optional) - `value_by_author` (map from string to ValueEntry_Compare, optional) ### Comment_Compare - `text` (string, required) - `id` (string, optional) - `source_queue_id` (string, optional) - `created_at` (datetime, optional) - `last_updated_at` (datetime, optional) - `created_by` (string, optional) - `last_updated_by` (string, optional) ### AssertionResult_Compare - `value` (string, optional) - `passed` (boolean, optional) - `reason` (string, optional) ### ValueEntry_Compare - `value` (double, optional) - `reason` (string, optional) - `category_name` (string, optional) - `source` (enum, optional) - Allowed values: `ui`, `sdk`, `online_scoring` - `last_updated_at` (datetime, optional) - `span_type` (string, optional) - `span_id` (string, optional) - `source_queue_id` (string, optional) - `author` (string, optional) ## Examples **Response** ```json { "content": [ { "source": "manual", "data": {}, "id": "string", "dataset_item_id": "string", "trace_id": "string", "span_id": "string", "description": "string", "tags": [ "string" ], "evaluators": [ { "name": "string", "type": "llm_judge", "config": {} } ], "execution_policy": { "runs_per_item": 1, "pass_threshold": 1 }, "experiment_items": [ { "experiment_id": "string", "dataset_item_id": "string", "trace_id": "string", "id": "string", "project_id": "string", "input": {}, "output": {}, "trace_metadata": {}, "feedback_scores": [ { "name": "string", "value": 1.1, "source": "ui", "category_name": "string", "reason": "string", "source_queue_id": "string", "created_at": "2024-01-15T09:30:00Z", "last_updated_at": "2024-01-15T09:30:00Z", "created_by": "string", "last_updated_by": "string", "value_by_author": {} } ], "comments": [ { "text": "string", "id": "string", "source_queue_id": "string", "created_at": "2024-01-15T09:30:00Z", "last_updated_at": "2024-01-15T09:30:00Z", "created_by": "string", "last_updated_by": "string" } ], "total_estimated_cost": 1.1, "duration": 1.1, "usage": {}, "created_at": "2024-01-15T09:30:00Z", "last_updated_at": "2024-01-15T09:30:00Z", "created_by": "string", "last_updated_by": "string", "trace_visibility_mode": "default", "description": "string", "execution_policy": { "runs_per_item": 1, "pass_threshold": 1 }, "assertion_results": [ { "value": "string", "passed": true, "reason": "string" } ], "status": "passed" } ], "run_summaries_by_experiment": {}, "dataset_id": "string", "created_at": "2024-01-15T09:30:00Z", "last_updated_at": "2024-01-15T09:30:00Z", "created_by": "string", "last_updated_by": "string" } ], "page": 1, "size": 1, "total": 1, "columns": [ { "name": "string", "types": [ "string" ], "filter_field_prefix": "string", "filterField": "string" } ], "sortableBy": [ "string" ] } ``` **SDK Code** ```python import requests url = "http://localhost:5173/api/v1/private/datasets/id/items/experiments/items" querystring = {"experiment_ids":"experiment_ids"} response = requests.get(url, params=querystring) print(response.json()) ``` ```javascript const url = 'http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids") .asString(); ``` ```php request('GET', 'http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:5173/api/v1/private/datasets/id/items/experiments/items?experiment_ids=experiment_ids")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` > Debug, evaluate, and monitor your LLM applications, RAG systems, and agentic workflows with comprehensive tracing, automated evaluations, and production-ready dashboards.