# Get Subnet Axon Ip Distribution

Returns the distribution of axon IP addresses in a subnet as counts per IP address.

_Source: https://beta.taostats.io/docs/api-reference/subnet/get-subnet-distribution-ip_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/subnet/distribution/ip/v1
```

Requires an API key in the `Authorization` header.

Returns the distribution of axon IP addresses in a subnet as counts per IP address. Supply the subnet netuid to inspect how registered endpoints are distributed.

## Try it

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

### Examples

See the distribution of axon IP addresses in subnet 19

```text
https://api.taostats.io/api/subnet/distribution/ip/v1?netuid=19
```

### Code samples

**cURL**

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

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/subnet/distribution/ip/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/subnet/distribution/ip/v1?netuid=19",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `netuid` | query | `integer (int32)` | Yes | subnet |

## Responses

### `200` — Subnet IP distribution retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `data` | `array` | Yes |
| `data[].count` | `integer (int32)` | Yes |
| `data[].ip` | `string` | 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": [
    {
      "count": 1,
      "ip": "195.189.97.59"
    },
    {
      "count": 1,
      "ip": "13.58.200.217"
    }
  ],
  "pagination": {
    "current_page": 1,
    "next_page": null,
    "per_page": 82,
    "prev_page": null,
    "total_items": 82,
    "total_pages": 1
  }
}
```

### Other responses

| Status | Meaning |
| --- | --- |
| `400` | Bad request |
| `404` | Subnet IP distribution 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).
