# List history

URL: https://docs.hanzo.ai/docs/openapi/benchmark/get-benchmark-history

> Returns each model's measured score per run over time, oldest first, with the change between runs.

`GET /v1/benchmark/history`

> [Benchmark →](https://docs.hanzo.ai/docs/openapi/benchmark) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                             |
| ------------- | ------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/benchmark/history` |
| **Method**    | `GET`                                       |
| **Operation** | `get_benchmark_history`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`      |

Returns each model's measured score per run over time, oldest first,
with the change between runs.

This is the counterweight to a leaderboard: the board shows the latest run
because that is what "how good is it" means, and a single latest number cannot
distinguish a model that has always been strong from one that just improved,
or from one that regressed after a provider changed something. Both matter for
routing, and only one of them is visible on a board.

Runs with no id — attempts recorded before runs existed — group under the
empty run, which is honestly what they are: one undated measurement.

## Request

2 fields.

| Field       | In    | Type   | Required | Description                                                       |
| ----------- | ----- | ------ | -------- | ----------------------------------------------------------------- |
| `Benchmark` | query | string | —        | Benchmark is the catalog id to read, defaulting to gpqa\_diamond. |
| `Model`     | query | string | —        | Model filters to one model.                                       |

## Response

| Status    | Body                 | Meaning |
| --------- | -------------------- | ------- |
| `200`     | benchmark.historyOut | ok      |
| `default` | problem-details      | refused |

`200` body — 11 fields.

| Field                   | In   | Type                      | Always | Description                                                                              |
| ----------------------- | ---- | ------------------------- | ------ | ---------------------------------------------------------------------------------------- |
| `benchmark`             | body | string                    | —      | Benchmark is the catalog id these histories are about.                                   |
| `data`                  | body | benchmark.ModelHistory\[] | —      | Data is one entry per model, ordered by model name.                                      |
| `data[].model`          | body | string                    | —      | Model is the system these runs measured.                                                 |
| `data[].points`         | body | benchmark.RunPoint\[]     | —      | Points is every run, oldest first.                                                       |
| `data[].points[].at`    | body | string (date-time)        | —      | At is when the run was recorded.                                                         |
| `data[].points[].delta` | body | number (double)           | —      | Delta is the change in score from the previous run for this model, absent on the first.  |
| `data[].points[].n`     | body | integer (int64)           | —      | N is how many items the run covered.                                                     |
| `data[].points[].run`   | body | string                    | —      | Run is the measurement id these attempts were recorded under.                            |
| `data[].points[].score` | body | number (double)           | —      | Score is accuracy over the items this run covered, as a percentage.                      |
| `data[].trend`          | body | number (double)           | —      | Trend is the change from the first run to the last, absent when there has only been one. |
| `total`                 | body | integer (int64)           | —      | Total is how many models Data holds.                                                     |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo benchmark history
```

**SDK**

**.ts**

```ts
import { Configuration, BenchmarkApi } from 'hanzoai';

const api = new BenchmarkApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getBenchmarkHistory();
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BenchmarkApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = BenchmarkApi(client).get_benchmark_history()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.BenchmarkAPI.GetBenchmarkHistory(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, benchmark_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = benchmark_api::get_benchmark_history(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BenchmarkApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new BenchmarkApi(client).getBenchmarkHistory();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/benchmark/history \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

Tool `benchmark`, op `get_benchmark_history` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "benchmark",
         "arguments": {
           "op": "get_benchmark_history",
           "input": {}
         }
       }
     }'
```

---

[Benchmark API](https://docs.hanzo.ai/docs/openapi/benchmark) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
