{"uid":"cap_YOqFhybodgWaP-MV1SzkA","slug":"vextorium-ip-subnet-calculator-aaf5576c","name":"Vextorium IP Subnet Calculator","description":"558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/ip-subnet?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cidr":{"type":"string","description":"Network in CIDR notation, e.g. 10.0.0.0/16 or 2001:db8::/48"},"ip_check":{"type":"string","description":"IP to test for membership (optional)"}}},"responseSchema":{"type":"json","example":{"cidr":"192.168.1.64/26","mask":"255.255.255.192","type":"private","class":"C","input":"192.168.1.77/26","prefix":26,"network":"192.168.1.64","version":4,"ip_check":{"ip":"192.168.1.100","belongs":true},"wildcard":"0.0.0.63","broadcast":"192.168.1.127","last_host":"192.168.1.126","first_host":"192.168.1.65","useful_hosts":62,"total_addresses":64}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zQ1jDIQITDtc0iCJQ30Q8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates full subnet details for an IPv4/IPv6 CIDR block and optionally checks whether a given IP address belongs to that subnet.","exampleAgentPrompt":"Can you calculate the full subnet details for 192.168.1.64/26 — I need the network address, mask, wildcard, broadcast, first and last host, number of usable hosts, and also check whether 192.168.1.100 is in that subnet?","exampleUseCases":[{"title":"Network planning for a new office","prompt":"I'm setting up a new office network on 10.10.5.0/24 — can you give me the broadcast address, first and last usable host, subnet mask, and total number of usable IPs?"},{"title":"Firewall rule IP membership check","prompt":"We got an alert from IP 172.16.45.200 — can you tell me if it falls within our internal subnet 172.16.32.0/20, and also confirm whether that range is private or public?"},{"title":"IPv6 subnet breakdown for cloud infra","prompt":"What are the full details for the IPv6 subnet 2001:db8::/48? I need the network address, prefix, total addresses, first and last host, and address type."}],"resultDescription":"Returns a JSON object containing: the normalized CIDR, network address, subnet mask, wildcard mask, broadcast address, first and last usable host addresses, number of usable hosts, total address count, IP version (4 or 6), address type (private, public, loopback, etc.), IP class (for IPv4), and — if an ip_check was provided — whether that IP belongs to the subnet.","failureModes":["Invalid CIDR notation causes a parsing error or error response","Missing required 'cidr' field returns a validation error","Host bits set in the CIDR address (e.g. 192.168.1.5/24 vs 192.168.1.0/24) may be normalized or rejected","Invalid ip_check IP address format may return null membership result","IPv6 features like class are not applicable and may return null","Payment failure or x402 authorization issue prevents the request from completing"],"whenToPreferThis":"Choose this endpoint when you need comprehensive subnet arithmetic in a single call — network, mask, wildcard, broadcast, host range, and optional IP membership testing — for both IPv4 and IPv6. It is ideal for agents performing network planning, firewall configuration, infrastructure validation, or any task requiring IP address classification (private, public, loopback) without needing a local library or subnet math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:11.747Z","isFirstParty":false,"canonicalSlug":"vextorium-ip-subnet-calculator-7e0e3865"}