> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List experiments

List all experiments using the V2 API.

## Authentication

* API key: `Authorization: Bearer <API key>`

## Examples

<CodeGroup>
  ```python Python theme={"system"}
  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())
  ```

  ```bash cURL theme={"system"}
  curl -X GET "https://api.keywordsai.co/api/v2/experiments/list" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</CodeGroup>

## Response

<ResponseExample>
  ```json 200 OK theme={"system"}
  {
    "count": 1,
    "results": [
      {
        "id": "experiment_id_123",
        "name": "My Experiment V2",
        "dataset_id": "dataset_id_123"
      }
    ]
  }
  ```
</ResponseExample>
