{"uid":"cap_-3eZqsF-CUvSv4dwvIzwS","slug":"swift-bot-labs-cidr-info-0d11a5b1","name":"Swift Bot Labs CIDR Info","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.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"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["cidr"],"properties":{"cidr":{"type":"string","description":"e.g. 10.0.0.0/22 or 2001:db8::/48"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"cidr-info","result":{"cidr":"192.168.10.64/26","netmask":"255.255.255.192","network":"192.168.10.64","addresses":"64","broadcast":"192.168.10.127","lastUsable":"192.168.10.126","firstUsable":"192.168.10.65","usableHosts":"62","hostBitsWereSet":true}}},"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_WauP8rQK1HHNkJlvmBJPm","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":"Parses a CIDR notation block and returns detailed IP network information including netmask, network/broadcast addresses, usable host range, and host count.","exampleAgentPrompt":"What are the network address, broadcast address, netmask, and usable IP range for the CIDR block 192.168.10.64/26?","exampleUseCases":[{"title":"Subnet planning for a new VLAN","prompt":"I'm setting up a new VLAN and need to know the usable IP range, netmask, and broadcast address for the block 10.0.4.0/24 — can you pull those details for me?"},{"title":"Validating a firewall rule CIDR","prompt":"Our firewall rule uses 172.31.16.0/20 — can you confirm the network address, broadcast address, and how many usable hosts are in that range?"},{"title":"Diagnosing a misconfigured host IP","prompt":"I think someone set host bits in a CIDR. Can you check 10.10.5.3/24 and tell me if host bits were set and what the correct network address should be?"}],"resultDescription":"A JSON object containing the parsed CIDR block details: the original CIDR, netmask, network address, broadcast address, first and last usable IP, total address count, usable host count, and a flag indicating whether host bits were set in the input.","failureModes":["Invalid or malformed CIDR string returns an error","Missing required 'cidr' query parameter causes a 400-level error","CIDR with prefix length out of valid range (e.g. >32 for IPv4) may return an error","Payment not provided or insufficient USDC results in a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need fast, deterministic CIDR subnet arithmetic without setting up any account or API key — ideal for one-off or agent-driven networking tasks paid per-call in USDC. Prefer it over full networking libraries when you need a lightweight, external computation for subnetting details in an automated pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:39:59.600Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-cidr-info-0d11a5b1"}