{"uid":"cap_Z1-OjRhV9Xeq40sq9mTpQ","slug":"agent-data-tools-ipv4-cidr-network-info-membership-check-d28c4d9a","name":"Agent Data Tools: IPv4 CIDR Network Info & Membership Check","description":"Details of an IPv4 network in CIDR notation: network and broadcast address, first and last usable host, netmask, number of addresses, and whether a given IP falls inside. Use for firewall rules and allowlists.","url":"https://agent-data-tools.revmesh2074.workers.dev/ip/cidr?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["cidr"],"properties":{"ip":{"type":"string","description":"Optional IPv4 address to test for membership"},"cidr":{"type":"string","description":"IPv4 network in CIDR notation"}}},"responseSchema":{"type":"object","properties":{"last":{"type":"string"},"first":{"type":"string"},"prefix":{"type":"number"},"netmask":{"type":"string"},"network":{"type":"string"},"contains":{"type":"boolean"},"addresses":{"type":"number"},"broadcast":{"type":"string"},"usableHosts":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RjU7HETeP0f5yBHC1lPKc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses an IPv4 CIDR block and returns network metadata (first/last host, netmask, broadcast, address count) and optionally checks whether a given IP address belongs to that subnet.","exampleAgentPrompt":"Can you parse the CIDR block 192.168.1.0/24 and tell me the network address, broadcast address, netmask, and how many usable hosts it has — and also check whether 192.168.1.100 is in that range?","exampleUseCases":[{"title":"Subnet planning for a home network","prompt":"I'm setting up my home network using 10.0.0.0/24 — can you tell me the first and last usable IP, the broadcast address, and how many hosts I can assign?"},{"title":"IP membership check for access control","prompt":"I need to know if 172.16.5.42 falls inside the 172.16.0.0/16 subnet — can you check that for me?"},{"title":"Network sizing for infrastructure provisioning","prompt":"How many total addresses and usable hosts are in a /20 subnet, say 10.1.0.0/20? I need the netmask and broadcast address too."}],"resultDescription":"A JSON object containing: network (network address), first (first usable host IP), last (last usable host IP), broadcast (broadcast address), netmask (dotted-decimal), prefix (integer prefix length), addresses (total address count), usableHosts (usable host count), and optionally contains (boolean indicating if the supplied IP is within the subnet).","failureModes":["Missing or malformed cidr parameter returns an error","Invalid CIDR notation (e.g. wrong prefix length or non-IPv4) returns a validation error","IPv6 CIDR input is not supported and will fail","Payment failure via x402 results in no charge and no response body","Network timeout from Cloudflare Worker edge returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call IPv4 subnet analysis without provisioning an API key or account. It is ideal for agents that occasionally need to parse CIDR blocks, count addresses, or perform IP membership tests as part of network configuration, security policy, or infrastructure automation workflows. It is not suitable for IPv6 or bulk subnet enumeration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:52:12.221Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-ipv4-cidr-network-info-membership-check-d28c4d9a"}