Developer & Reference

CIDR Calculator API

Expand any IPv4 or IPv6 CIDR block into network, broadcast, host range, netmask, and address counts.

Request Headers

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required cidr.p.rapidapi.com

Endpoints

GET /v1/cidr

Expand a CIDR block into network, range, and mask details

Parameters

NameTypeRequiredDefaultConstraints
cidrstringrequired—<= 64 chars; matches \S

Code Examples

curl --request GET \
  --url 'https://cidr.p.rapidapi.com/v1/cidr?cidr=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: cidr.p.rapidapi.com'

Interactive Example

cidr
$ GET /v1/cidr?cidr=10.0.0.0/22
{"cidr":"10.0.0.0/22","version":4,"network":"10.0.0.0","broadcast":"10.0.3.255","first_host":"10.0.0.1","last_host":"10.0.3.254","netmask":"255.255.252.0","wildcard":"0.0.3.255","prefix":22,"total_addresses":1024,"usable_hosts":1022}

Subscribe & License

Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.

View Pricing & Subscribe

Developer Support

Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.

Contact API Engineering

System Performance

Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.

All Systems Operational