Skip to main content
GET
/
api
/
v2
/
experiments
/
list
List experiments (V2)
curl --request GET \
  --url https://api.keywordsai.co/api/v2/experiments/list \
  --header 'Authorization: Bearer <token>'
{
  "count": 1,
  "results": [
    {
      "id": "experiment_id_123",
      "name": "My Experiment V2",
      "dataset_id": "dataset_id_123"
    }
  ]
}
List all experiments using the V2 API.

Authentication

  • API key: Authorization: Bearer <API key>

Examples

import requests

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

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

Response

{
  "count": 1,
  "results": [
    {
      "id": "experiment_id_123",
      "name": "My Experiment V2",
      "dataset_id": "dataset_id_123"
    }
  ]
}