{"uid":"cap_Vp_-mvhVesN3GJ1UbDiKq","slug":"lookproof-cidr-block-calculator-294433da","name":"Lookproof CIDR Block Calculator","description":"Check SPF, DMARC, DKIM, MTA-STS, DNSSEC and more, with results that explain what was found and why. Free browser checks and a pay-per-request API with x402.","url":"https://api.lookproof.dev/v1/ip/cidr?utm_source=zero.xyz","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","title":"CidrInput","required":["cidr"],"properties":{"cidr":{"type":"string","title":"Cidr","maxLength":64,"minLength":2}},"additionalProperties":false}},"additionalProperties":false}}},"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_F-IEmQscteWfI-9m_JVJ2","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":"Computes full CIDR block details (network address, first/last host, address count, netmask, host mask, and host-bits-set flag) for any IPv4 or IPv6 CIDR notation input, entirely offline.","exampleAgentPrompt":"Can you break down the CIDR block 192.0.2.5/24 for me — I need to know the network address, the first and last host address, how many IPs it covers, and the netmask?","exampleUseCases":[{"title":"Firewall rule subnet verification","prompt":"I'm writing a firewall rule and need to confirm the exact network address, broadcast address, and number of hosts covered by 10.20.30.0/22 — can you compute the full CIDR breakdown?"},{"title":"SPF record CIDR range explanation","prompt":"Our SPF record includes the range 203.0.113.64/26 and I need to explain to the team exactly which IPs that covers — give me the first address, last address, and total count."},{"title":"Cloud VPC subnet planning","prompt":"I'm planning a VPC and want to know if 172.31.0.0/20 has any host bits set and how many usable addresses it gives me, including the netmask and host mask."}],"resultDescription":"Returns a structured object containing: the canonical network address, the first and last address in the block, total number of addresses, the netmask (e.g. 255.255.255.0), the host mask (wildcard mask), and a boolean flag indicating whether the input CIDR had host bits set beyond the prefix. Works for both IPv4 and IPv6. Computation is done offline with no external DNS or registry lookups.","failureModes":["Invalid CIDR notation (e.g. missing prefix length or malformed IP) returns a 4xx error","Prefix length out of range for address family (e.g. /33 for IPv4) returns a validation error","Missing required 'cidr' query parameter returns a 400 bad request","Extremely large IPv6 ranges may return address counts as big integers depending on response format"],"whenToPreferThis":"Choose this endpoint when you need authoritative, offline computation of CIDR block properties — particularly for firewall rule validation, SPF record IP range explanation, cloud subnet planning, or any scenario where you must confirm network/broadcast addresses, address counts, or netmasks without relying on external registry data. It handles both IPv4 and IPv6, making it suitable for modern dual-stack environments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:08.928Z","isFirstParty":false,"canonicalSlug":"lookproof-cidr-block-calculator-294433da"}