# Get Subnets Registration Cost

GET /v1/subnets/registration-cost — Taostats API endpoint in the Subnets group.

_Source: https://beta.taostats.io/docs/new/subnets/get-subnets-registration-cost_

_Last reviewed: 2026-10-07_

```http
GET https://api.taostats.io/v1/subnets/registration-cost
```

Requires an API key in the `Authorization` header.

Latest snapshot.

## Try it

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

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/v1/subnets/registration-cost"
```

**JavaScript**

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

**Python**

```python
import requests

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

## Parameters

_No parameters._

## Responses

### `200` — Latest subnet registration cost

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | One row of subnet registration cost data. |
| `data.block_number` | `integer (int32)` | Yes | Block height. |
| `data.is_purchase` | `boolean` | Yes | Whether a subnet was bought at this block's price — true when the *next* block registered a subnet, which is the block whose cost the buyer paid. Worked out per request from `subnet_registration_v1` (#846); the stored column of this name is never written and is not read here. |
| `data.registration_cost` | `string` | Yes | Subnet registration lock cost in RAO (u64 rendered as a string), matching the old API and `/v1/subnets/registrations`. |
| `data.timestamp` | `string` | Yes | ISO 8601 timestamp with millisecond precision. |

### `404` — No data yet

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | `string` | Yes | Plain-english message describing the failure from the caller's perspective. |
| `status_code` | `integer (int32)` | Yes | HTTP status code (mirrored in the response status line for convenience). |

### `500` — Internal server error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | `string` | Yes | Plain-english message describing the failure from the caller's perspective. |
| `status_code` | `integer (int32)` | Yes | HTTP status code (mirrored in the response status line for convenience). |

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