# Get TAO Flow

Returns accumulated active TAO flow by subnet over a block or time range.

_Source: https://beta.taostats.io/docs/api-reference/subnet/get-tao-flow_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/dtao/tao_flow/v1
```

Requires an API key in the `Authorization` header.

Returns accumulated active TAO flow by subnet over a block or time range. Each result pairs a netuid with the sum of its active flow values for the selected period.

## Try it

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

### Examples

See the flow of TAO in and out of subnet 19

```text
https://api.taostats.io/api/dtao/tao_flow/v1?netuid=19
```

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/dtao/tao_flow/v1?netuid=19"
```

**JavaScript**

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

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/dtao/tao_flow/v1?netuid=19",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `netuid` | query | `integer (int32)` |  |  |
| `block_start` | query | `integer (int32)` |  | Start of block range (inclusive) |
| `block_end` | query | `integer (int32)` |  | End of block range (inclusive) |
| `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) |

## Responses

### `200` — Tao flow retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `data` | `array` | Yes |
| `data[].netuid` | `integer (int32)` | Yes |
| `data[].tao_flow` | `number (double)` | 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` | Tao flow 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).
