---
title: Get Eval Run Results
description: "Read the per-grader aggregate scores of an eval run. Scores are means from 0 to 1; a critical grader that scores 0 sets the primary score to 0."
product: general
lang: en
token_estimate: 1477
---
# Get Eval Run Results

> 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`.

## Get Eval Run Results

**GET** `/console/v1/evals/{name}/runs/{runId}/results`

Full URL: `https://statsigapi.net/console/v1/evals/{name}/runs/{runId}/results`

Get Eval Run Results

Read the per-grader aggregate scores of an eval run. Scores are means from 0 to 1; a critical grader that scores 0 sets the primary score to 0.

## Authorizations

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

## Path parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| name (path) | string | Yes | — | Eval name |
| runId (path) | string | Yes | — | Eval run ID |

## Response (application/json)

**200** — Get Eval Run Results

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| message | string | Yes | — | A simple string explaining the result of the operation. |
| data | object | Yes | — | — |
| data.runID | string | Yes | — | — |
| data.status | string | Yes | — | Allowed values: running, completed, failed |
| data.primaryGraderScore | number | Yes | — | Primary grader mean rounded to two decimals, or 0 when a critical grader scored 0. Null until a primary grader has a score. Constraints: format: double, nullable |
| data.graders | object[] | Yes | — | — |
| data.graders.graderID | string | Yes | — | — |
| data.graders.graderName | string | Yes | — | — |
| data.graders.graderType | string | Yes | — | — |
| data.graders.score | number | Yes | — | Mean score across rows, 0 to 1. |
| data.graders.isPrimary | boolean | Yes | — | — |
| data.graders.isCritical | boolean | Yes | — | — |
| data.graders.groups | object[] | Yes | — | — |
| data.graders.groups.name | string | Yes | — | — |
| data.graders.groups.score | number | Yes | — | — |
| data.graders.tokenCounts | object | Yes | — | — |
| data.graders.tokenCounts.input | number | Yes | — | — |
| data.graders.tokenCounts.output | number | Yes | — | — |

```json
{
  "message": "string",
  "data": {
    "runID": "string",
    "status": "running",
    "primaryGraderScore": 0,
    "graders": [
      {
        "graderID": "string",
        "graderName": "string",
        "graderType": "string",
        "score": 0,
        "isPrimary": true,
        "isCritical": true,
        "groups": [
          {
            "name": "string",
            "score": 0
          }
        ],
        "tokenCounts": {
          "input": 0,
          "output": 0
        }
      }
    ]
  }
}
```

**403** — Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| status | integer | Yes | — | Allowed values: 403 |
| message | string | Yes | — | — |

```json
{
  "status": 403,
  "message": "Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource."
}
```

**404** — Not Found. The requested resource could not be found.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| status | integer | Yes | — | Allowed values: 404 |
| message | string | Yes | — | — |

```json
{
  "status": 404,
  "message": "Not Found. The requested resource could not be found."
}
```

## Code samples

### cURL

```bash
curl -X GET "https://statsigapi.net/console/v1/evals/{name}/runs/{runId}/results" \
  -H "Content-Type: application/json" \
  -H "STATSIG-API-KEY: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://statsigapi.net/console/v1/evals/{name}/runs/{runId}/results",
    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/evals/{name}/runs/{runId}/results", {
  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/evals/{name}/runs/{runId}/results");
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/evals/{name}/runs/{runId}/results", 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/evals/{name}/runs/{runId}/results"))
      .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/evals/{name}/runs/{runId}/results")
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
```

