# Get Validator Yield History

Returns historical validator APY and epoch participation metrics by hotkey and subnet.

_Source: https://beta.taostats.io/docs/api-reference/validator/get-validator-yield-history_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/dtao/validator/yield/history/v1
```

Requires an API key in the `Authorization` header.

Returns historical validator APY and epoch participation metrics by hotkey and subnet. Yield fields cover one-hour, one-day, seven-day and thirty-day windows.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Examples

Track a validator's APY in subnet 19 over time

```text
https://api.taostats.io/api/dtao/validator/yield/history/v1?hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&order=timestamp_desc&limit=100
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/dtao/validator/yield/history/v1?hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=100&order=timestamp_desc"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/dtao/validator/yield/history/v1?hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=100&order=timestamp_desc', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/dtao/validator/yield/history/v1?hotkey=5GKH9FPPnWSUoeeTJp19wVtd84XqFW4pyK2ijV2GsFbhTrP1&netuid=19&limit=100&order=timestamp_desc",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `hotkey` | query | `string` |  | SS58 or hex format |
| `netuid` | query | `integer (int32)` |  |  |
| `min_stake` | query | `integer (int64)` |  |  |
| `timestamp_start` | query | `integer (int64)` |  | Start of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) |
| `timestamp_end` | query | `integer (int64)` |  | End of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) |
| `page` | query | `integer (int32)` |  |  |
| `limit` | query | `integer (int32)` |  |  |
| `order` | query | `string` |  | One of `netuid_asc`, `netuid_desc`, `name_asc`, `name_desc`, `stake_asc`, `stake_desc`, `one_hour_apy_asc`, `one_hour_apy_desc`, `one_day_apy_asc`, `one_day_apy_desc`, `seven_day_apy_asc`, `seven_day_apy_desc`, `thirty_day_apy_asc`, `thirty_day_apy_desc`, `timestamp_asc`, `timestamp_desc`. |

## Responses

### `200` — Validators retrieved successfully

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array` | Yes |  |
| `data[].block_number` | `integer (int32)` | Yes |  |
| `data[].hotkey` | `object` | Yes |  |
| `data[].hotkey.hex` | `string` | Yes | The hex format of the hot key |
| `data[].hotkey.ss58` | `string` | Yes | The SS58 format of the hot key |
| `data[].name` | `string, nullable` |  |  |
| `data[].netuid` | `integer (int32)` | Yes |  |
| `data[].one_day_apy` | `number (double)` | Yes |  |
| `data[].one_day_epoch_participation` | `number (double), nullable` |  |  |
| `data[].one_hour_apy` | `number (double)` | Yes |  |
| `data[].seven_day_apy` | `number (double)` | Yes |  |
| `data[].seven_day_epoch_participation` | `number (double), nullable` |  |  |
| `data[].stake` | `integer (int64)` | Yes |  |
| `data[].thirty_day_apy` | `number (double)` | Yes |  |
| `data[].thirty_day_epoch_participation` | `number (double), nullable` |  |  |
| `data[].timestamp` | `string (date-time)` | Yes |  |
| `pagination` | `object` | Yes |  |
| `pagination.current_page` | `integer (int32)` | Yes |  |
| `pagination.next_page` | `integer (int32), nullable` |  |  |
| `pagination.per_page` | `integer (int32)` | Yes |  |
| `pagination.prev_page` | `integer (int32), nullable` |  |  |
| `pagination.total_items` | `integer (int32)` | Yes |  |
| `pagination.total_pages` | `integer (int32)` | Yes |  |

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | Validators not found |
| `500` | Internal server error |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
