{"uid":"cap_yjdOI0g0xbXc5Q9Ucpjhe","slug":"swift-bot-labs-toolbox-ip-range-to-cidr-c4b09277","name":"Swift Bot Labs Toolbox – IP Range to CIDR","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/range?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":["start","end"],"properties":{"end":{"type":"string"},"start":{"type":"string"}},"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":"ip-range-to-cidr","result":{"end":"10.0.0.20","cidrs":["10.0.0.5/32","10.0.0.6/31","10.0.0.8/29","10.0.0.16/30","10.0.0.20/32"],"start":"10.0.0.5","truncated":false}}},"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_kqFrOAhVXkW1ytP8MAqBX","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":"Converts an arbitrary IPv4 start/end address range into the minimal set of covering CIDR blocks","exampleAgentPrompt":"Convert the IP range from 192.168.1.0 to 192.168.1.63 into the minimal list of covering CIDR blocks.","exampleUseCases":[{"title":"Firewall rule generation from IP range","prompt":"I have a security policy that allows traffic from 203.0.113.10 to 203.0.113.50 — what CIDR blocks should I put in the firewall rules to cover exactly that range?"},{"title":"Cloud VPC subnet planning","prompt":"I need to carve out an AWS security group for IPs 10.4.16.0 through 10.4.23.255 — give me the CIDR notation I should use."},{"title":"BGP prefix summarization","prompt":"We're announcing a block from 198.51.100.0 to 198.51.100.127 to our upstream provider — what are the minimal CIDR prefixes we should advertise?"}],"resultDescription":"A JSON object with 'ok' true/false, the tool name 'ip-range-to-cidr', and a 'result' object containing the original 'start' and 'end' IP strings, a 'cidrs' array of CIDR strings representing the minimal covering set, and a 'truncated' boolean indicating whether the result was cut short.","failureModes":["Invalid IP addresses (non-IPv4 format) in start or end params return an error","Start IP greater than end IP returns an error","Missing required start or end query parameters returns 400-level error","Payment not provided or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a deterministic, serverless computation to convert an arbitrary IPv4 range into minimal CIDR notation without setting up any account or maintaining API keys — ideal for one-off or infrequent subnet calculations billed at $0.003 per call via x402/USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:44.014Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-ip-range-to-cidr-c4b09277"}