{"uid":"cap_6wdDrnmhTJ3E9URbG5iEl","slug":"fastx402-cidr-calculator-9d4c3bff","name":"FastX402 CIDR Calculator","description":"146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/cidr-calc?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"],"type":"string"},"queryParams":{"type":"object","required":["cidr"],"properties":{"ip":{"type":"string","description":"Optional IPv4 address to test for membership in the block"},"cidr":{"type":"string","description":"IPv4 CIDR block, e.g. 10.0.0.0/22 (prefix 0-32)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ip":{"type":"string"},"cidr":{"type":"string"},"prefix":{"type":"integer"},"netmask":{"type":"string"},"network":{"type":"string"},"wildcard":{"type":"string"},"broadcast":{"type":"string"},"ip_inside":{"type":"boolean"},"last_host":{"type":"string"},"first_host":{"type":"string"},"usable_hosts":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"ip":"10.0.3.255","cidr":"10.0.0.0/22","prefix":22,"netmask":"255.255.252.0","network":"10.0.0.0","wildcard":"0.0.3.255","broadcast":"10.0.3.255","ip_inside":true,"last_host":"10.0.3.254","first_host":"10.0.0.1","usable_hosts":1022}},"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_5MB_-_xZUV51d-Z-MiBQk","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 network details for an IPv4 CIDR block (netmask, broadcast, host range, usable hosts) and optionally tests whether a given IP address falls within that block.","exampleAgentPrompt":"What are the full network details for the CIDR block 10.0.0.0/22, and is the IP address 10.0.3.255 inside that block?","exampleUseCases":[{"title":"Subnet planning for cloud VPC","prompt":"I'm setting up a VPC and need to know the full details of 172.16.0.0/20 — give me the network address, broadcast, first and last usable host, and how many hosts fit in it."},{"title":"IP membership check for firewall rules","prompt":"I need to verify whether 192.168.5.47 is inside the subnet 192.168.4.0/22 — can you check that for me?"},{"title":"Subnetting audit for network documentation","prompt":"For our network documentation, can you break down 10.10.0.0/26 and tell me the netmask, wildcard, broadcast address, and how many usable hosts it has?"}],"resultDescription":"Returns a JSON object with the CIDR prefix length, netmask, wildcard mask, network address, broadcast address, first and last usable host addresses, total usable host count, and optionally a boolean indicating whether the provided IP address is within the block.","failureModes":["Missing required 'cidr' query parameter returns an error","Invalid CIDR notation (e.g. malformed prefix or out-of-range prefix length 0-32) returns an error","Invalid IPv4 format for optional 'ip' parameter returns an error","Payment not included or invalid x402 payment header results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need fast, structured IPv4 subnet calculations without setting up an account or API key — particularly useful in networking automation, infrastructure planning, or firewall rule validation workflows where payment via USDC on Base per call is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:49.877Z","isFirstParty":false,"canonicalSlug":"fastx402-cidr-calculator-9d4c3bff"}