API Version: 1.9
The Subnet Calculator allows you to determine network details for an IPv4 subnet, given an address in dotted-decimal notation (w.x.y.z)
or CIDR notation (w.x.y.z/s)
.
This is the API for the Subnet Calculator.
See also: Subnets API
{subnet}
The requested IPv4 address or CIDR block to calculate. To calculate multiple subnets, use the format [subnet_1,subnet_2,...]
.
Example: https://networkcalc.com/api/ip/192.168.1.1/24
binary
(Optional) include('a binary representation of the subnet in the response.
Values: 0,false,1,true
Example: https://networkcalc.com/api/ip/192.168.1.1/24?binary=true
fields
(Optional) A comma-separated list of fields to include. By default, all available fields are included.
200
OK
- Success.
400
NO_ADDRESS_SPECIFIED
- The {subnet}
parameter was not specified.
400
INVALID_ADDRESS
- the address or addresses specified as {subnet} are invalid.
null
.",null
.",