# uid (/docs/query/uid)

**Category:** Neurons & registration

## Parameters [#parameters]

| Parameter     | Type    | Description                  |
| ------------- | ------- | ---------------------------- |
| `hotkey_ss58` | string  | Hotkey whose UID to look up. |
| `netuid`      | integer | Subnet to query.             |

## CLI [#cli]

```bash
btcli query uid --hotkey <ss58|name> --netuid <integer> --json
```

## Python [#python]

```python
import bittensor as sub

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