# subnets (/docs/query/subnets)

one-query-per-subnet. This is what listing should use.

**Category:** Subnets

## Parameters [#parameters]

This read takes no parameters.

## CLI [#cli]

```bash
btcli query subnets --json
```

## Python [#python]

Typed namespace method (autocomplete, signature help):

```python
import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.subnets.subnets()
```

Or dispatch by name, as an agent would:

```python
result = await client.read("subnets")
```
