Skip to main content
GET
/
api
/
v2
/
experiments
/
{experiment_id}
Retrieve experiment (V2)
curl --request GET \
  --url https://api.keywordsai.co/api/v2/experiments/{experiment_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "experiment_id_123",
  "name": "My Experiment V2",
  "dataset_id": "dataset_id_123",
  "workflows": [],
  "evaluator_slugs": []
}
Retrieve a specific experiment by ID using the V2 API.

Authentication

  • API key: Authorization: Bearer <API key>

Path Parameters

experiment_id
string
required
The ID of the experiment to retrieve.

Examples

import requests

experiment_id = "experiment_id_123"
url = f"https://api.keywordsai.co/api/v2/experiments/{experiment_id}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.get(url, headers=headers)
print(response.json())

Response

{
  "id": "experiment_id_123",
  "name": "My Experiment V2",
  "dataset_id": "dataset_id_123",
  "workflows": [],
  "evaluator_slugs": []
}