{"uid":"cap_EsymZlhTKd3TZxcfrGquT","slug":"ipv4-cidr-calculator-0419c470","name":"IPv4 CIDR Calculator","description":"IPv4 CIDR calculator in one GET: network, broadcast, netmask, wildcard, first/last usable host, total and usable counts, and the address-class and scope flags. curl: GET /cidr?cidr=192.168.1.10/24 (a bare address means /32). Response: {\"ip\":\"192.168.1.10\",\"prefix\":24,\"network\":\"192.168.1.0\",\"broadcast\":\"192.168.1.255\",\"netmask\":\"255.255.255.0\",\"first_host\":\"192.168.1.1\",\"last_host\":\"192.168.1.254\",\"total_addresses\":256,\"usable_hosts\":254,\"is_private\":true}. Computed inside the Worker from the input; no upstream call, no account, no key. 0.001 USDC, one GET, one delivery. A purchase is two calls by design: this first call returns 402 with the price and the payment terms, and you then repeat the same request with the PAYMENT-SIGNATURE header to receive the 200 delivery.","url":"https://x402-catalog-history.ai-business-surface.workers.dev/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","required":["cidr"],"properties":{"cidr":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mPUsw8YrIpCOyxvEqA5r0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes full IPv4 subnet details (network, broadcast, netmask, host range, counts, and scope flags) from a CIDR notation input in a single GET request.","exampleAgentPrompt":"What are the network address, broadcast address, netmask, and usable host range for the subnet 192.168.1.10/24? Also tell me if it's a private range and how many usable hosts it has.","exampleUseCases":[{"title":"Subnet planning for a new office network","prompt":"I'm setting up a new office network using 10.10.5.0/26 — can you calculate the network address, broadcast address, usable host range, and tell me how many devices I can connect?"},{"title":"Verifying a cloud VPC CIDR block","prompt":"Before I configure our AWS VPC, can you break down 172.16.0.0/20 and tell me the netmask, first and last usable IPs, total addresses, and whether it's a private range?"},{"title":"Troubleshooting an IP address assignment","prompt":"I've got a host at 192.168.50.200 with a /27 mask — what's its network address, broadcast address, and is that IP actually within the usable host range?"}],"resultDescription":"A JSON object containing: the input IP address, prefix length, network address, broadcast address, netmask, wildcard mask, first and last usable host IPs, total address count, usable host count, and a boolean flag indicating whether the range is private. All values are computed server-side with no external calls.","failureModes":["Invalid CIDR notation (e.g. missing prefix or malformed IP) returns an error response","Prefix length out of range (>32 or <0) returns an error","Missing 'cidr' query parameter results in a bad request error","First call always returns HTTP 402 with payment terms — must resend with PAYMENT-SIGNATURE header to receive the 200 response"],"whenToPreferThis":"Choose this endpoint when you need instant, serverless IPv4 subnet calculations with no API key, no account setup, and no external dependencies. Ideal for agents that need to programmatically compute subnet details on-demand as part of network planning, validation, or documentation workflows. The micro-cost ($0.001 USDC) and stateless design make it suitable for high-frequency automated lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:37:00.735Z","isFirstParty":false,"canonicalSlug":"ipv4-cidr-calculator-0419c470"}