Subnet Calculator API - IPv4 and IPv6 CIDR, hosts, masks, splitting
subnet_calculatorFor an address with prefix or mask (192.168.1.10/24, 10.0.0.5 255.255.255.0, 2001:db8::/32): network, broadcast, first and last host, host count, netmask, wildcard and binary; optional split into smaller subnets or the smallest subnet for N hosts. Several addresses per call, one per line. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/subnet-calculator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"addresses": "192.168.1.10/24",
"splitPrefix": "26"
},
"name": "subnet_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addresses | Yes | Addresses with prefix or mask, one per line | |
| hostsNeeded | No | Hosts needed in one subnet, e.g. 50 (optional) | |
| splitPrefix | No | Split into subnets of this prefix, e.g. 26 (optional) |