---
title: Retrieve Experiment Checks Diagnostics
description: Retrieve Experiment Checks Diagnostics
product: general
token_estimate: 1450
---
# Retrieve Experiment Checks Diagnostics

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

## Retrieve Experiment Checks Diagnostics

**GET** `/console/v1/experiments/{id}/diagnostics_checks`

Full URL: `https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks`

Retrieve Experiment Checks Diagnostics

## Authorizations

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| STATSIG-API-KEY | string | Yes | — | apiKey (header) |

## Path parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| id (path) | string | Yes | — | id |

## Query parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| type (query) | string | No | daily_cumulative_checks | Allowed values: daily_cumulative_checks, unique_ids |
| startDate (query) | string | No | 2024-01-01 | Start date in YYYY-MM-DD format |
| endDate (query) | string | No | 2024-01-01 | End date in YYYY-MM-DD format |
| lastDays (query) | integer | No | — | Return the most recent N days instead of an explicit range, e.g. `30`. Ignored when `startDate` or `endDate` is supplied. Defaults to 7 days when neither is given. Constraints: min: 1, max: 90 |

## Response (application/json)

**200** — Get Experiment Checks Diagnostics Success

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| message | string | Yes | — | A simple string explaining the result of the operation. |
| data | object | Yes | — | — |
| data.experimentName | string | Yes | — | — |
| data.type | string | Yes | — | Allowed values: daily_cumulative_checks, unique_ids |
| data.unit_id_type | string | No | — | — |
| data.is_realtime | boolean | Yes | — | Whether the final data point covers a still-filling day. False when the last day is complete, and always false for analysis-only experiments, whose counts come from a daily warehouse export. |
| data.startDate | string | Yes | — | Start date in YYYY-MM-DD format |
| data.endDate | string | Yes | — | End date in YYYY-MM-DD format |
| data.data | object[] | Yes | — | — |
| data.data.date | string | Yes | — | Date in YYYY-MM-DD format |
| data.data.results | object[] | Yes | — | — |
| data.data.results.group_name | string | Yes | — | — |
| data.data.results.group_id | string | Yes | — | — |
| data.data.results.count | number | Yes | — | — |

```json
{
  "message": "string",
  "data": {
    "experimentName": "string",
    "type": "daily_cumulative_checks",
    "unit_id_type": "string",
    "is_realtime": true,
    "startDate": "string",
    "endDate": "string",
    "data": [
      {
        "date": "string",
        "results": [
          {
            "group_name": "string",
            "group_id": "string",
            "count": 0
          }
        ]
      }
    ]
  }
}
```

## Code samples

### cURL

```bash
curl -X GET "https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01" \
  -H "Content-Type: application/json" \
  -H "STATSIG-API-KEY: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01",
    headers={
        "Content-Type": "application/json",
        "STATSIG-API-KEY": "YOUR_API_KEY"
    }
)
data = response.json()
```

### JavaScript

```javascript
const response = await fetch("https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "STATSIG-API-KEY": "YOUR_API_KEY"
  }
});
const data = await response.json();
```

### PHP

```php
<?php
$ch = curl_init("https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "STATSIG-API-KEY: YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
```

### Go

```go
package main

import (
  "bytes"
  "net/http"
)

func main() {
req, _ := http.NewRequest("GET", "https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("STATSIG-API-KEY", "YOUR_API_KEY")
  client := &http.Client{}
  resp, _ := client.Do(req)
  defer resp.Body.Close()
}
```

### Java

```java
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01"))
      .method("GET", HttpRequest.BodyPublishers.noBody())
.header("Content-Type", "application/json")
      .header("STATSIG-API-KEY", "YOUR_API_KEY")
      .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```ruby
require "net/http"
require "json"

uri = URI("https://statsigapi.net/console/v1/experiments/{id}/diagnostics_checks?type=daily_cumulative_checks&startDate=2024-01-01&endDate=2024-01-01")
request = Net::HTTP::Get.new(uri)
request["Content-Type"] = "application/json"
request["STATSIG-API-KEY"] = "YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end
```

