{"uid":"cap_QfoMlOkx09lLiDQ_q3QuC","slug":"fastx402-ip-cidr-membership-check-db51a250","name":"FastX402 IP CIDR Membership Check","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/ip-cidr-membership?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"],"type":"string"},"queryParams":{"type":"object","required":["ip","cidr"],"properties":{"ip":{"type":"string","description":"IPv4 or IPv6 address to check"},"cidr":{"type":"string","description":"CIDR range (e.g. 192.168.0.0/16 or 2001:db8::/32)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ip":{"type":"string"},"cidr":{"type":"string"},"match":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"ip":"192.168.1.50","cidr":"192.168.1.0/24","match":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lcmPIIUjtXGjoKLT7Bpon","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 IP address (IPv4 or IPv6) falls within a specified CIDR network range","exampleAgentPrompt":"Check if the IP address 192.168.1.50 falls within the CIDR range 192.168.1.0/24.","exampleUseCases":[{"title":"Firewall rule IP allowlist check","prompt":"I need to verify whether the IP 203.0.113.45 is within my allowed network range 203.0.113.0/24 — can you check if it's a member?"},{"title":"Private network detection","prompt":"Is the IP address 10.42.7.200 part of the private network range 10.0.0.0/8?"},{"title":"IPv6 subnet membership","prompt":"Check if the IPv6 address 2001:db8::ff00 is inside the subnet 2001:db8::/32."}],"resultDescription":"Returns a JSON object with the queried IP address, the CIDR range, and a boolean 'match' field indicating whether the IP falls within the specified CIDR block (e.g. {\"ip\": \"192.168.1.50\", \"cidr\": \"192.168.1.0/24\", \"match\": true}).","failureModes":["Invalid IP address format returns an error response","Malformed CIDR notation (e.g. missing prefix length) returns an error","IPv4 address checked against IPv6 CIDR or vice versa may return match: false or error","Missing required query parameters (ip or cidr) results in a bad request error","Payment failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a fast, lightweight, no-account-required check for IP-to-CIDR membership — especially useful in agent workflows that need to validate whether a request IP is within an allowed or blocked range, perform geofencing logic, or enforce network access control policies. Prefer this over writing custom subnet math when you need a reliable, API-based single check at minimal cost ($0.001 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:20.225Z","isFirstParty":false,"canonicalSlug":"fastx402-ip-cidr-membership-check-db51a250"}