{"uid":"cap_hUzJ1GVzaiN5u4txGRsQQ","slug":"cidr-calculator-1d695418","name":"CIDR Calculator","description":"Expand a CIDR block into network address, broadcast, netmask, wildcard, usable host range and host count. Pure CPU, instant. Use to plan a subnet or test whether an IP is in range.","url":"https://api.gadgethumans.com/cidr-calc?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["cidr"],"properties":{"cidr":{"type":"string","description":"CIDR block such as 10.0.0.0/24"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4wj8LO7yjj0AQg6tcZXWf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Expands a CIDR block into network address, broadcast address, netmask, wildcard mask, usable host range, and host count","exampleAgentPrompt":"Can you expand the CIDR block 10.0.0.0/24 and tell me the network address, broadcast address, netmask, wildcard, usable host range, and total host count?","exampleUseCases":[{"title":"Subnet planning for cloud VPC","prompt":"I'm setting up a new VPC and need to plan subnets — can you break down 172.16.0.0/20 so I can see the network address, broadcast, netmask, and how many usable hosts I'll have?"},{"title":"Checking if IP is in subnet range","prompt":"I need to know the full usable host range for 192.168.100.0/26 — I want to verify whether 192.168.100.60 would be a valid host in that subnet."},{"title":"Network documentation for a /22 block","prompt":"We have a 10.4.0.0/22 block assigned to us — can you give me all the details like the network address, broadcast, wildcard mask, netmask, and total usable hosts so I can fill out our network documentation?"}],"resultDescription":"Returns a JSON object with the network address, broadcast address, subnet mask (netmask), wildcard mask, usable host IP range (first and last host), and total usable host count for the given CIDR block.","failureModes":["Invalid CIDR notation (e.g. missing prefix length) returns an error","Host bits set in the IP portion of the CIDR may cause rejection or normalization","IPv6 CIDR blocks may not be supported","Missing required 'cidr' query parameter results in a 400-level error","Very large prefix lengths (e.g. /32 or /128) return zero usable hosts"],"whenToPreferThis":"Use this endpoint when you need instant, pure-CPU CIDR block expansion with no external dependencies — ideal for network planning scripts, infrastructure automation, subnet validation, and any situation where you need to quickly determine whether an IP falls within a given range. Prefer this over manual calculation or general-purpose code execution when you want a fast, reliable single-call result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:32:59.523Z","isFirstParty":false,"canonicalSlug":"cidr-calculator-1d695418"}