{"uid":"cap_jJPEWR2R2-FnmPDV125-X","slug":"swift-bot-labs-toolbox-ip-cidr-contains-check-969d315e","name":"Swift Bot Labs Toolbox – IP CIDR Contains Check","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/contains?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ips":{"type":["array","string"],"items":{"type":"string","maxLength":64},"maxItems":1000,"maxLength":40000,"description":"IP addresses (JSON array, or a comma/space separated string)"},"cidrs":{"type":["array","string"],"items":{"type":"string","maxLength":64},"maxItems":1000,"maxLength":40000,"description":"CIDR blocks (JSON array, or a comma/space separated string)"}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"cidr-contains","result":{"results":[{"ip":"10.1.2.3","matches":["10.0.0.0/8"],"contained":true},{"ip":"8.8.8.8","matches":[],"contained":false}],"invalidIps":[],"invalidCidrs":[]}}},"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_p16J-DqH9EudBOm3WaiMZ","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":"Checks whether one or more IP addresses fall within one or more CIDR network blocks, returning per-IP match results.","exampleAgentPrompt":"Check whether 10.1.2.3 and 8.8.8.8 are contained in any of these CIDR blocks: 10.0.0.0/8 and 192.168.0.0/16.","exampleUseCases":[{"title":"Firewall allowlist enforcement check","prompt":"I have a list of IPs from our access logs — 203.0.113.5, 10.4.8.1, and 172.16.0.22 — can you tell me which ones fall inside our internal network ranges 10.0.0.0/8 and 172.16.0.0/12?"},{"title":"Cloud egress IP whitelisting validation","prompt":"We need to verify that all our cloud provider egress IPs (54.239.28.85, 52.94.236.248, 13.32.0.1) are within the known AWS CIDR blocks 54.239.0.0/16 and 52.94.0.0/15 — can you run that check for me?"},{"title":"Security alert IP geofencing triage","prompt":"Flag which of these suspicious IPs — 192.168.1.55, 172.31.200.4, 8.8.4.4, 100.64.0.1 — are actually inside our private RFC 1918 ranges 192.168.0.0/16, 172.16.0.0/12, and 10.0.0.0/8 so I can deprioritize internal false positives."}],"resultDescription":"Returns a JSON object with a results array where each entry contains the queried IP, a 'matches' array listing which CIDR blocks contain it, and a boolean 'contained' flag. Also returns arrays of any invalid IPs or CIDRs submitted.","failureModes":["Invalid IP address format returns it in invalidIps array rather than erroring","Invalid CIDR notation returns entry in invalidCidrs array","Exceeding 1000 IPs or CIDRs may be rejected or truncated","Malformed request body returns an error response","Payment failure via x402 results in 402 response before execution"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, server-side check of IP-to-CIDR containment without spinning up networking libraries locally. Ideal for batch membership checks (up to 1000 IPs and CIDRs per call), firewall rule validation, security triage, and allowlist/denylist enforcement. Prefer it over self-hosted solutions when you want no infrastructure overhead and pay-per-call USDC pricing via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:32.254Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-ip-cidr-contains-check-969d315e"}