{"uid":"cap_B2e9Yb67Z2wXTcxG4b0Rk","slug":"ip-in-cidr-check-7fe9acdf","name":"IP-in-CIDR Check","description":"Check whether an IPv4 address belongs to a CIDR block. Give '<ip> in <cidr>' (or comma separated). Firewall rule validation, allowlist checks and log filtering. $0.01 per check.","url":"https://intel.rallylive.ca/ip/in-range","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"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_ww4HZXAtS6EfYKYODy4js","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":"Checks whether a given IPv4 address falls within a specified CIDR block, returning a boolean membership result.","exampleAgentPrompt":"Can you check if 203.0.113.42 is within the CIDR block 203.0.113.0/24?","exampleUseCases":[{"title":"Firewall allowlist validation","prompt":"I need to know if the IP 10.0.5.200 falls inside our allowed corporate range 10.0.0.0/16 — can you check that for me?"},{"title":"Security log IP filtering","prompt":"We got a suspicious login attempt from 172.16.4.87 — can you tell me if that IP is within our internal network range 172.16.0.0/12?"},{"title":"VPN subnet membership check","prompt":"Is the IP address 192.168.50.1 part of the VPN subnet 192.168.48.0/20? I need to verify before granting access."}],"resultDescription":"Returns a boolean indicating whether the given IPv4 address belongs to the specified CIDR block, along with the queried IP and CIDR range for confirmation. Useful for programmatic access control decisions, log filtering, and firewall rule validation.","failureModes":["Invalid IPv4 address format returns an error","Invalid CIDR notation (e.g. missing prefix length) returns an error","Missing required input parameter results in a 400-level response","Payment not fulfilled results in a 402 Payment Required response","Malformed query string (e.g. wrong delimiter) may return an unexpected result"],"whenToPreferThis":"Choose this endpoint when you need a fast, lightweight, single-call check for IPv4-to-CIDR membership without setting up local networking libraries. Ideal for agent workflows doing firewall rule validation, allowlist enforcement, or IP log filtering where a simple true/false answer is needed on demand. Prefer it over general-purpose IP tools when the specific question is strictly subnet membership.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:44.853Z","isFirstParty":false}