https://networkcalc.com/api/ip/{subnet}
Calculates the details for a subnet, specified as an IPv4 address or CIDR block.
Parameters
{subnet}(Required) 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.
Response Format
Response Codes
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.