# metagraph (/docs/query/metagraph)

**Category:** Subnets

## Parameters [#parameters]

| Parameter | Type    | Description                      |
| --------- | ------- | -------------------------------- |
| `netuid`  | integer | Subnet whose metagraph to fetch. |

## CLI [#cli]

```bash
btcli query metagraph --netuid <integer> --json
```

## Python [#python]

```python
import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.read("metagraph", netuid=1)
```
