# Get Liquidity Distribution

Returns active liquidity across price points for a subnet pool.

_Source: https://beta.taostats.io/docs/api-reference/dtao/get-liquidity-distribution_

_Last reviewed: 2026-09-18_

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

Requires an API key in the `Authorization` header.

Returns active liquidity across price points for a subnet pool. Select a price range, number of points and linear or logarithmic spacing with the query parameters.

## 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/api/dtao/liquidity/distribution/v1"
```

**JavaScript**

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

**Python**

```python
import requests

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

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `netuid` | query | `integer (int32)` | Yes |  |
| `min_price` | query | `string` |  |  |
| `max_price` | query | `string` |  |  |
| `num_points` | query | `integer (int32)` |  | Number of data points to return (default: 200, max: 1000) |
| `log_scale` | query | `boolean` |  | Use logarithmic scale for price distribution (default: true) |

## Responses

### `200` — Active liquidity distribution data retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `data` | `array` | Yes |
| `data[].activeLiquidity` | `string` | Yes |
| `data[].price` | `string` | Yes |

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | No liquidity data found for netuid |
| `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).
