# Get Runtime Version

Returns the latest indexed chain runtime version with its block number and timestamp.

_Source: https://beta.taostats.io/docs/api-reference/chain/get-runtime-version-latest_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/runtime_version/latest/v1
```

Requires an API key in the `Authorization` header.

Returns the latest indexed chain runtime version with its block number and timestamp.

## Try it

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

### Examples

Get the current chain runtime (spec) version

```text
https://api.taostats.io/api/runtime_version/latest/v1
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/runtime_version/latest/v1"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/runtime_version/latest/v1', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/runtime_version/latest/v1",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

_No parameters._

## Responses

### `200` — Runtime version retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `data` | `array` | Yes |
| `data[].block_number` | `integer (int32)` | Yes |
| `data[].runtime_version` | `integer (int32)` | Yes |
| `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 |

**Example response**

```json
{
  "data": [
    {
      "block_number": 4345556,
      "runtime_version": 210,
      "timestamp": "2024-11-25T21:35:36Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "next_page": null,
    "per_page": 1,
    "prev_page": null,
    "total_items": 1,
    "total_pages": 1
  }
}
```

**Response details**

```text
    {
      "block_number": 5328895,
      "timestamp": "2025-04-11T15:32:36Z",
      "runtime_version": 261
    }
```

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | Runtime version 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).
