{"uid":"cap_oS0UzBGHpru5KSTdU9J69","slug":"cidr-contains-check-29e4248f","name":"CIDR Contains Check","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/network/cidr-contains?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ip":{"type":"string","maxLength":15,"description":"IPv4 address."},"cidr":{"type":"string","maxLength":18,"description":"IPv4 CIDR."}}},"responseSchema":{"type":"json","example":{"contains":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_96ekBmrUscqSfjmq1yaLz","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 IPv4 address falls within a specified CIDR block, returning a boolean result","exampleAgentPrompt":"Check if the IP address 10.0.5.42 is contained within the CIDR block 10.0.0.0/16.","exampleUseCases":[{"title":"Firewall allowlist IP validation","prompt":"I need to know if the IP 203.0.113.77 is inside the trusted corporate network range 203.0.113.0/24 — can you check that for me?"},{"title":"Cloud egress range membership check","prompt":"Is the IP 35.192.0.5 part of the Google Cloud subnet 35.192.0.0/14? I need to confirm it's a GCP egress address before allowing it through."},{"title":"VPN subnet access control","prompt":"Can you verify whether 172.16.8.200 falls within the VPN subnet 172.16.0.0/12 so I can decide if this client should get access?"}],"resultDescription":"Returns a JSON object with a single boolean field 'contains' — true if the provided IPv4 address falls within the specified CIDR block, false otherwise. For example: {\"contains\": true}","failureModes":["Invalid IPv4 address format returns an error","Malformed CIDR notation (e.g. missing prefix length) causes a parse error","IPv6 addresses are not supported (input capped at 15 chars for IPv4)","CIDR prefix length out of range (e.g. /33) may return an error","Missing required fields (ip or cidr) results in a validation error","Payment failure via x402 protocol blocks request execution"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001 USDC), serverless computation to determine IPv4 subnet membership without running local networking libraries. Ideal for agents performing access control checks, firewall rule evaluation, or IP whitelisting logic in cloud-native or edge workflows where spinning up a local library is impractical. Best for single IP-to-CIDR checks; for bulk checks, consider batching multiple calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:47:52.442Z","isFirstParty":false,"canonicalSlug":"cidr-contains-check-29e4248f"}