{"uid":"cap_Hr_KXGTa1bbWgegNN1GW_","slug":"ipv4-cidr-calculator-94309bf3","name":"IPv4 CIDR Calculator","description":"IPv4 CIDR calculator: network, broadcast, netmask, wildcard, usable host range and count, plus optional contains-IP membership check.","url":"https://api.aventtech.com/net/cidr","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["cidr"],"properties":{"ip":{"type":"string","description":"Optional IP to test for membership"},"cidr":{"type":"string","description":"IPv4 CIDR, e.g. 10.0.0.0/8"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_lgZvPKh39yFg5WpT9PCIv","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":"Calculates IPv4 network properties from a CIDR notation input: network address, broadcast address, netmask, wildcard, usable host range and count, with optional IP membership check.","exampleAgentPrompt":"Can you give me the full subnet breakdown for 192.168.10.0/24 — network address, broadcast, netmask, wildcard, usable host range and count — and also check if 192.168.10.55 falls inside that subnet?","exampleUseCases":[{"title":"Subnet planning for cloud VPC","prompt":"I'm setting up a VPC and need the full breakdown for 10.0.0.0/16 — give me the network address, broadcast, netmask, wildcard mask, usable host range and total host count."},{"title":"Check IP membership in office network","prompt":"Our office network is 172.16.0.0/12 — can you tell me whether 172.20.5.100 is actually inside that subnet, along with the full network details?"},{"title":"Firewall rule subnetting reference","prompt":"I need to document the subnet details for 192.168.1.0/26 for a firewall rule — give me the netmask, wildcard, broadcast address, and how many usable hosts it supports."}],"resultDescription":"Returns structured network details for the given CIDR: network address, broadcast address, subnet mask, wildcard mask, first and last usable host addresses, total usable host count, and — if an optional IP was supplied — a boolean indicating whether that IP falls within the subnet.","failureModes":["Invalid or malformed CIDR string (e.g. missing prefix length, out-of-range octet) returns an error","IP provided for membership check is not a valid IPv4 address","IPv6 CIDR notation not supported (IPv4 only)","Host bits set in the network address may cause rejection or normalization depending on implementation"],"whenToPreferThis":"Use this endpoint when you need precise IPv4 subnet arithmetic — network/broadcast addresses, netmask, wildcard, usable host range — without standing up your own networking library. Particularly useful when also needing to verify whether a specific IP belongs to a given CIDR block in a single call. Prefer over general-purpose code execution when you need a reliable, low-latency, pay-per-call answer with no infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:47:32.671Z","isFirstParty":false}